From 59fe145f0bb7cfde99f148140a47a54deb8cc23f Mon Sep 17 00:00:00 2001 From: Yuki Kobayashi <137767097+aster-void@users.noreply.github.com> Date: Tue, 11 Feb 2025 23:27:04 +0900 Subject: [PATCH] eww: make configDir optional (#6282) Some people like to manage config directories themselves, and it should not be a requirement but rather an optional feature. --- modules/programs/eww.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/programs/eww.nix b/modules/programs/eww.nix index 71432590d..d2860be88 100644 --- a/modules/programs/eww.nix +++ b/modules/programs/eww.nix @@ -24,7 +24,8 @@ in { }; configDir = mkOption { - type = types.path; + type = types.nullOr types.path; + default = null; example = literalExpression "./eww-config-dir"; description = '' The directory that gets symlinked to @@ -44,7 +45,8 @@ in { config = mkIf cfg.enable { home.packages = [ cfg.package ]; - xdg.configFile."eww".source = cfg.configDir; + xdg.configFile."eww".source = + mkIf (!types.isNull cfg.configDir) cfg.configDir; programs.bash.initExtra = mkIf cfg.enableBashIntegration '' if [[ $TERM != "dumb" ]]; then