hosts/legion/nas: enable restic, make services depend on zfs mount
This commit is contained in:
parent
fce605589e
commit
a1d60a6107
2 changed files with 25 additions and 2 deletions
|
@ -37,11 +37,14 @@
|
|||
systemd.mounts = [
|
||||
{
|
||||
type = "none";
|
||||
options = "bind,nofail";
|
||||
options = "bind";
|
||||
what = "/media/data";
|
||||
where = "/export/yotta-data";
|
||||
requires = [ "zfs-mount.service" ];
|
||||
after = [ "zfs-mount.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
before = ["nfs-server.service"];
|
||||
requiredBy = ["nfs-server.service"];
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ username, ... }:
|
||||
{ username, lib, ... }:
|
||||
{
|
||||
services.jellyfin.enable = true;
|
||||
services.radarr.enable = true;
|
||||
|
@ -10,6 +10,11 @@
|
|||
config.download_location = "/media/deluge";
|
||||
};
|
||||
|
||||
services.restic.server = {
|
||||
enable = true;
|
||||
dataDir = "/media/restic";
|
||||
};
|
||||
|
||||
users.users = {
|
||||
jellyfin.extraGroups = [
|
||||
"radarr"
|
||||
|
@ -19,4 +24,19 @@
|
|||
sonarr.extraGroups = [ "deluge" ];
|
||||
${username}.extraGroups = [ "deluge" ];
|
||||
};
|
||||
|
||||
systemd.services =
|
||||
lib.genAttrs
|
||||
[
|
||||
"jellyfin"
|
||||
"radarr"
|
||||
"sonarr"
|
||||
"prowlarr"
|
||||
"deluged"
|
||||
"restic-rest-server"
|
||||
]
|
||||
(_: {
|
||||
requires = [ "zfs-mount.service" ];
|
||||
after = [ "zfs-mount.service" ];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue