nichts/modules/system/module.nix

18 lines
371 B
Nix
Raw Normal View History

2024-11-01 13:50:12 +01:00
{config, ...}: let
machine-id = builtins.substring 0 23 (builtins.hashString "sha256" config.networking.hostName);
in {
2024-09-22 00:19:58 +02:00
system = {
# faster rebuilds
switch = {
enable = false;
enableNg = true;
};
2025-06-26 20:47:47 +02:00
rebuild.enableNg = true;
# My state version.
2024-09-22 00:19:58 +02:00
stateVersion = "23.11";
};
2024-11-01 13:50:12 +01:00
environment.etc."machine-id".text = "${machine-id}\n";
2024-09-22 00:19:58 +02:00
}