Reorganise hardware vs host config, tidy settings and services
This commit is contained in:
parent
effc4da3a6
commit
93ea194da4
13 changed files with 185 additions and 195 deletions
|
|
@ -19,6 +19,20 @@
|
|||
gid = 3000;
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
# qbittorrent app data
|
||||
"d /var/lib/qbittorrent 0755 qbittorrent media -"
|
||||
"d /var/lib/qbittorrent/.config 0755 qbittorrent media -"
|
||||
"d /var/lib/qbittorrent/.config/qBittorrent 0755 qbittorrent media -"
|
||||
"d /var/lib/qbittorrent/.local 0755 qbittorrent media -"
|
||||
"d /var/lib/qbittorrent/.local/share 0755 qbittorrent media -"
|
||||
"d /var/lib/qbittorrent/.local/share/qBittorrent 0755 qbittorrent media -"
|
||||
|
||||
# Storage - qbittorrent downloads here
|
||||
"d /mnt/storage/torrents/downloads 2775 qbittorrent media -"
|
||||
"Z /mnt/storage/torrents/downloads 2775 qbittorrent media -"
|
||||
];
|
||||
|
||||
systemd.services.qbittorrent-nox = {
|
||||
description = "qBittorrent-nox service";
|
||||
after = [ "network.target" ];
|
||||
|
|
|
|||
|
|
@ -3,25 +3,9 @@
|
|||
{
|
||||
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
||||
systemd.tmpfiles.rules = [
|
||||
# qbittorrent app data
|
||||
"d /var/lib/qbittorrent 0755 qbittorrent media -"
|
||||
"d /var/lib/qbittorrent/.config 0755 qbittorrent media -"
|
||||
"d /var/lib/qbittorrent/.config/qBittorrent 0755 qbittorrent media -"
|
||||
"d /var/lib/qbittorrent/.local 0755 qbittorrent media -"
|
||||
"d /var/lib/qbittorrent/.local/share 0755 qbittorrent media -"
|
||||
"d /var/lib/qbittorrent/.local/share/qBittorrent 0755 qbittorrent media -"
|
||||
|
||||
# Storage - qbittorrent downloads here
|
||||
"d /mnt/storage/torrents/downloads 2775 qbittorrent media -"
|
||||
"Z /mnt/storage/torrents/downloads 2775 qbittorrent media -"
|
||||
|
||||
# Shows - sonarr organises, bazarr writes subtitles
|
||||
"d /mnt/storage/torrents/shows 2775 sonarr media -"
|
||||
"Z /mnt/storage/torrents/shows 2775 sonarr media -"
|
||||
|
||||
# Audiobooks
|
||||
"d /mnt/storage/torrents/audiobooks 2775 sonarr media -"
|
||||
"Z /mnt/storage/torrents/audiobooks 2775 sonarr media -"
|
||||
# Audiobooks - manually managed, no dedicated service yet
|
||||
"d /mnt/storage/torrents/audiobooks 2775 fred media -"
|
||||
"Z /mnt/storage/torrents/audiobooks 2775 fred media -"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,5 +19,11 @@
|
|||
group = "media";
|
||||
extraGroups = [ "media" ];
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
# Shows - sonarr organises, bazarr writes subtitles
|
||||
"d /mnt/storage/torrents/shows 2775 sonarr media -"
|
||||
"Z /mnt/storage/torrents/shows 2775 sonarr media -"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue