added diskstation

This commit is contained in:
Moritz Böhme 2021-09-14 13:14:20 +02:00
parent 5d7fc1f9f8
commit a4c9c5d8e3

16
modules/diskstation.nix Normal file
View file

@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }:
{
services.davfs2.enable = true;
services.autofs = {
autoMaster =
let
mapConf = pkgs.writeText "auto" ''
keepass -fstype=favfs,conf=
'';
in
''
/auto file:${mapConf}
'';
};
}