comments out no longer needed mounts
This commit is contained in:
parent
cb33921e13
commit
33df9ff591
1 changed files with 31 additions and 31 deletions
|
@ -1,26 +1,26 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.davfs2 = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
[/auto/keepass]
|
||||
trust_server_cert home-boehmies-de.pem
|
||||
'';
|
||||
};
|
||||
services.autofs = {
|
||||
enable = true;
|
||||
autoMaster = let
|
||||
mapConf = pkgs.writeText "auto" ''
|
||||
keepass -fstype=davfs,uid=1000 :https\://davs.home.boehmies.de/home/Drive/
|
||||
'';
|
||||
in ''
|
||||
/auto file:${mapConf}
|
||||
'';
|
||||
};
|
||||
environment.etc."davfs2/certs/home-boehmies-de.pem" = {
|
||||
text = builtins.readFile ./home-boehmies-de.pem;
|
||||
};
|
||||
# services.davfs2 = {
|
||||
# enable = true;
|
||||
# extraConfig = ''
|
||||
# [/auto/keepass]
|
||||
# trust_server_cert home-boehmies-de.pem
|
||||
# '';
|
||||
# };
|
||||
# services.autofs = {
|
||||
# enable = true;
|
||||
# autoMaster = let
|
||||
# mapConf = pkgs.writeText "auto" ''
|
||||
# keepass -fstype=davfs,uid=1000 :https\://davs.home.boehmies.de/home/Drive/
|
||||
# '';
|
||||
# in ''
|
||||
# /auto file:${mapConf}
|
||||
# '';
|
||||
# };
|
||||
# environment.etc."davfs2/certs/home-boehmies-de.pem" = {
|
||||
# text = builtins.readFile ./home-boehmies-de.pem;
|
||||
# };
|
||||
|
||||
fileSystems."/media/media" = {
|
||||
device = "//192.168.0.2/media";
|
||||
|
@ -35,18 +35,18 @@
|
|||
];
|
||||
};
|
||||
|
||||
fileSystems."/media/diskstation" = {
|
||||
device = "//192.168.0.2/home/Drive";
|
||||
fsType = "cifs";
|
||||
options = let
|
||||
# this line prevents hanging on network split
|
||||
automount_opts =
|
||||
"x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
||||
# fileSystems."/media/diskstation" = {
|
||||
# device = "//192.168.0.2/home/Drive";
|
||||
# fsType = "cifs";
|
||||
# options = let
|
||||
# # this line prevents hanging on network split
|
||||
# automount_opts =
|
||||
# "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
||||
|
||||
in [
|
||||
"${automount_opts},credentials=/run/secrets/smbMoritz,uid=1000,gid=100"
|
||||
];
|
||||
};
|
||||
# in [
|
||||
# "${automount_opts},credentials=/run/secrets/smbMoritz,uid=1000,gid=100"
|
||||
# ];
|
||||
# };
|
||||
|
||||
# home-manager.users.moritz = {
|
||||
# services.unison = {
|
||||
|
|
Loading…
Reference in a new issue