2022-07-18 16:21:45 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.passSecretService;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.services.passSecretService = {
|
2022-09-09 14:08:57 +00:00
|
|
|
enable = mkEnableOption (lib.mdDoc "pass secret service");
|
2022-07-18 16:21:45 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
package = mkPackageOption pkgs "pass-secret-service" {
|
|
|
|
example = "pass-secret-service.override { python3 = pkgs.python310 }";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
systemd.packages = [ cfg.package ];
|
|
|
|
services.dbus.packages = [ cfg.package ];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta.maintainers = with maintainers; [ aidalgol ];
|
|
|
|
}
|