2023-11-19 17:15:44 +08:00
|
|
|
inputs:
|
|
|
|
{
|
|
|
|
config =
|
|
|
|
let
|
2023-12-09 20:01:50 +08:00
|
|
|
inherit (inputs.lib) mkIf;
|
|
|
|
inherit (inputs.config.nixos) users;
|
|
|
|
in mkIf (builtins.elem "zem" users.users)
|
2023-11-19 17:15:44 +08:00
|
|
|
{
|
2023-12-09 20:01:50 +08:00
|
|
|
users.users.zem =
|
|
|
|
{
|
|
|
|
extraGroups = inputs.lib.intersectLists
|
2024-03-03 19:15:04 +08:00
|
|
|
[ "users" "groupshare" "video" ]
|
2023-12-09 20:01:50 +08:00
|
|
|
(builtins.attrNames inputs.config.users.groups);
|
|
|
|
hashedPasswordFile = inputs.config.sops.secrets."users/zem".path;
|
|
|
|
openssh.authorizedKeys.keys = [ (builtins.readFile ./id_rsa.pub) ];
|
|
|
|
shell = inputs.pkgs.zsh;
|
|
|
|
autoSubUidGidRange = true;
|
|
|
|
};
|
|
|
|
home-manager.users.zem.imports = users.sharedModules;
|
|
|
|
sops.secrets."users/zem".neededForUsers = true;
|
|
|
|
nixos.services.groupshare.mountPoints = [ "/home/zem/groupshare" ];
|
2023-11-19 17:15:44 +08:00
|
|
|
};
|
|
|
|
}
|