~misterio/nix-config

1493d6bdb52833d84f6ecdd881cc1f4630697b55 — Gabriel Fontes 2 months ago 0c0e6a4
electra/radicale: persist data directory
1 files changed, 8 insertions(+), 1 deletions(-)

M hosts/electra/services/radicale.nix
M hosts/electra/services/radicale.nix => hosts/electra/services/radicale.nix +8 -1
@@ 1,4 1,4 @@
{ config, ... }:
{ config, lib, persistence, ... }:
let
  port = "5232";
in


@@ 12,6 12,9 @@ in
          htpasswd_filename = config.sops.secrets.radicale-htpasswd.path;
          htpasswd_encryption = "bcrypt";
        };
        storage = {
          filesystem_folder = "/var/lib/radicale/collections";
        };
      };
    };
    nginx.virtualHosts = {


@@ 32,4 35,8 @@ in
    owner = config.users.users.radicale.name;
    group = config.users.users.radicale.group;
  };

  environment.persistence = lib.mkIf persistence {
    "/persist".directories = [ "/var/lib/radicale" ];
  };
}