From e9e888f844f8d93c5527dfb3b8b7ce13f98ab186 Mon Sep 17 00:00:00 2001 From: emanuel <76693837+emsquid@users.noreply.github.com> Date: Wed, 25 Dec 2024 00:38:56 +0100 Subject: [PATCH] fix(nix): use theme = "" instead of null --- nix/module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/module.nix b/nix/module.nix index 7524260..696ad85 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -70,7 +70,7 @@ in theme = mkOption { type = types.str; - default = null; + default = ""; example = "catppuccin_mocha"; description = "Theme to import (see ./themes/*.json)"; }; @@ -235,7 +235,7 @@ in }; 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) ""; mergeSet = if cfg.layout == null then flatSet else flatSet // cfg.layout; in {