try
This commit is contained in:
@@ -63,15 +63,17 @@
|
|||||||
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
users.users = builtins.mapAttrs (x: y: {
|
users.users = builtins.mapAttrs (x: y: let
|
||||||
name = y.name;
|
cfg = config.homeconfig.users.${x};
|
||||||
|
in {
|
||||||
|
name = cfg.name;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
uid = y.uid;
|
uid = cfg.uid;
|
||||||
hashedPasswordFile = lib.mkIf (y.hashedPasswordFile != null) y.hashedPasswordFile;
|
hashedPasswordFile = lib.mkIf (cfg.hashedPasswordFile != null) cfg.hashedPasswordFile;
|
||||||
shell = y.shell;
|
shell = cfg.shell;
|
||||||
extraGroups = y.extraGroups;
|
extraGroups = cfg.extraGroups;
|
||||||
openssh.authorizedKeys.keys = lib.mkIf config.sysconfig.services.openssh.enable y.sshKeys;
|
openssh.authorizedKeys.keys = lib.mkIf config.sysconfig.services.openssh.enable cfg.sshKeys;
|
||||||
packages = with pkgs; lib.mkIf (user.home-manager.enable && user.home-manager.standalone) [ home-manager ];
|
packages = with pkgs; lib.mkIf (cfg.home-manager.enable && cfg.home-manager.standalone) [ home-manager ];
|
||||||
}) config.sysconfig.users;
|
}) config.sysconfig.users;
|
||||||
|
|
||||||
programs.fuse.userAllowOther = true;
|
programs.fuse.userAllowOther = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user