dotfiles/users/nyadmin/default.nix

22 lines
596 B
Nix
Raw Normal View History

2024-02-02 04:25:35 +00:00
{ config, pkgs, lib, ... }:
{
imports = [ ../default.nix ];
2025-10-29 23:46:52 -07:00
sops.secrets."password-hash/nyadmin" = {
neededForUsers = true;
sopsFile = ../../secrets/nyadmin/secrets.yaml;
};
2024-02-02 04:25:35 +00:00
users.users.nyadmin = {
2025-10-29 23:46:52 -07:00
isNormalUser = true;
shell = pkgs.zsh;
home = "/home/nyadmin";
description = "nyadministrator~";
extraGroups = [ "wheel" "kvm" "libvirt" "docker" ];
hashedPasswordFile = config.sops.secrets."password-hash/nyadmin".path;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOVgHcJ9C8TD515x+KqFKNYUa6IZML6LU3FWovmDIvyZ" ];
2024-02-02 04:25:35 +00:00
};
}