From 2438eb77eaa91c53288ff29d6f3ee6815732fbb3 Mon Sep 17 00:00:00 2001 From: Andrew Scott <3648487+ayyjayess@users.noreply.github.com> Date: Mon, 29 Jan 2018 14:30:25 +0000 Subject: [PATCH] rofi: make theme option --- modules/programs/rofi.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/programs/rofi.nix b/modules/programs/rofi.nix index 9391b2d0..e89a5b33 100644 --- a/modules/programs/rofi.nix +++ b/modules/programs/rofi.nix @@ -225,6 +225,13 @@ in ''; }; + theme = mkOption { + default = null; + type = types.nullOr types.string; + description = "Name of theme to use"; + example = "Arc"; + }; + configPath = mkOption { default = ".config/rofi/config"; type = types.string; @@ -240,6 +247,7 @@ in }; config = mkIf cfg.enable { + warnings = optional (cfg.theme != null && cfg.colors != null) "rofi: colors shouldn't be set when using themes"; home.packages = [ pkgs.rofi ]; home.file."${cfg.configPath}".text = '' @@ -260,6 +268,7 @@ in ${setOption "fullscreen" cfg.fullscreen} ${setColorScheme cfg.colors} + ${setOption "theme" cfg.theme} ${cfg.extraConfig} '';