summary refs log tree commit diff stats
path: root/hosts/by-name/server1
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/by-name/server1')
-rw-r--r--hosts/by-name/server1/configuration.nix11
-rw-r--r--hosts/by-name/server1/networking.nix2
2 files changed, 11 insertions, 2 deletions
diff --git a/hosts/by-name/server1/configuration.nix b/hosts/by-name/server1/configuration.nix
index ab7c02a..6bb1067 100644
--- a/hosts/by-name/server1/configuration.nix
+++ b/hosts/by-name/server1/configuration.nix
@@ -25,7 +25,16 @@
     postgresql.enable = true;
     redlib.enable = true;
     users.enable = true;
-    persist.enable = true;
+    persist = {
+      enable = true;
+      directories = [
+        "/var/log"
+
+        # TODO(@bpeetz): Instead of persisting that, encode each uid/gid directly in the
+        # config. <2024-12-24>
+        "/var/lib/nixos"
+      ];
+    };
   };
 
   boot.tmp.cleanOnBoot = true;
diff --git a/hosts/by-name/server1/networking.nix b/hosts/by-name/server1/networking.nix
index 4e1d64a..dd9b9af 100644
--- a/hosts/by-name/server1/networking.nix
+++ b/hosts/by-name/server1/networking.nix
@@ -47,6 +47,6 @@
 
   # cat /sys/class/net/eth0/address
   services.udev.extraRules = ''
-    ATTR{address}=="66:78:8e:15:33:2e", NAME="eth0"
+    ATTR{address}=="66:22:6d:82:93:9b", NAME="eth0"
   '';
 }