Compare commits
3 commits
3df87b1a12
...
a3d1233ad1
Author | SHA1 | Date | |
---|---|---|---|
a3d1233ad1 | |||
37e55bb342 | |||
64425bd447 |
2 changed files with 8 additions and 4 deletions
|
@ -16,15 +16,19 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.nfs-server.preStart = ''
|
||||||
|
chmod -R 775 /export/hd/torrent
|
||||||
|
'';
|
||||||
|
|
||||||
services.webdav = {
|
services.webdav = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
address = "10.1.1.2"; # accessible only in LAN, used by Kodi installed on the TV
|
address = "0.0.0.0";
|
||||||
port = 9999;
|
port = 9999;
|
||||||
scope = "/mnt/hd/torrent";
|
scope = "/mnt/hd/torrent";
|
||||||
modify = false;
|
modify = false;
|
||||||
auth = false; # TODO should we enable authentication? It's only reachable in LAN
|
auth = false;
|
||||||
debug = true;
|
debug = true;
|
||||||
users = [ ];
|
users = [ ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -39,8 +39,8 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /mnt/hd/torrent 770 transmission transmission"
|
"d /mnt/hd/torrent 774 transmission transmission"
|
||||||
"d /mnt/hd/torrent/.incomplete 770 transmission transmission"
|
"d /mnt/hd/torrent/.incomplete 774 transmission transmission"
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.persistence."/persist".directories = [
|
environment.persistence."/persist".directories = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue