add impermanence for user dirs

This commit is contained in:
2025-06-05 12:00:56 -05:00
parent a3b497aa46
commit cd5450a936
7 changed files with 36 additions and 30 deletions
+7 -5
View File
@@ -65,7 +65,7 @@
# Declare test service manually
services.tests-service = {
enable = true;
# port = 8080;
port = 8080;
default-nginx = {
enable = true;
hostname = "test.roypository.com";
@@ -153,10 +153,12 @@
};
# Symlink the user directories that need to be persisted (ssh key/repository folder)
systemd.tmpfiles.rules = [
"L /home/sysAdmin/.ssh/ - - - - /persist/home/sysAdmin/.ssh"
"L /home/sysAdmin/rp/ - - - - /persist/home/sysAdmin/rp"
];
environment.persistence."/persist" = {
users.sysAdmin.directories = [
".ssh"
"rp"
];
};
users.users.root = {
hashedPassword = "$y$j9T$IjaP0KIfdpEvlLtOn.u0T/$0MJDaFEdSu6zSJ04CF1dtorD6IVgbN3vmDiiwGwwqr5";