mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
29 lines
863 B
Nix
29 lines
863 B
Nix
{ config, ... }:
|
|
{
|
|
sops.secrets."users/felix/password".neededForUsers = true;
|
|
sops.secrets."users/felix/password" = { };
|
|
|
|
users.users.felix = {
|
|
isNormalUser = true;
|
|
home = "/home/felix";
|
|
group = "felix";
|
|
extraGroups = [
|
|
"adbusers" # adb control
|
|
"audio" # sound control
|
|
"dialout" # serial-console
|
|
"docker" # usage of `docker` socket
|
|
"input" # mouse control
|
|
"libvirtd" # kvm control
|
|
"networkmanager" # wireless configuration
|
|
"podman" # usage of `podman` socket
|
|
"video" # screen control
|
|
"wheel" # `sudo` for the user.
|
|
];
|
|
passwordFile = config.sops.secrets."users/felix/password".path;
|
|
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFx6OLwL9MbkD3mnMsv+xrzZHN/rwCTgVs758SCLG0h felix@thinkman" ];
|
|
};
|
|
|
|
users.groups.felix = {
|
|
gid = 1000;
|
|
};
|
|
}
|