2026-09-22 05:27:50 +00:00
|
|
|
{ pkgs, ...}:
|
2026-08-05 16:37:32 +02:00
|
|
|
{
|
|
|
|
|
imports = [
|
2026-08-08 19:30:07 +02:00
|
|
|
/etc/nixos/modules/nix.nix
|
2026-09-20 21:21:07 +02:00
|
|
|
/etc/nixos/modules/security
|
2026-09-22 05:27:50 +00:00
|
|
|
/etc/nixos/modules/dns.nix
|
2026-08-08 19:30:07 +02:00
|
|
|
/etc/nixos/modules/ssl.nix
|
2026-09-20 21:21:07 +02:00
|
|
|
/etc/nixos/modules/ssh.nix
|
|
|
|
|
/etc/nixos/modules/tailscale.nix
|
|
|
|
|
/etc/nixos/modules/ipfs
|
|
|
|
|
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
./bootloader.nix
|
|
|
|
|
./user.nix
|
2026-08-05 16:37:32 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
nix.nixPath = [
|
|
|
|
|
"nixos-config=/etc/nixos/machines/homelab/default.nix"
|
|
|
|
|
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
|
|
|
|
|
"/nix/var/nix/profiles/per-user/root/channels"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
networking.hostName = "zomelab";
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
2026-09-20 21:21:07 +02:00
|
|
|
|
2026-09-22 05:27:50 +00:00
|
|
|
environment.systemPackages = [
|
|
|
|
|
pkgs.vim
|
2026-09-23 19:48:20 +00:00
|
|
|
pkgs.direnv
|
2026-09-22 05:27:50 +00:00
|
|
|
];
|
|
|
|
|
|
2026-09-23 19:48:20 +00:00
|
|
|
security.acme.acceptTerms = true;
|
|
|
|
|
services.nginx.enable = true;
|
|
|
|
|
services.nginx.virtualHosts = {
|
|
|
|
|
"zospace.freeboxos.fr" = {
|
|
|
|
|
forceSSL = true;
|
|
|
|
|
enableACME = true;
|
|
|
|
|
locations."/".root = "/var/www/zospace.freeboxos.fr/";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
|
|
2026-09-20 21:21:07 +02:00
|
|
|
system.stateVersion = "26.05";
|
2026-08-05 16:37:32 +02:00
|
|
|
}
|