From 92d368d971dd0e107ffee9fff955ede45a155602 Mon Sep 17 00:00:00 2001 From: Robert Walter <26892280+RobWalt@users.noreply.github.com> Date: Tue, 19 Sep 2023 20:24:36 +0000 Subject: [PATCH] rofi-pass: add package option --- modules/programs/rofi-pass.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/programs/rofi-pass.nix b/modules/programs/rofi-pass.nix index 9d3ed7382..f1de580fb 100644 --- a/modules/programs/rofi-pass.nix +++ b/modules/programs/rofi-pass.nix @@ -7,11 +7,14 @@ let cfg = config.programs.rofi.pass; in { - meta.maintainers = [ maintainers.seylerius ]; + meta.maintainers = with maintainers; [ seylerius robwalt ]; options.programs.rofi.pass = { enable = mkEnableOption "rofi integration with password-store"; + package = + mkPackageOption pkgs "rofi-pass" { example = "pkgs.rofi-pass-wayland"; }; + stores = mkOption { type = types.listOf types.str; default = [ ]; @@ -37,7 +40,7 @@ in { }; config = mkIf cfg.enable { - home.packages = [ pkgs.rofi-pass ]; + home.packages = [ cfg.package ]; xdg.configFile."rofi-pass/config".text = optionalString (cfg.stores != [ ]) ("root=" + (concatStringsSep ":" cfg.stores) + "\n") + cfg.extraConfig