1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Add stateversion for all users

This commit is contained in:
Stefan Ellmauthaler 2022-05-17 19:17:11 +02:00
parent a49b068c07
commit 6b7ab36434
Signed by: ellmau
GPG Key ID: C804A9C1B7AF8256
3 changed files with 6 additions and 2 deletions

View File

@ -111,7 +111,7 @@
inherit username;
system = "x86_64-linux";
homeDirectory = "/home/${username}";
stateVersion = "21.11";
stateVersion = "21.05";
});
};
}

4
modules/stateversion.nix Normal file
View File

@ -0,0 +1,4 @@
{ config, lib, pkgs, ...}:
{
system.stateVersion = "21.05";
}

View File

@ -139,6 +139,6 @@ with lib; {
(mapUsers mkUser)
];
};
home-manager.users = (mapAllUsers mkGitUser);
home-manager.users = (mapAllUsers mkGitUser) // (mapAllUsersAndRoot (_: { config.home.stateVersion = mkDefault "21.05"; }));
};
}