From afcedcf2c8e424d0465e823cf833eb3adebe1db7 Mon Sep 17 00:00:00 2001 From: iofq Date: Mon, 5 Feb 2024 06:35:23 +0000 Subject: [PATCH] mcfly: add interfaceView option --- modules/programs/mcfly.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/programs/mcfly.nix b/modules/programs/mcfly.nix index 0a7a64800..450a27380 100644 --- a/modules/programs/mcfly.nix +++ b/modules/programs/mcfly.nix @@ -48,6 +48,14 @@ in { ''; }; + interfaceView = mkOption { + type = types.enum [ "TOP" "BOTTOM" ]; + default = "TOP"; + description = '' + Interface view to use. + ''; + }; + fzf.enable = mkEnableOption "McFly fzf integration"; enableLightTheme = mkOption { @@ -104,6 +112,8 @@ in { programs.fish.shellInit = mkIf cfg.enableFishIntegration fishIntegration; home.sessionVariables.MCFLY_KEY_SCHEME = cfg.keyScheme; + + home.sessionVariables.MCFLY_INTERFACE_VIEW = cfg.interfaceView; } (mkIf cfg.enableLightTheme { home.sessionVariables.MCFLY_LIGHT = "TRUE"; })