infra/nix/os/snippets/radicale.nix

34 lines
644 B
Nix
Raw Permalink Normal View History

2024-02-08 20:53:22 +01:00
{
config,
pkgs,
repoFlakeInputs',
...
2024-11-15 10:17:56 +01:00
}:
let
# TODO: make configurable
homeUser = "steveej";
2024-11-15 10:17:56 +01:00
in
{
2024-01-22 15:01:36 +01:00
sops.secrets.radicale_htpasswd = {
sopsFile = ../../../secrets/desktop/radicale_htpasswd;
2024-01-22 15:01:36 +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:
2024-11-15 10:17:56 +01:00
import ../../home-manager/programs/radicale.nix (
args
// {
osConfig = config;
pkgs = repoFlakeInputs'.radicalePkgs.legacyPackages;
}
)
)
];
2024-01-22 15:01:36 +01:00
};
}