dotfiles/modules/diskstation.nix

17 lines
265 B
Nix

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