2022-04-16 05:18:57 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.passSecretService;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.services.passSecretService = {
|
2022-08-28 19:18:44 +00:00
|
|
|
enable = mkEnableOption (lib.mdDoc "pass secret service");
|
2022-04-16 05:18:57 +00:00
|
|
|
|
|
|
|
package = mkOption {
|
|
|
|
type = types.package;
|
|
|
|
default = pkgs.pass-secret-service;
|
|
|
|
defaultText = literalExpression "pkgs.pass-secret-service";
|
2022-07-28 21:19:15 +00:00
|
|
|
description = lib.mdDoc "Which pass-secret-service package to use.";
|
2022-04-16 05:18:57 +00:00
|
|
|
example = literalExpression "pkgs.pass-secret-service.override { python3 = pkgs.python310 }";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
systemd.packages = [ cfg.package ];
|
|
|
|
services.dbus.packages = [ cfg.package ];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta.maintainers = with maintainers; [ aidalgol ];
|
|
|
|
}
|