mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
25 lines
522 B
Nix
25 lines
522 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.services.passSecretService;
|
|
in
|
|
{
|
|
options.services.passSecretService = {
|
|
enable = lib.mkEnableOption "pass secret service";
|
|
|
|
package = lib.mkPackageOption pkgs "pass-secret-service" {
|
|
example = "pass-secret-service.override { python3 = pkgs.python310 }";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
systemd.packages = [ cfg.package ];
|
|
services.dbus.packages = [ cfg.package ];
|
|
};
|
|
|
|
meta.maintainers = with lib.maintainers; [ aidalgol ];
|
|
}
|