Files
sydnix/users/lain/default.nix
2025-02-18 16:26:58 -07:00

54 lines
1.2 KiB
Nix
Executable File

{
systemConfiguration = { config, ... }: {
isNormalUser = true;
# TODO: Don't hard-code `persist`. Use
# config.sydnix.impermanence.persistGroupName.
extraGroups = [
# Admin account.
"wheel"
# Default permissions to modify /persist.
"persist"
# Can modify the files served by Nginx.
"nginx"
# Can modify Deertopia's git-annex repos.
"annex"
# Can modify Deertopia's Jellyfin libraries.
"jellyfin"
];
initialHashedPassword =
"$y$j9T$aEFDDwdTZbAc6VQRXrkBJ0$K8wxTGTWDihyX1wxJ.ZMH//wmQFfrGGUkLkxIU0Lyq8";
openssh.authorizedKeys.keyFiles = [
../../public-keys/crumb-at-guix-rebound.pub
../../public-keys/crumble-at-fruitbook.pub
];
};
homeConfiguration = { config, lib, pkgs, ... }: {
imports = [
../crumb/programs/nvim.nix
];
programs.bash.enable = true;
home.sessionVariables = {
"EDITOR" = "nvim";
"VISUAL" = "nvim";
};
home.packages = [ pkgs.btop ];
sydnix = {
impermanence = {
enable = true;
directories = [
".ssh"
];
};
};
# Don't touch!
home.stateVersion = "18.09";
};
}