added certificate
parent
d2a41d328d
commit
408b016b04
|
@ -3,18 +3,21 @@
|
||||||
{
|
{
|
||||||
services.davfs2 = {
|
services.davfs2 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = "trust_server_cert diskstation.pem";
|
extraConfig = ''
|
||||||
|
[/auto/diskstation]
|
||||||
|
trust_server_cert diskstation.pem
|
||||||
|
[/auto/keepass]
|
||||||
|
trust_server_cert home-boehmies-de.pem
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
services.autofs = {
|
services.autofs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoMaster =
|
autoMaster = let
|
||||||
let
|
|
||||||
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/
|
||||||
'';
|
'';
|
||||||
in
|
in ''
|
||||||
''
|
|
||||||
/auto file:${mapConf}
|
/auto file:${mapConf}
|
||||||
'';
|
'';
|
||||||
debug = true;
|
debug = true;
|
||||||
|
@ -22,19 +25,16 @@
|
||||||
environment.etc."davfs2/certs/diskstation.pem" = {
|
environment.etc."davfs2/certs/diskstation.pem" = {
|
||||||
text = builtins.readFile ./diskstation.pem;
|
text = builtins.readFile ./diskstation.pem;
|
||||||
};
|
};
|
||||||
|
environment.etc."davfs2/certs/home-boehmies-de.pem" = {
|
||||||
|
text = builtins.readFile ./home-boehmies-de.pem;
|
||||||
|
};
|
||||||
|
|
||||||
home-manager.users.moritz = {
|
home-manager.users.moritz = {
|
||||||
services.unison = {
|
services.unison = {
|
||||||
enable = true;
|
enable = true;
|
||||||
pairs = {
|
pairs = {
|
||||||
keepass.roots = [
|
keepass.roots = [ "/home/moritz/Keepass" "/auto/keepass" ];
|
||||||
"/home/moritz/Keepass"
|
diskstation.roots = [ "/home/moritz/Documents" "/auto/diskstation" ];
|
||||||
"/auto/keepass"
|
|
||||||
];
|
|
||||||
diskstation.roots = [
|
|
||||||
"/home/moritz/Documents"
|
|
||||||
"/auto/diskstation"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIEtjCCA56gAwIBAgISA8o1gHk+xEd8nnsAKlt3V+jBMA0GCSqGSIb3DQEBCwUA
|
||||||
|
MDIxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQD
|
||||||
|
EwJSMzAeFw0yMTA5MDMyMzMyMjJaFw0yMTEyMDIyMzMyMjFaMBsxGTAXBgNVBAMT
|
||||||
|
EGhvbWUuYm9laG1pZXMuZGUwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARPY6D0
|
||||||
|
/y3gL88epmDlzYsdD7DIi7auIBVDVjRP5CATgYrHsb+xQeCp9G3buWqV+ywGOoTa
|
||||||
|
JPO9dFZ1W426EJgPo4ICpjCCAqIwDgYDVR0PAQH/BAQDAgeAMB0GA1UdJQQWMBQG
|
||||||
|
CCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBQ59g+B
|
||||||
|
soozRU6WlvC0yC0DCG95AzAfBgNVHSMEGDAWgBQULrMXt1hWy65QCUDmH6+dixTC
|
||||||
|
xjBVBggrBgEFBQcBAQRJMEcwIQYIKwYBBQUHMAGGFWh0dHA6Ly9yMy5vLmxlbmNy
|
||||||
|
Lm9yZzAiBggrBgEFBQcwAoYWaHR0cDovL3IzLmkubGVuY3Iub3JnLzB1BgNVHREE
|
||||||
|
bjBsghVkYXZzLmhvbWUuYm9laG1pZXMuZGWCFGRzMS5ob21lLmJvZWhta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||
|
-----END CERTIFICATE-----
|
Loading…
Reference in New Issue