mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-24 01:49:03 +08:00
17 lines
395 B
Nix
17 lines
395 B
Nix
|
{ pkgs, ... }@inputs:
|
||
|
{
|
||
|
config =
|
||
|
{
|
||
|
users.users.chn =
|
||
|
{
|
||
|
isNormalUser = true;
|
||
|
extraGroups = inputs.lib.intersectLists
|
||
|
[ "networkmanager" "wheel" "wireshark" "libvirtd" ]
|
||
|
(builtins.attrNames inputs.config.users.groups);
|
||
|
passwordFile = inputs.config.sops.secrets."password/chn".path;
|
||
|
shell = inputs.pkgs.zsh;
|
||
|
};
|
||
|
sops.secrets."password/chn".neededForUsers = true;
|
||
|
};
|
||
|
}
|