summaryrefslogtreecommitdiff
path: root/modules/machine-id/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-09-10 15:02:02 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-09-10 15:02:02 +0200
commit56109f4de719ea1917b7a1a55d9e4b427f65c701 (patch)
tree9e44f2ba72ab9e32ce87a4daad18e80c4d6eb48a /modules/machine-id/default.nix
parentdd2276099946a07e73c598d81ce0db35d93d71ea (diff)
downloadnixos-56109f4de719ea1917b7a1a55d9e4b427f65c701.tar
nixos-56109f4de719ea1917b7a1a55d9e4b427f65c701.tar.gz
nixos-56109f4de719ea1917b7a1a55d9e4b427f65c701.tar.bz2
nixos-56109f4de719ea1917b7a1a55d9e4b427f65c701.tar.xz
nixos-56109f4de719ea1917b7a1a55d9e4b427f65c701.zip
Diffstat (limited to 'modules/machine-id/default.nix')
-rw-r--r--modules/machine-id/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/machine-id/default.nix b/modules/machine-id/default.nix
index 2c33db26..b3183da8 100644
--- a/modules/machine-id/default.nix
+++ b/modules/machine-id/default.nix
@@ -30,7 +30,7 @@ in {
30 }; 30 };
31 31
32 config = mkIf cfg.enable { 32 config = mkIf cfg.enable {
33 environment.etc."machine-id".text = mkDefault machine-id; 33 environment.etc."machine-id".text = mkDefault (machine-id + "\n");
34 networking.hostId = mkDefault (substring 0 8 machine-id); 34 networking.hostId = mkDefault (substring 0 8 machine-id);
35 }; 35 };
36} 36}