hehehehehe, got multi user config started. now, somehow, fix home-manager to work per user...

This commit is contained in:
Chris Kruining 2025-03-16 23:28:04 +01:00
parent b139021f8e
commit 00e0fae167
5 changed files with 12 additions and 9 deletions

View file

@ -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;