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
|
|
|
|
|
|
|
package = mkOption {
|
|
|
|
type = types.package;
|
|
|
|
default = pkgs.pass-secret-service;
|
|
|
|
defaultText = literalExpression "pkgs.pass-secret-service";
|
2022-08-12 12:06:08 +00:00
|
|
|
description = lib.mdDoc "Which pass-secret-service package to use.";
|
2022-07-18 16:21:45 +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 ];
|
|
|
|
}
|