Compare commits
2 Commits
6ab24a5583
...
000f56d295
Author | SHA1 | Date |
---|---|---|
coolneng | 000f56d295 | |
coolneng | 7c3e61e51a |
|
@ -55,6 +55,9 @@
|
||||||
# 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,4 +46,19 @@ 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