persist spotify

This commit is contained in:
2026-06-16 22:59:28 -05:00
parent 952e9731ed
commit 6e6b734d4e
2 changed files with 7 additions and 6 deletions
+5 -6
View File
@@ -47,12 +47,13 @@
age.generateKey = true; age.generateKey = true;
defaultSopsFormat = "json"; defaultSopsFormat = "json";
# test secrets
secrets = { secrets = {
"networkPasswords" = { "networkPasswords" = {
sopsFile = ./secrets/networking.yaml; sopsFile = ./secrets/networking.yaml;
key = "networkPasswords"; key = "networkPasswords";
format = "yaml"; format = "yaml";
# let the service that needs the secrets own them
owner = "wpa_supplicant"; owner = "wpa_supplicant";
group = "wpa_supplicant"; group = "wpa_supplicant";
}; };
@@ -136,16 +137,14 @@
wantedBy = [ "initrd.target" ]; wantedBy = [ "initrd.target" ];
before = [ "sysroot.mount" ]; before = [ "sysroot.mount" ];
after = [ "zfs-import-zroot.service" ]; after = [ "zfs-import-zroot.service" ];
path = with pkgs; [ path = [ pkgs.zfs ];
coreutils
zfs
];
unitConfig.DefaultDependencies = "no"; unitConfig.DefaultDependencies = "no";
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
script = '' script = ''
zfs rollback -r zroot/root@blank && echo "blank rollback complete" | tee /dev/kmsg zfs rollback -r zroot/root@blank
echo "blank rollback complete" > /dev/kmsg
''; '';
}; };
}; };
+2
View File
@@ -175,6 +175,8 @@
".cache/mozilla/firefox/roy" ".cache/mozilla/firefox/roy"
# persist steam # persist steam
".local/share/Steam" ".local/share/Steam"
# persist spotify
".config/spotify"
]; ];
files = [ files = [
".bash_history" ".bash_history"