allow sudo passwd

This commit is contained in:
RoyDumblauskas committed 2026-09-17 21:56:36 -05:00
1 parent 80200c95ed
commit 09ff5d1396
3 files changed
+56 -44

No files matched your search

+13 -1
View File
@@ -9,12 +9,24 @@
# Allow login and remote control of VM
users.users.admin = {
isNormalUser = true;
hashedPassword = "$y$j9T$WI7E.NXw4qar1DXodrVWG/$gUErw1R6W8k1UFm49C5.vEc9MT5RcKW0BKitURNqbl/";
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAcofS7u0BYzRBn0i4RuXPHWpnvk3nEbGo9B9ghsR4oL roydumblauskas@gmail.com"
];
};
# Don't allow password login
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
# ================================ #
# SOPS #
# ================================ #
@@ -65,7 +77,7 @@
enable = true;
dataDir = "/var/lib/postgresql";
port = 5432;
credentialsFile = ./secrets/ex-psql.yaml;
credentialsFile = config.sops.secrets."postgresql-credentials".path;
databases = [
"test"
];