users and passwords

This commit is contained in:
2023-07-20 15:02:38 +03:00
parent 16a8eff543
commit 5313a3ffeb
5 changed files with 62 additions and 39 deletions

View File

@@ -19,6 +19,11 @@ in {
timeZone = "UTC";
base = {
users.passwd = {
root.passwordFile = config.age.secrets.root-passwd-hash.path;
motiejus.passwordFile = config.age.secrets.motiejus-passwd-hash.path;
};
initrd = {
enable = true;
authorizedKeys = builtins.attrValues myData.ssh_pubkeys;
@@ -32,7 +37,7 @@ in {
zfsborg = {
enable = true;
repo = "zh2769@zh2769.rsync.net:hel1-a.servers.jakst";
passwdPath = config.age.secrets.borgbackup-password.path;
passwordPath = config.age.secrets.borgbackup-password.path;
mountpoints = {
"/var/lib" = {
paths = [

View File

@@ -9,7 +9,10 @@ in {
mj = {
stateVersion = "23.05";
timeZone = "UTC";
stubPasswords = true;
base.users.passwd = {
root.initialPassword = "live";
};
};
environment = {