nixos/modules/users/chn.nix

60 lines
994 B
Nix
Raw Normal View History

2023-06-09 20:54:03 +08:00
{ pkgs, ... }@inputs:
{
config =
{
users.users.chn =
{
isNormalUser = true;
extraGroups = inputs.lib.intersectLists
2023-06-14 19:29:12 +08:00
[ "networkmanager" "wheel" "wireshark" "libvirtd" "video" "audio" ]
2023-06-09 20:54:03 +08:00
(builtins.attrNames inputs.config.users.groups);
passwordFile = inputs.config.sops.secrets."password/chn".path;
shell = inputs.pkgs.zsh;
};
sops.secrets."password/chn".neededForUsers = true;
2023-06-16 15:50:02 +08:00
environment.persistence."/impermanence".users.chn =
{
directories =
[
"Desktop"
"Documents"
"Downloads"
"Music"
"repo"
"Pictures"
"Videos"
".cache"
".config"
".gnupg"
".local"
".ssh"
".android"
".exa"
".gnome"
".Mathematica"
".mozilla"
".pki"
".steam"
".sys1og.conf"
".tcc"
".vim"
".vscode"
".Wolfram"
".zotero"
];
files =
[
".bash_history"
".cling_history"
".gitconfig"
".gtkrc-2.0"
".root_hist"
".viminfo"
".zsh_history"
];
};
2023-06-09 20:54:03 +08:00
};
}