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:
parent
a49b068c07
commit
6b7ab36434
@ -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
4
modules/stateversion.nix
Normal file
@ -0,0 +1,4 @@
|
||||
{ config, lib, pkgs, ...}:
|
||||
{
|
||||
system.stateVersion = "21.05";
|
||||
}
|
||||
@ -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"; }));
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user