pqiv: fix condition for writing pqivrc file

Specifically, write the configuration if either settings or
extraConfig are set.
This commit is contained in:
EmmChriss 2024-12-25 13:20:03 +02:00 committed by Robert Helgesson
parent 19398e505a
commit b7a7cd5dd1
Failed to generate hash of commit

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: