dotfiles/nixos/users.nix

43 lines
939 B
Nix
Raw Normal View History

2021-07-10 15:27:52 -06:00
{ pkgs, ... }:
2021-07-10 15:27:14 -06:00
{
security.sudo.wheelNeedsPassword = false;
users.extraUsers = let
extraGroups = [
"audio"
"adbusers"
"disk"
"docker"
"networkmanager"
"plugdev"
"systemd-journal"
"video"
"wheel"
];
userDefaults = {
inherit extraGroups;
group = "users";
isNormalUser = true;
createHome = true;
shell = pkgs.zsh;
};
in {
imalison = userDefaults // {
name = "imalison";
shell = pkgs.zsh;
2021-07-13 03:37:03 -06:00
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICzGkqGJm+nrMvsrfuWOLVxXHvi0UL1ULJmyfzS9sKpy imalison@biskcomp.local"
];
2021-07-10 15:27:14 -06:00
};
kat = userDefaults // {
name = "kat";
shell = pkgs.zsh;
};
};
2021-07-13 03:37:03 -06:00
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.imalison = import ./home-manager.nix;
2021-07-10 15:27:14 -06:00
nix.trustedUsers = ["imalison" "kat"];
}