mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
lib/private: update mapHomeManagerUser
This commit is contained in:
parent
cee69d59a0
commit
025d96dbbc
@ -7,19 +7,21 @@ rec {
|
||||
let
|
||||
homeDirectory = "/home/${user}";
|
||||
defaultUserConfig = {
|
||||
extraGroups = [ "wheel" ];
|
||||
createHome = true;
|
||||
home = homeDirectory;
|
||||
extraGroups = lib.mkDefault [ "wheel" ];
|
||||
createHome = lib.mkDefault true;
|
||||
home = lib.mkDefault homeDirectory;
|
||||
isNormalUser = lib.mkForce true;
|
||||
};
|
||||
# TODO: Effectively override the option.
|
||||
# We assume all users set with this module are normal users.
|
||||
absoluteOverrides = { isNormalUser = true; };
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
{ users.users."${user}" = defaultUserConfig; }
|
||||
];
|
||||
|
||||
home-manager.users."${user}" = { ... }: {
|
||||
imports = [ (getUser "home-manager" user) ];
|
||||
};
|
||||
users.users."${user}" = defaultUserConfig // settings // absoluteOverrides;
|
||||
users.users."${user}" = settings;
|
||||
};
|
||||
|
||||
getSecret = path: ../secrets/${path};
|
||||
|
Loading…
Reference in New Issue
Block a user