xresources: do not generate file for empty properties
This commit is contained in:
parent
a94c8b072e
commit
600f39f966
2 changed files with 17 additions and 13 deletions
|
@ -75,7 +75,8 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.properties != null || cfg.extraConfig != "") {
|
config = mkIf ((cfg.properties != null && cfg.properties != { })
|
||||||
|
|| cfg.extraConfig != "") {
|
||||||
home.file.".Xresources" = {
|
home.file.".Xresources" = {
|
||||||
text = concatStringsSep "\n" ([ ]
|
text = concatStringsSep "\n" ([ ]
|
||||||
++ optional (cfg.extraConfig != "") cfg.extraConfig
|
++ optional (cfg.extraConfig != "") cfg.extraConfig
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
{ xresources = ./xresources.nix; }
|
{
|
||||||
|
xresources = ./xresources.nix;
|
||||||
|
xresources-empty-properties = ./empty.nix;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue