Files
nix-config/system/users/phundrak.nix

28 lines
715 B
Nix
Raw Normal View History

2025-05-04 02:47:36 +02:00
{
lib,
config,
pkgs,
...
}:
with lib; let
cfg = config.mySystem.users.phundrak;
2025-05-04 02:47:36 +02:00
in {
options.mySystem.users.phundrak = {
enable = mkEnableOption "Enables user phundrak";
trusted = mkEnableOption "Mark the user as trusted by Nix";
2025-05-04 02:47:36 +02:00
};
config = {
users.users.phundrak = mkIf cfg.enable {
isNormalUser = true;
description = "Lucien Cartier-Tilet";
extraGroups = ["networkmanager" "wheel" "docker" "dialout" "podman" "plugdev" "games" "audio" "input"];
shell = pkgs.zsh;
openssh.authorizedKeys.keyFiles = lib.filesystem.listFilesRecursive ../../users/phundrak/keys;
};
nix.settings = mkIf cfg.trusted {
trusted-users = ["phundrak"];
2025-05-04 02:47:36 +02:00
};
};
}