added diskstation
This commit is contained in:
parent
5d7fc1f9f8
commit
a4c9c5d8e3
1 changed files with 16 additions and 0 deletions
16
modules/diskstation.nix
Normal file
16
modules/diskstation.nix
Normal 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}
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue