summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/security/pass-secret-service.nix
blob: 0a74b2dbf5d317ab2d853f28f08f460a4dcc7dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  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.python315 }";
    };
  };

  config = lib.mkIf cfg.enable {
    systemd.packages = [ cfg.package ];
    services.dbus.packages = [ cfg.package ];
  };

  meta.maintainers = with lib.maintainers; [ jluttine ];
}