Merge pull request #621 from emsquid/patch-3
fix(nix): use theme = "" instead of null
This commit is contained in:
@@ -70,7 +70,7 @@ in
|
|||||||
|
|
||||||
theme = mkOption {
|
theme = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = null;
|
default = "";
|
||||||
example = "catppuccin_mocha";
|
example = "catppuccin_mocha";
|
||||||
description = "Theme to import (see ./themes/*.json)";
|
description = "Theme to import (see ./themes/*.json)";
|
||||||
};
|
};
|
||||||
@@ -235,7 +235,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile.hyprpanel = let
|
xdg.configFile.hyprpanel = let
|
||||||
theme = if cfg.theme != null then builtins.fromJSON (builtins.readFile ../themes/${cfg.theme}.json) else {};
|
theme = if cfg.theme != "" then builtins.fromJSON (builtins.readFile ../themes/${cfg.theme}.json) else {};
|
||||||
flatSet = flattenAttrs (lib.attrsets.recursiveUpdate cfg.settings theme) "";
|
flatSet = flattenAttrs (lib.attrsets.recursiveUpdate cfg.settings theme) "";
|
||||||
mergeSet = if cfg.layout == null then flatSet else flatSet // cfg.layout;
|
mergeSet = if cfg.layout == null then flatSet else flatSet // cfg.layout;
|
||||||
in {
|
in {
|
||||||
|
|||||||
Reference in New Issue
Block a user