]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Prepare migration to ZFS
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 7 Jun 2020 17:10:43 +0000 (19:10 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 7 Jun 2020 17:13:09 +0000 (19:13 +0200)
modules/private/system.nix
modules/private/system/dilion.nix
modules/private/system/eldiron.nix

index 916173883aa49548d8b7aeb9e87dcfcc2c82b472..0ab4a81df7ac6223c99d931407564102773e9fa0 100644 (file)
       pkgs.vim
     ] ++
     (lib.optional (builtins.length (config.hostEnv.users pkgs) > 0) pkgs.home-manager);
+
+    systemd.targets.maintenance = {
+      description = "Maintenance target with only sshd";
+      after = [ "network-online.target" "sshd.service" ];
+      requires = [ "network-online.target" "sshd.service" ];
+      unitConfig.AllowIsolate = "yes";
+    };
   };
 }
index d8bad6b72ed9632bf633bd63734d4a3b25db7dce..977d427e045fb0368de1124e22d993030e287bf0 100644 (file)
@@ -1,10 +1,12 @@
 { privateFiles }:
 { config, pkgs, name, ... }:
 {
+  boot.supportedFilesystems = [ "zfs" ];
   boot.kernelPackages = pkgs.linuxPackages_latest;
   myEnv = import "${privateFiles}/environment.nix" // { inherit privateFiles; };
 
   networking = {
+    hostId = "27c3048d"; # generated with head -c4 /dev/urandom | od -A none -t x4
     firewall.enable = false;
     interfaces."eth0".ipv4.addresses = pkgs.lib.attrsets.mapAttrsToList
       (n: ips: { address = ips.ip4; prefixLength = 32; })
index 6ccaea5797f19cde9965856219dd2466811ae726..b3bda5353056ac0febe39aa07639b77a5989c2f9 100644 (file)
@@ -1,10 +1,12 @@
 { privateFiles }:
 { config, pkgs, ... }:
 {
+  boot.supportedFilesystems = [ "zfs" ];
   boot.kernelPackages = pkgs.linuxPackages_latest;
   myEnv = import "${privateFiles}/environment.nix" // { inherit privateFiles; };
 
   networking = {
+    hostId = "8262ca33"; # generated with head -c4 /dev/urandom | od -A none -t x4
     firewall.enable = true;
     # 176.9.151.89 declared in nixops -> infra / tools
     interfaces."eth0".ipv4.addresses = pkgs.lib.attrsets.mapAttrsToList