nixos/modules/marie.nix
Malte Tammena 480d398c93 chore(users): drop sftp related things for marie/malte
Was only used for the remote printing service, which is also dropped with this commit.
2023-11-18 11:23:32 +01:00

44 lines
999 B
Nix

{
pkgs,
lib,
config,
...
}: let
cfg = config.users.custom.marie;
in {
options.users.custom.marie = with lib; {
enable = mkEnableOption "Enable user 'marie' on this machine";
};
config = lib.mkIf cfg.enable {
users.users.marie = {
isNormalUser = true;
extraGroups = [
"wheel"
"networkmanager"
"video"
"lp"
"scanner"
config.users.groups.keys.name
];
hashedPassword = "$6$Fo/q41zf1/tI4dgX$.Y1bnBkGjwkRCOM2gg1yZtAjFQadjAVX8Eq8Llw5Y12ENOycBWtNaCVPli2P7gwNpLSg3p80iG.Zy.T1GR0NG0";
# This is really just for my comfort
shell = pkgs.fish;
};
programs.fish.enable = true;
home-manager.users.marie.imports = [../users/marie/home.nix];
sops.secrets = let
sopsFile = ../secrets/users/marie/secrets.yaml;
owner = "marie";
mode = "0400";
in {
restic-backup-marie = {
inherit sopsFile owner mode;
key = "restic-backup";
};
};
};
}