Use separate state version for every machine

This also uses the system state version as the home-manager state
version.

Fixes #35.
This commit is contained in:
Simon Bruder 2021-01-31 12:11:39 +01:00
parent f211bae4e2
commit a02d3cb883
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
4 changed files with 5 additions and 4 deletions

View file

@ -28,4 +28,6 @@
}; };
networking.hostName = "nunotaba"; networking.hostName = "nunotaba";
system.stateVersion = "20.03";
} }

View file

@ -33,4 +33,6 @@
}; };
networking.hostName = "sayuri"; networking.hostName = "sayuri";
system.stateVersion = "20.03";
} }

View file

@ -93,9 +93,6 @@ in
programs.gnupg.agent.enable = true; programs.gnupg.agent.enable = true;
programs.ssh.startAgent = true; programs.ssh.startAgent = true;
# NixOS state version (see https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion)
system.stateVersion = "20.03";
# When this is set to true (default), routing everything through a # When this is set to true (default), routing everything through a
# wireguard tunnel does not work. # wireguard tunnel does not work.
networking.firewall.checkReversePath = "loose"; networking.firewall.checkReversePath = "loose";

View file

@ -47,7 +47,7 @@ in
imports = [ ./modules ]; imports = [ ./modules ];
config = { config = {
home.stateVersion = "20.09"; home.stateVersion = config.system.stateVersion;
}; };
}; };
} }