wip snapshots

This commit is contained in:
2023-07-18 12:31:48 +03:00
parent 26747bd639
commit 46e2d86918
4 changed files with 71 additions and 8 deletions

View File

@@ -8,6 +8,7 @@
imports = [
./sshd
./initrd
./snapshot
];
options.mj = {
@@ -51,11 +52,17 @@
};
users = let
withPasswordFile = file: attrs: (if config.mj.stubPasswords then {
initialPassword = "live";
} else {
passwordFile = file;
}) // attrs;
withPasswordFile = file: attrs:
(
if config.mj.stubPasswords
then {
initialPassword = "live";
}
else {
passwordFile = file;
}
)
// attrs;
in {
mutableUsers = false;
@@ -67,7 +74,7 @@
openssh.authorizedKeys.keys = [myData.ssh_pubkeys.motiejus];
};
root = withPasswordFile config.age.secrets.root-passwd-hash.path { };
root = withPasswordFile config.age.secrets.root-passwd-hash.path {};
};
};