nixos-config/modules/system/accounts/users/custom/main/default.nix

49 lines
1.2 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2024-10-09 03:36:08 -04:00
{
options.sysusers = lib.mkOption {
type = lib.types.attrs;
};
2024-10-20 04:41:23 -04:00
config = {
2025-03-07 23:14:13 -05:00
sysusers.main = "bun";
2024-10-20 04:41:23 -04:00
users.users."${config.sysusers.main}" = {
hashedPassword = config.secrets.mainAccPass;
isNormalUser = true;
createHome = true;
openssh.authorizedKeys.keyFiles = [
../../../../../../hosts/tower/id_ed25519.pub
../../../../../../hosts/envy/id_ed25519.pub
../../../../../../hosts/redmond/id_ed25519.pub
../../../../../../hosts/kitty/id_ed25519.pub
../../../../../../hosts/midas/id_ed25519.pub
../../../../../../hosts/prophet/id_ed25519.pub
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJahAoF74BY6GCTsFkt1ADKaraFgJJozW1Y1aBTLK0j9 Pixel9"
];
extraGroups = [
"wheel"
"audio"
"video"
"input"
"disk"
"dialout"
2025-03-07 23:07:15 -05:00
"rtkit"
"kvm"
"libvirtd"
"qemu-libvirtd"
"nginx"
"minecraft"
"nfsShare"
];
uid = 1000;
shell = pkgs.zsh;
};
home-manager.users."${config.sysusers.main}" = import ../../../../../home;
};
2024-08-24 22:16:51 -04:00
}