2022-03-23 13:10:18 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
2022-06-05 14:16:32 +02:00
|
|
|
flake,
|
2022-03-23 13:10:18 +01:00
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.users.custom.malte;
|
|
|
|
in {
|
|
|
|
options.users.custom.malte = with lib; {
|
|
|
|
enable = mkEnableOption "Enable user 'malte' on this machine";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
users.users.malte = {
|
|
|
|
description = "Malte Tammena";
|
|
|
|
hashedPassword = "$6$zqEC2iJJ98Ne$lRERO30msyjJm7oJCqRD/xj3NIm4De37gD.VUzfg7aceosE/6S6eNAaruIakgUtSC970MHRPoNlCEy1RoFuyh.";
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"networkmanager"
|
|
|
|
"video"
|
|
|
|
"lp"
|
|
|
|
"kvm"
|
|
|
|
"libvirtd"
|
|
|
|
"podman"
|
|
|
|
"corectrl"
|
|
|
|
"scanner"
|
2022-03-28 22:36:40 +02:00
|
|
|
"input"
|
2022-05-30 18:31:39 +02:00
|
|
|
"adbusers"
|
2022-03-23 13:10:18 +01:00
|
|
|
config.users.groups.keys.name
|
|
|
|
];
|
|
|
|
# Yes, use the best, please
|
|
|
|
shell = pkgs.fish;
|
|
|
|
};
|
|
|
|
|
2022-06-05 14:16:32 +02:00
|
|
|
home-manager.users.malte.imports = [../users/malte/home.nix flake.inputs.nix-colors.homeManagerModule];
|
2022-03-23 13:10:18 +01:00
|
|
|
programs.fish.enable = true;
|
2022-05-08 21:41:26 +02:00
|
|
|
services.darkman.enable = true;
|
2022-03-23 13:10:18 +01:00
|
|
|
|
2022-05-30 18:31:39 +02:00
|
|
|
services.udev.packages = [
|
|
|
|
pkgs.android-udev-rules
|
|
|
|
];
|
|
|
|
|
2022-06-16 11:12:06 +02:00
|
|
|
# TODO: Remove after switching occupation
|
|
|
|
services.clamav.daemon.enable = true;
|
|
|
|
services.clamav.updater.enable = true;
|
|
|
|
|
2022-09-12 12:56:20 +02:00
|
|
|
services.flatpak.enable = true;
|
|
|
|
|
2022-03-29 17:00:31 +02:00
|
|
|
sops.secrets = let
|
|
|
|
sopsFile = ../secrets/users/malte/secrets.yaml;
|
|
|
|
owner = "malte";
|
|
|
|
mode = "0400";
|
|
|
|
in {
|
|
|
|
restic-backup-malte = {
|
|
|
|
inherit sopsFile owner mode;
|
2022-03-23 13:10:18 +01:00
|
|
|
key = "restic-backup";
|
|
|
|
};
|
2022-03-29 17:00:31 +02:00
|
|
|
radicale-password = {
|
|
|
|
inherit sopsFile owner mode;
|
|
|
|
};
|
|
|
|
taskserver-private-key = {
|
|
|
|
inherit sopsFile owner mode;
|
|
|
|
};
|
|
|
|
taskserver-certificate = {
|
|
|
|
inherit sopsFile owner mode;
|
|
|
|
};
|
|
|
|
taskserver-ca-certificate = {
|
|
|
|
inherit sopsFile owner mode;
|
2022-03-23 13:10:18 +01:00
|
|
|
};
|
2022-04-04 13:45:48 +02:00
|
|
|
pw-mail-pm = {
|
|
|
|
inherit sopsFile owner mode;
|
|
|
|
};
|
|
|
|
pw-mail-uni = {
|
|
|
|
inherit sopsFile owner mode;
|
|
|
|
};
|
|
|
|
pw-mail-gmx = {
|
|
|
|
inherit sopsFile owner mode;
|
|
|
|
};
|
|
|
|
pw-mail-schulverwalter = {
|
|
|
|
inherit sopsFile owner mode;
|
|
|
|
};
|
2022-10-15 12:50:04 +02:00
|
|
|
sftp-key = {
|
|
|
|
inherit sopsFile owner mode;
|
|
|
|
};
|
2022-03-23 13:10:18 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|