pqiv: fix condition for writing pqivrc file

Specifically, write the configuration if either settings or
extraConfig are set.

(cherry picked from commit b7a7cd5dd1)
This commit is contained in:
EmmChriss
2024-12-25 13:20:03 +02:00
committed by Robert Helgesson
parent 80b0fdf483
commit 613691f285

View File

@@ -65,7 +65,7 @@ in {
home.packages = [ cfg.package ];
xdg.configFile."pqivrc" =
mkIf (cfg.settings != { } && cfg.extraConfig != "") {
mkIf (cfg.settings != { } || cfg.extraConfig != "") {
text = lib.concatLines [
(generators.toINI {
mkKeyValue = key: value: