X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fsystem%2Fmonitoring-1.nix;h=7581c01e523afaff07c0f0162f6126480c2fe15d;hb=d43e0c61af84940447dbcdd1deac848328dde46d;hp=14604780e51e50356882333815fa395991b791a0;hpb=e820134d38c3b7470ea5112f40a6dc967f039878;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/system/monitoring-1.nix b/modules/private/system/monitoring-1.nix index 1460478..7581c01 100644 --- a/modules/private/system/monitoring-1.nix +++ b/modules/private/system/monitoring-1.nix @@ -3,7 +3,6 @@ { boot.kernelPackages = pkgs.linuxPackages_latest; myEnv = import "${privateFiles}/environment.nix" // { inherit privateFiles; }; - hostEnv.FQDN = "monitoring-1.v.immae.eu"; imports = builtins.attrValues (import ../..); @@ -24,10 +23,10 @@ firewall.enable = true; interfaces."ens3".ipv4.addresses = pkgs.lib.attrsets.mapAttrsToList (n: ips: { address = ips.ip4; prefixLength = 32; }) - (pkgs.lib.attrsets.filterAttrs (n: v: n != "main") config.myEnv.servers.monitoring-1.ips); + (pkgs.lib.attrsets.filterAttrs (n: v: n != "main") config.hostEnv.ips); interfaces."ens3".ipv6.addresses = pkgs.lib.flatten (pkgs.lib.attrsets.mapAttrsToList (n: ips: map (ip: { address = ip; prefixLength = (if n == "main" && ip == pkgs.lib.head ips.ip6 then 64 else 128); }) (ips.ip6 or [])) - config.myEnv.servers.monitoring-1.ips); + config.hostEnv.ips); defaultGateway6 = { address = "fe80::1"; interface = "ens3"; }; }; myServices.mailRelay.enable = true; @@ -37,5 +36,5 @@ # database servers. You should change this only after NixOS release # notes say you should. # https://nixos.org/nixos/manual/release-notes.html - system.stateVersion = "19.03"; # Did you read the comment? + system.stateVersion = "20.03"; # Did you read the comment? }