0a37316d6c
This commit replaces a lot of usages of `mkOption` with the package type, to be `mkPackageOption`, in order to reduce the amount of code.
23 lines
522 B
Nix
23 lines
522 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.passSecretService;
|
|
in
|
|
{
|
|
options.services.passSecretService = {
|
|
enable = mkEnableOption (lib.mdDoc "pass secret service");
|
|
|
|
package = mkPackageOption pkgs "pass-secret-service" {
|
|
example = "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 ];
|
|
}
|