system.mod.nix: init
This commit is contained in:
parent
dee3cc7745
commit
9750c64d9c
1 changed files with 9 additions and 0 deletions
9
modules/system/system.mod.nix
Normal file
9
modules/system/system.mod.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{config, ...}: let
|
||||
machine-id = builtins.substring 0 32 (builtins.hashString "sha256" config.networking.hostName);
|
||||
in {
|
||||
system = {
|
||||
# My state version.
|
||||
stateVersion = "23.11";
|
||||
};
|
||||
environment.etc."machine-id".text = "${machine-id}\n";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue