This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/nixos/profiles/global/users.nix

42 lines
845 B
Nix
Raw Normal View History

2024-03-18 04:26:02 -05:00
{ pkgs
, config
, ...
}:
let
2024-03-17 16:04:32 -05:00
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
2024-03-18 04:26:02 -05:00
in
{
2024-04-11 04:42:26 -05:00
sops.secrets = {
truxnell-password = {
sopsFile = ./secrets.sops.yaml;
2024-04-11 04:42:26 -05:00
neededForUsers = true;
};
};
2024-03-13 06:55:17 -05:00
users.users.truxnell = {
isNormalUser = true;
shell = pkgs.fish;
hashedPasswordFile = config.sops.secrets.truxnell-password.path;
2024-03-17 16:04:32 -05:00
extraGroups =
[
"wheel"
]
++ ifTheyExist [
"network"
"samba-users"
2024-03-24 07:21:41 -05:00
"docker"
"podman"
"audio" # pulseaudio
"libvirtd"
2024-03-17 16:04:32 -05:00
];
2024-03-13 06:55:17 -05:00
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMZS9J1ydflZ4iJdJgO8+vnN8nNSlEwyn9tbWU9OcysW truxnell@home"
]; # TODO do i move to ingest github creds?
2024-03-13 06:55:17 -05:00
2024-03-25 00:47:43 -05:00
# packages = [ pkgs.home-manager ];
2024-03-13 06:55:17 -05:00
};
}