infra/nix/os/snippets/radicale.nix

31 lines
641 B
Nix
Raw Normal View History

2024-02-08 20:53:22 +01:00
{
config,
lib,
pkgs,
repoFlakeInputs',
...
}: let
# TODO: make configurable
homeUser = "steveej";
2024-02-08 20:53:22 +01:00
in {
2024-01-22 19:02:32 +01:00
sops.secrets.radicale_htpasswd = {
sopsFile = ../../../secrets/desktop/radicale_htpasswd;
2024-01-22 19:02:32 +01:00
format = "binary";
owner = config.users.users."${homeUser}".name;
};
home-manager.users.${homeUser} = _: {
imports = [
# TODO: bump these to latest and make it work
2024-02-08 20:53:22 +01:00
(
args:
import ../../home-manager/programs/radicale.nix (args
// {
osConfig = config;
pkgs = repoFlakeInputs'.radicalePkgs.legacyPackages;
})
)
];
2024-01-22 19:02:32 +01:00
};
}