Compare commits
3 Commits
ec919c0bef
...
14e705a327
| Author | SHA1 | Date | |
|---|---|---|---|
| 14e705a327 | |||
| ad8a5a29cd | |||
| c3e14b8710 |
@@ -23,7 +23,7 @@
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
home.packages = with pkgs; ([
|
||||
killall
|
||||
btop
|
||||
zip
|
||||
@@ -93,6 +93,6 @@
|
||||
|
||||
#games
|
||||
prismlauncher
|
||||
] else []);
|
||||
] else []));
|
||||
};
|
||||
}
|
||||
|
||||
@@ -63,15 +63,17 @@
|
||||
|
||||
|
||||
config = {
|
||||
users.users = builtins.mapAttrs (x: y: {
|
||||
name = y.name;
|
||||
users.users = builtins.mapAttrs (x: y: let
|
||||
cfg = config.sysconfig.users.${x};
|
||||
in {
|
||||
name = cfg.name;
|
||||
isNormalUser = true;
|
||||
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 ];
|
||||
uid = cfg.uid;
|
||||
hashedPasswordFile = lib.mkIf (cfg.hashedPasswordFile != null) cfg.hashedPasswordFile;
|
||||
shell = cfg.shell;
|
||||
extraGroups = cfg.extraGroups;
|
||||
openssh.authorizedKeys.keys = lib.mkIf config.sysconfig.services.openssh.enable cfg.sshKeys;
|
||||
packages = with pkgs; lib.mkIf (cfg.home-manager.enable && cfg.home-manager.standalone) [ home-manager ];
|
||||
}) config.sysconfig.users;
|
||||
|
||||
programs.fuse.userAllowOther = true;
|
||||
@@ -100,7 +102,7 @@
|
||||
(builtins.partition
|
||||
(y: (config.sysconfig.users.${y}.home-manager.enable && !config.sysconfig.users.${y}.home-manager.standalone))
|
||||
(builtins.attrNames config.sysconfig.users)
|
||||
).wrong
|
||||
).right
|
||||
);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user