persist spotify
This commit is contained in:
+5
-6
@@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user