nixos/machines/core/users.nix

29 lines
663 B
Nix
Raw Normal View History

2020-11-16 21:14:46 +01:00
{ config, pkgs, lib, ... }:
{
2022-11-30 14:59:18 +01:00
sops.secrets."users/felix/password".neededForUsers = true;
sops.secrets."users/felix/password" = { };
2022-06-06 11:47:50 +02:00
2020-11-16 21:14:46 +01:00
users.users.felix = {
isNormalUser = true;
home = "/home/felix";
group = "felix";
extraGroups = [
"wheel"
"adbusers"
"audio"
"dialout"
2020-11-16 21:14:46 +01:00
"docker"
"input"
"libvirtd"
"networkmanager"
"video"
];
2022-11-30 14:59:18 +01:00
passwordFile = config.sops.secrets."users/felix/password".path;
2020-11-16 21:14:46 +01:00
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFx6OLwL9MbkD3mnMsv+xrzZHN/rwCTgVs758SCLG0h felix@thinkman" ];
};
users.groups.felix = {
gid = 1000;
};
}