lib/utils: fix NixOS library subset

This commit is contained in:
Gabriel Arazas 2024-07-27 20:20:10 +08:00
parent 96f25aab17
commit 53cd1864df
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -5,12 +5,6 @@
mapHomeManagerUser = user: settings:
let
homeDirectory = "/home/${user}";
defaultUserConfig = {
extraGroups = lib.mkDefault [ "wheel" ];
createHome = lib.mkDefault true;
home = lib.mkDefault homeDirectory;
isNormalUser = lib.mkForce true;
};
in
({ lib, ... }: {
home-manager.users."${user}" = { ... }: {
@ -25,7 +19,12 @@
};
users.users."${user}" = lib.mkMerge [
defaultUserConfig
{
extraGroups = lib.mkDefault [ "wheel" ];
createHome = lib.mkDefault true;
home = lib.mkDefault homeDirectory;
isNormalUser = lib.mkForce true;
}
settings
];
});