Used agenix to manage secrets, 4 services up, ssh
This commit is contained in:
@@ -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" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user