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
|
@ -8,7 +8,7 @@
|
|||
inherit (inputs.nixpkgs.lib) nixosSystem;
|
||||
inherit (builtins) baseNameOf elem;
|
||||
inherit (lib.attrsets) filterAttrs;
|
||||
inherit (lib.modules) mkDefault;
|
||||
inherit (lib.modules) mkDefault mkIf;
|
||||
inherit (lib.strings) removeSuffix;
|
||||
inherit (self.modules) mapModules;
|
||||
inherit (self) mkSysUser mkHmUser;
|
||||
|
@ -37,7 +37,7 @@ in rec
|
|||
imports = [ "${path}/hardware.nix" ];
|
||||
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
mutableUsers = true; # Set this to false when I get sops with passwords set up properly
|
||||
users = mapModules "${path}/users" mkSysUser;
|
||||
};
|
||||
home-manager = {
|
||||
|
|
|
@ -10,10 +10,10 @@ in rec
|
|||
in
|
||||
{
|
||||
inherit name;
|
||||
inherit (user) is_trusted;
|
||||
description = user.full_name;
|
||||
extraGroups = (if user.is_trusted then [ "wheel" ] else []);
|
||||
extraGroups = (user.groups or []) ++ (if user.is_trusted then [ "wheel" ] else []);
|
||||
isNormalUser = true;
|
||||
initialPassword = "kaas";
|
||||
home = "/home/${name}";
|
||||
group = "users";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue