nixos/modules/users/chn.nix

17 lines
411 B
Nix

{ pkgs, ... }@inputs:
{
config =
{
users.users.chn =
{
isNormalUser = true;
extraGroups = inputs.lib.intersectLists
[ "networkmanager" "wheel" "wireshark" "libvirtd" "video" "audio" ]
(builtins.attrNames inputs.config.users.groups);
passwordFile = inputs.config.sops.secrets."password/chn".path;
shell = inputs.pkgs.zsh;
};
sops.secrets."password/chn".neededForUsers = true;
};
}