at 23.11-pre 722 B view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4 5let 6 cfg = config.services.passSecretService; 7in 8{ 9 options.services.passSecretService = { 10 enable = mkEnableOption (lib.mdDoc "pass secret service"); 11 12 package = mkOption { 13 type = types.package; 14 default = pkgs.pass-secret-service; 15 defaultText = literalExpression "pkgs.pass-secret-service"; 16 description = lib.mdDoc "Which pass-secret-service package to use."; 17 example = literalExpression "pkgs.pass-secret-service.override { python3 = pkgs.python310 }"; 18 }; 19 }; 20 21 config = mkIf cfg.enable { 22 systemd.packages = [ cfg.package ]; 23 services.dbus.packages = [ cfg.package ]; 24 }; 25 26 meta.maintainers = with maintainers; [ aidalgol ]; 27}