dotfiles/modules/diskstation.nix

30 lines
524 B
Nix
Raw Normal View History

2021-09-14 13:14:20 +02:00
{ config, lib, pkgs, ... }:
{
2021-09-14 14:23:16 +02:00
services.davfs2.enable = true;
2021-09-14 13:14:20 +02:00
services.autofs = {
2021-09-14 14:23:16 +02:00
enable = true;
2021-09-14 13:14:20 +02:00
autoMaster =
let
mapConf = pkgs.writeText "auto" ''
2021-09-14 14:23:16 +02:00
keepass -fstype=davfs,uid=1000 :https\://davs.home.boehmies.de/home/Drive/
2021-09-14 13:14:20 +02:00
'';
in
''
/auto file:${mapConf}
'';
2021-09-14 14:23:16 +02:00
debug = true;
};
home-manager.users.moritz = {
services.unison = {
enable = true;
pairs.keepass.roots = [
"/home/moritz/Keepass"
"/auto/keepass"
];
};
2021-09-14 13:14:20 +02:00
};
}