nixos/modules/malte.nix

89 lines
2.1 KiB
Nix
Raw Normal View History

{
pkgs,
lib,
config,
inputs,
...
}: let
cfg = config.users.custom.malte;
in {
options.users.custom.malte = with lib; {
enable = mkEnableOption "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"
2022-12-24 00:20:51 +01:00
"render"
"lp"
"kvm"
"libvirtd"
"podman"
"corectrl"
"scanner"
2022-03-28 22:36:40 +02:00
"input"
config.users.groups.adbusers.name
config.users.groups.keys.name
];
# Yes, use the best, please
shell = pkgs.fish;
# Allow my yubikey everywhere
openssh.authorizedKeys.keyFiles = [../users/malte/yubikey.pub];
};
users.groups.adbusers = {};
home-manager.users.malte.imports = [../users/malte/home.nix inputs.nix-colors.homeManagerModule inputs.hyprland.homeManagerModules.default];
programs.fish.enable = true;
2023-08-16 23:11:56 +02:00
services.udev.packages = [
pkgs.android-udev-rules
];
# TODO: Remove after switching occupation
2023-08-16 23:11:56 +02:00
services.clamav.daemon.enable = true;
services.clamav.updater.enable = true;
2022-09-12 12:56:20 +02:00
services.flatpak.enable = true;
2023-07-03 11:20:50 +02:00
programs.hyprland = {
enable = true;
xwayland = {
enable = true;
};
enableNvidiaPatches = config.settings.nvidiaUsed;
2023-07-03 11:20:50 +02:00
};
sops.secrets = let
sopsFile = ../secrets/users/malte/secrets.yaml;
owner = "malte";
mode = "0400";
in {
restic-backup-malte = {
inherit sopsFile owner mode;
key = "restic-backup";
};
radicale-password = {
inherit sopsFile owner mode;
};
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;
};
};
};
}