diff --git a/azos-core b/azos-core index b488350..ba95691 160000 --- a/azos-core +++ b/azos-core @@ -1 +1 @@ -Subproject commit b488350ba7dc23f88455dadcc57491254e25e7f8 +Subproject commit ba9569186b7542ab36fd3108270e0d3ea199fd7a diff --git a/features/dav/default.nix b/features/dav/default.nix new file mode 100644 index 0000000..15c4d88 --- /dev/null +++ b/features/dav/default.nix @@ -0,0 +1,31 @@ +{...}: { + config.flake.modules.homeManager.dav = { + lib, + config, + pkgs, + ... + }: { + config = { + azos.dav.enable = true; + + # Same smartcard gate as mail: the password comes from `pass`. + azos.dav.presenceCheckCommand = lib.mkIf config.azos.encryption.yubikey.enable "${pkgs.azos-card-present}/bin/azos-card-present"; + + accounts.calendar.accounts.nextcloud = { + remote = { + type = "caldav"; + # Principal discovery from the DAV root resolves the account's + # user ID, which differs from the login name on this server. + url = "https://nextcloud.zakobar.com/remote.php/dav/"; + userName = "aner"; + passwordCommand = ["sh" "-c" "pass zakobar.com | head -1"]; + }; + vdirsyncer = { + enable = true; + collections = ["from a"]; + itemTypes = ["VTODO"]; + }; + }; + }; + }; +} diff --git a/home-manager/home.nix b/home-manager/home.nix index 41b213e..5e5b1d3 100755 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -17,6 +17,7 @@ suiteModules.homeManager.lauretta suiteModules.homeManager.claude suiteModules.homeManager.hyprland + suiteModules.homeManager.dav suiteModules.homeManager.mail suiteModules.homeManager.mpris-proxy suiteModules.homeManager.nextcloud