Used agenix to manage secrets, 4 services up, ssh

This commit is contained in:
2025-08-08 17:00:47 -04:00
parent ac6c3688ef
commit 911f3589a2
20 changed files with 369 additions and 56 deletions

View File

@@ -1,10 +1,26 @@
{ pkgs, inputs, config, ... }: {
# Define a user account. Don't forget to set a password with passwd.
{ pkgs, inputs, config, keys, ... }: {
users.users.gortium = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" ]; # Enable sudo for the user.
packages = with pkgs; [
tree
btop
];
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [
keys.users.gortium.main
];
};
programs.zsh.enable = true;
security.sudo.extraRules = [
{
users = [ "gortium" ];
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ];
}
];
}
];
}