hehehehehe, got multi user config started. now, somehow, fix home-manager to work per user...
This commit is contained in:
parent
b139021f8e
commit
00e0fae167
5 changed files with 12 additions and 9 deletions
|
@ -36,10 +36,13 @@ in
|
|||
|
||||
users.users.${config.user.name} = mkAliasDefinitions options.user;
|
||||
|
||||
nix.settings = let
|
||||
inherit (lib) attrNames filterAttrs;
|
||||
# Temp solution...
|
||||
home-manager.users.${config.user.name}.home.stateVersion = "23.11";
|
||||
|
||||
users = (attrNames (filterAttrs ({ is_trusted ? false }: is_trusted) config.users)) ++ [ "root" ];
|
||||
nix.settings = let
|
||||
inherit (lib) elem attrNames filterAttrs;
|
||||
|
||||
users = (attrNames (filterAttrs (name: user: elem "wheel" (user.extraGroups or [])) config.users.users));# ++ [ "root" ];
|
||||
in
|
||||
{
|
||||
trusted-users = users;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue