From c1a830c8fabb13f95f51ecf48552f0a794d8718a Mon Sep 17 00:00:00 2001 From: Wiseh <55264980+Wisehh@users.noreply.github.com> Date: Mon, 2 Jan 2023 14:36:23 -0500 Subject: [PATCH] feh: Add package option (#3552) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Naïm Favier Co-authored-by: Sumner Evans --- modules/programs/feh.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/programs/feh.nix b/modules/programs/feh.nix index e098342b5..15aac1751 100644 --- a/modules/programs/feh.nix +++ b/modules/programs/feh.nix @@ -27,6 +27,8 @@ in { options.programs.feh = { enable = mkEnableOption "feh - a fast and light image viewer"; + package = mkPackageOption pkgs "feh" { }; + buttons = mkOption { default = { }; type = with types; bindingsOf (either str int); @@ -69,7 +71,7 @@ in { "To disable a keybinding, use `null` instead of an empty string."; }]; - home.packages = [ pkgs.feh ]; + home.packages = [ cfg.package ]; xdg.configFile."feh/buttons" = mkIf (cfg.buttons != { }) { text = renderBindings cfg.buttons + "\n"; };