mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
lib/utils: fix NixOS library subset
This commit is contained in:
parent
96f25aab17
commit
53cd1864df
@ -5,12 +5,6 @@
|
|||||||
mapHomeManagerUser = user: settings:
|
mapHomeManagerUser = user: settings:
|
||||||
let
|
let
|
||||||
homeDirectory = "/home/${user}";
|
homeDirectory = "/home/${user}";
|
||||||
defaultUserConfig = {
|
|
||||||
extraGroups = lib.mkDefault [ "wheel" ];
|
|
||||||
createHome = lib.mkDefault true;
|
|
||||||
home = lib.mkDefault homeDirectory;
|
|
||||||
isNormalUser = lib.mkForce true;
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
({ lib, ... }: {
|
({ lib, ... }: {
|
||||||
home-manager.users."${user}" = { ... }: {
|
home-manager.users."${user}" = { ... }: {
|
||||||
@ -25,7 +19,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
users.users."${user}" = lib.mkMerge [
|
users.users."${user}" = lib.mkMerge [
|
||||||
defaultUserConfig
|
{
|
||||||
|
extraGroups = lib.mkDefault [ "wheel" ];
|
||||||
|
createHome = lib.mkDefault true;
|
||||||
|
home = lib.mkDefault homeDirectory;
|
||||||
|
isNormalUser = lib.mkForce true;
|
||||||
|
}
|
||||||
settings
|
settings
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user