Browse Source

Make services that require mounts actually require them

main
Leonora Tindall 3 months ago
parent
commit
aa9214c862
  1. 4
      hosts/crimespoon/configuration.nix
  2. 20
      hosts/felonyspork/configuration.nix

4
hosts/crimespoon/configuration.nix

@ -55,10 +55,14 @@
fsType = "nfs";
};
systemd.services.qbittorrent.after = ["mnt-Download.mount"];
systemd.services.qbittorrent.requires= ["mnt-Download.mount"];
# Enable backups to Moria via rsync
systemd.services.rsync_backup = {
serviceConfig.Type = "oneshot";
path = with pkgs; [ rsync ];
requires = ["mnt-Download.mount"];
script = ''
rsync -a --delete /var/games/minecraft/ moria.local::CRIMESPOON/minecraft/
'';

20
hosts/felonyspork/configuration.nix

@ -46,6 +46,24 @@
fsType = "nfs";
};
systemd.services.jellyfin.after = [
"mnt-Download.mount"
"mnt-Public.mount"
];
systemd.services.jellyfin.requires = [
"mnt-Download.mount"
"mnt-Public.mount"
];
systemd.services.syncthing.after = [
"mnt-moria.mount"
];
systemd.services.syncthing.requires = [
"mnt-moria.mount"
];
# Enable DigitalOcean dynamic DNS
systemd.services.do_dyndns = {
enable = true;
@ -216,6 +234,8 @@
"graphs1090.home.nora.codes"
];
};
systemd.services.nginx.after = ["avahi-daemon.service"];
systemd.services.nginx.requires= ["avahi-daemon.service"];
networking.firewall.allowedTCPPorts = [ 80 443 ];
# Export nginx stats

Loading…
Cancel
Save