This commit is contained in:
2025-08-19 01:07:19 -05:00
parent a394733024
commit ec919c0bef
2 changed files with 8 additions and 11 deletions

View File

@@ -63,14 +63,14 @@
config = {
users.users = builtins.mapAttrs (name: user: {
name = user.name;
users.users = builtins.mapAttrs (x: y: {
name = y.name;
isNormalUser = true;
uid = user.uid;
hashedPasswordFile = lib.mkIf (user.hashedPasswordFile != null) user.hashedPasswordFile;
shell = user.shell;
extraGroups = user.extraGroups;
openssh.authorizedKeys.keys = lib.mkIf config.sysconfig.services.openssh.enable user.sshKeys;
uid = y.uid;
hashedPasswordFile = lib.mkIf (y.hashedPasswordFile != null) y.hashedPasswordFile;
shell = y.shell;
extraGroups = y.extraGroups;
openssh.authorizedKeys.keys = lib.mkIf config.sysconfig.services.openssh.enable y.sshKeys;
packages = with pkgs; lib.mkIf (user.home-manager.enable && user.home-manager.standalone) [ home-manager ];
}) config.sysconfig.users;