goyplex-vm: add fen user (key + NOPASSWD sudo), fix rebuild.sh host, retire hermes input

This commit is contained in:
2026-09-05 09:16:55 -05:00
parent 8ac8e29256
commit 223b1c52f3
6 changed files with 60 additions and 218 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
./timezone.nix
./nix.nix
./program.nix
./user.nix
./users.nix
./ssh.nix
];
}
+3 -3
View File
@@ -1,5 +1,5 @@
{
nix.settings = {
experimental-features = "nix-command flakes";
};
# nix.settings = {
# experimental-features = "nix-command flakes";
# };
}
-14
View File
@@ -1,14 +0,0 @@
{ username, pkgs, ... }:
{
users.users.${username} = {
isNormalUser = true;
description = "${username}";
extraGroups = [
"wheel"
"docker"
];
shell = pkgs.zsh;
};
nix.settings.allowed-users = [ "@wheel" ];
}
+35
View File
@@ -0,0 +1,35 @@
{ username, pkgs, ... }:
{
users.users.${username} = {
isNormalUser = true;
description = "${username}";
extraGroups = [
"wheel"
"docker"
];
shell = pkgs.zsh;
};
users.users.fen = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ8nZT7pA+Wp7mnjKSJPpmYs+tFx5q+gtvOcSSMJt93D fen"
];
};
nix.settings.allowed-users = [ "@wheel" ];
security.sudo.extraRules = [
{
users = [ "fen" ];
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ];
}
];
}
];
}