mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 15:08:45 +08:00
59 lines
1.0 KiB
Nix
59 lines
1.0 KiB
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;
|
|
# 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"
|
|
# ".tcc"
|
|
# ".vim"
|
|
# ".vscode"
|
|
# ".Wolfram"
|
|
# ".zotero"
|
|
|
|
# ];
|
|
# files =
|
|
# [
|
|
# ".bash_history"
|
|
# ".cling_history"
|
|
# ".gitconfig"
|
|
# ".gtkrc-2.0"
|
|
# ".root_hist"
|
|
# ".viminfo"
|
|
# ".zsh_history"
|
|
# ];
|
|
# };
|
|
};
|
|
}
|