added media mount
This commit is contained in:
parent
9fe9cbed9e
commit
eeabaa6954
2 changed files with 18 additions and 1 deletions
|
@ -4,8 +4,13 @@
|
||||||
services.davfs2 = {
|
services.davfs2 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
buf_size 32
|
||||||
|
use_compression 1
|
||||||
|
table_size 4096
|
||||||
[/auto/diskstation]
|
[/auto/diskstation]
|
||||||
trust_server_cert diskstation.pem
|
trust_server_cert diskstation.pem
|
||||||
|
[/auto/media]
|
||||||
|
trust_server_cert diskstation.pem
|
||||||
[/auto/keepass]
|
[/auto/keepass]
|
||||||
trust_server_cert home-boehmies-de.pem
|
trust_server_cert home-boehmies-de.pem
|
||||||
'';
|
'';
|
||||||
|
@ -16,6 +21,7 @@
|
||||||
mapConf = pkgs.writeText "auto" ''
|
mapConf = pkgs.writeText "auto" ''
|
||||||
keepass -fstype=davfs,uid=1000 :https\://davs.home.boehmies.de/home/Drive/
|
keepass -fstype=davfs,uid=1000 :https\://davs.home.boehmies.de/home/Drive/
|
||||||
diskstation -fstype=davfs,uid=1000 :https\://192.168.0.2\:5006/home/Drive/
|
diskstation -fstype=davfs,uid=1000 :https\://192.168.0.2\:5006/home/Drive/
|
||||||
|
media -fstype=davfs,uid=1000 :https\://192.168.0.2\:5006/media
|
||||||
'';
|
'';
|
||||||
in ''
|
in ''
|
||||||
/auto file:${mapConf}
|
/auto file:${mapConf}
|
||||||
|
@ -34,7 +40,18 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
pairs = {
|
pairs = {
|
||||||
keepass.roots = [ "/home/moritz/Keepass" "/auto/keepass" ];
|
keepass.roots = [ "/home/moritz/Keepass" "/auto/keepass" ];
|
||||||
diskstation.roots = [ "/home/moritz/Documents" "/auto/diskstation" ];
|
diskstation = {
|
||||||
|
roots = [ "/home/moritz/Documents" "/auto/diskstation" ];
|
||||||
|
commandOptions = {
|
||||||
|
auto = "true";
|
||||||
|
batch = "true";
|
||||||
|
log = "false";
|
||||||
|
repeat = "watch";
|
||||||
|
sshcmd = "\${pkgs.openssh}/bin/ssh";
|
||||||
|
ui = "text";
|
||||||
|
fastcheck = "true";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue