1
0
Fork 0
nixos-config/nixos/roles/admin.nix
2023-02-02 04:58:37 +01:00

21 lines
535 B
Nix

{
config,
pkgs,
lib,
...
}: let
openssh.authorizedKeys.keys = pkgs.privateValue [] "ssh-keys";
passwordFile = lib.mkIf (config.networking.hostName != "chor-cloud") config.age.secrets.pam-login-password.path;
in {
users.users = {
maralorn = {
description = "maralorn";
isNormalUser = true;
uid = 1000;
extraGroups = ["wheel" "systemd-journal" "networkmanager" "docker" "video" "adbusers" "dialout"];
inherit openssh passwordFile;
};
root = {inherit openssh passwordFile;};
};
}