2022-04-16 07:18:57 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.passSecretService;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.services.passSecretService = {
|
2024-04-13 14:54:15 +02:00
|
|
|
enable = mkEnableOption "pass secret service";
|
2022-04-16 07:18:57 +02:00
|
|
|
|
2023-11-27 01:19:27 +01:00
|
|
|
package = mkPackageOption pkgs "pass-secret-service" {
|
|
|
|
example = "pass-secret-service.override { python3 = pkgs.python310 }";
|
2022-04-16 07:18:57 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
systemd.packages = [ cfg.package ];
|
|
|
|
services.dbus.packages = [ cfg.package ];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta.maintainers = with maintainers; [ aidalgol ];
|
|
|
|
}
|