infra/nix/os/snippets/radicale.nix

31 lines
601 B
Nix
Raw Normal View History

2024-01-22 15:01:36 +01:00
{ config
, lib
, pkgs
, repoFlakeInputs'
2024-01-22 15:01:36 +01:00
, ...
}:
let
# TODO: make configurable
homeUser = "steveej";
2024-01-22 15:01:36 +01:00
in
{
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
(args:
import ../../home-manager/programs/radicale.nix (args // {
osConfig = config;
pkgs = repoFlakeInputs'.radicalePkgs.legacyPackages;
})
)
];
2024-01-22 15:01:36 +01:00
};
}