ephemeral root boots. Figure out what directory/pool to snapshot

This commit is contained in:
2025-04-27 15:34:15 -05:00
parent 52429b2544
commit fa0bdb2f62
2 changed files with 2 additions and 10 deletions
-9
View File
@@ -38,15 +38,6 @@ in
}; };
}; };
# make sure that the transfered sops key is moved to correct directory
system.activationScripts.installSopsKey = {
text = ''
mkdir -p /etc/sops/age
mv /tmp/keys.txt /etc/sops/age/keys.txt
chmod 600 /etc/sops/age/keys.txt
'';
};
systemd.user.services.mbsync.unitConfig.After = [ "sops-nix.service" ]; systemd.user.services.mbsync.unitConfig.After = [ "sops-nix.service" ];
environment.variables = { environment.variables = {
+2 -1
View File
@@ -38,7 +38,8 @@
compression = "zstd"; compression = "zstd";
"com.sun:auto-snapshot" = "false"; "com.sun:auto-snapshot" = "false";
}; };
postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot@blank$' || zfs snapshot zroot@blank"; # what should I be making a snapshot of here?!!!!
postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zpool/local/zroot@blank$' || zfs snapshot zpool/local/zroot@blank";
datasets = { datasets = {
"root" = { "root" = {