added diskstation

nixos
Moritz Böhme 2021-09-14 13:14:20 +02:00
parent 5d7fc1f9f8
commit a4c9c5d8e3
1 changed files with 16 additions and 0 deletions

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}
'';
};
}