29 lines
524 B
Nix
29 lines
524 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
services.davfs2.enable = true;
|
|
|
|
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}
|
|
'';
|
|
debug = true;
|
|
};
|
|
|
|
home-manager.users.moritz = {
|
|
services.unison = {
|
|
enable = true;
|
|
pairs.keepass.roots = [
|
|
"/home/moritz/Keepass"
|
|
"/auto/keepass"
|
|
];
|
|
};
|
|
};
|
|
}
|