1
0
mirror of https://github.com/Andrey0189/nixos-config-reborn.git synced 2025-09-15 10:06:00 +03:00

add stateVersion to hosts

This commit is contained in:
andrey_varnavskiy
2024-11-30 06:57:46 +05:00
parent d3d9179f80
commit 138e5005e1

View File

@@ -23,10 +23,10 @@
stateVersion = "24.05";
user = "amper";
hosts = [
"slim3"
{ hostname = "slim3"; stateVersion = "24.05"; }
];
makeSystem = { hostname }: nixpkgs.lib.nixosSystem {
makeSystem = { hostname, stateVersion }: nixpkgs.lib.nixosSystem {
system = system;
specialArgs = {
inherit inputs stateVersion hostname user;
@@ -38,9 +38,11 @@
};
in {
nixosConfigurations = nixpkgs.lib.foldl' (configs: hostname:
nixosConfigurations = nixpkgs.lib.foldl' (configs: host:
configs // {
"${hostname}" = makeSystem { inherit hostname; };
"${host.hostname}" = makeSystem {
inherit (host) hostname stateVersion;
};
}) {} hosts;
homeConfigurations.${user} = home-manager.lib.homeManagerConfiguration {