Compare commits
No commits in common. "000f56d295c4885a7c6c8a59588b260bcc02c69b" and "6ab24a55835f447b0e5054aa4af03ede183783ef" have entirely different histories.
000f56d295
...
6ab24a5583
|
@ -55,9 +55,6 @@
|
||||||
# Enable ZFS support
|
# Enable ZFS support
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
|
|
||||||
# Don't import encrypted datasets
|
|
||||||
boot.zfs.requestEncryptionCredentials = false;
|
|
||||||
|
|
||||||
# Scrub zpool monthly
|
# Scrub zpool monthly
|
||||||
services.zfs.autoScrub = {
|
services.zfs.autoScrub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -46,19 +46,4 @@ in {
|
||||||
requires = [ "systemd-udev-settle.service" ];
|
requires = [ "systemd-udev-settle.service" ];
|
||||||
after = [ "systemd-udev-settle.service" ];
|
after = [ "systemd-udev-settle.service" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# HACK: restart services dependent on ZFS afer mount
|
|
||||||
systemd.services.restart-services-mount = {
|
|
||||||
description = "Restart services after the ZFS dataset is mounted";
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
script = ''
|
|
||||||
sleep 5
|
|
||||||
systemctl restart syncthing
|
|
||||||
systemctl restart radicale
|
|
||||||
systemctl restart gitea
|
|
||||||
'';
|
|
||||||
serviceConfig.Type = "oneshot";
|
|
||||||
requires = [ "sata-hat.service" ];
|
|
||||||
after = [ "vault.mount" ];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue