diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2024-09-10 15:02:02 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2024-09-10 15:02:02 +0200 |
commit | 56109f4de719ea1917b7a1a55d9e4b427f65c701 (patch) | |
tree | 9e44f2ba72ab9e32ce87a4daad18e80c4d6eb48a /modules/machine-id | |
parent | dd2276099946a07e73c598d81ce0db35d93d71ea (diff) | |
download | nixos-56109f4de719ea1917b7a1a55d9e4b427f65c701.tar nixos-56109f4de719ea1917b7a1a55d9e4b427f65c701.tar.gz nixos-56109f4de719ea1917b7a1a55d9e4b427f65c701.tar.bz2 nixos-56109f4de719ea1917b7a1a55d9e4b427f65c701.tar.xz nixos-56109f4de719ea1917b7a1a55d9e4b427f65c701.zip |
...flakes
Diffstat (limited to 'modules/machine-id')
-rw-r--r-- | modules/machine-id/default.nix | 2 |
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 | } |