about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--users/tazjin/nixos/modules/persistence.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/tazjin/nixos/modules/persistence.nix b/users/tazjin/nixos/modules/persistence.nix
index 5ed3683740..b864d13a8d 100644
--- a/users/tazjin/nixos/modules/persistence.nix
+++ b/users/tazjin/nixos/modules/persistence.nix
@@ -1,5 +1,5 @@
 # Configuration for persistent (non-home) data.
-{ depot, pkgs, lib, ... }:
+{ config, depot, pkgs, lib, ... }:
 
 {
   imports = [
@@ -17,7 +17,7 @@
       "/var/log"
     ];
 
-    files = [
+    files = lib.optional (builtins.isNull config.networking.hostId) [
       "/etc/machine-id"
     ];
   };