goyplex-vm: add fen user (key + NOPASSWD sudo), fix rebuild.sh host, retire hermes input
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
./timezone.nix
|
||||
./nix.nix
|
||||
./program.nix
|
||||
./user.nix
|
||||
./users.nix
|
||||
./ssh.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
nix.settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
};
|
||||
# nix.settings = {
|
||||
# experimental-features = "nix-command flakes";
|
||||
# };
|
||||
}
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
{ username, pkgs, ... }:
|
||||
|
||||
{
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
description = "${username}";
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"docker"
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
nix.settings.allowed-users = [ "@wheel" ];
|
||||
}
|
||||
@@ -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" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user