1
0
Fork 0
nixos-config/nixos/roles/admin.nix
2022-09-14 18:14:19 +02:00

20 lines
466 B
Nix

{
config,
pkgs,
lib,
...
}: let
passwordFile = pkgs.privatePath "pam-login-password";
openssh.authorizedKeys.keys = pkgs.privateValue [] "ssh-keys";
in {
users.users = {
maralorn = {
description = "maralorn";
isNormalUser = true;
uid = 1000;
extraGroups = ["wheel" "systemd-journal" "networkmanager" "docker" "video" "adbusers"];
inherit openssh passwordFile;
};
root = {inherit openssh passwordFile;};
};
}