From ad0d51359a03bac6775e02fc668402e121448696 Mon Sep 17 00:00:00 2001 From: aster <137767097+aster-void@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:07:38 +0900 Subject: [PATCH] eww: make configDir optional reason: some people (such as me) 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 75a109226..e7ccd16a7 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 @@ -47,7 +48,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