fix formatting of zathura config

This commit is contained in:
Adam Washington 2018-09-14 10:08:34 +01:00
parent 99b68cce3c
commit 096eca95c6
No known key found for this signature in database
GPG key ID: 0D2B93AB0C87BAF1

View file

@ -48,8 +48,9 @@ in
config = mkIf cfg.enable {
home.packages = [ pkgs.zathura ];
xdg.configFile."zathura/zathurarc".text =
concatStringsSep "\n" ([]
++ (optional (cfg.extraConfig != "") cfg.extraConfig)
++ (optionals (cfg.options != null) (mapAttrsToList formatLine cfg.options))) + "\n";
concatStringsSep "\n" ([]
++ (optional (cfg.extraConfig != "") cfg.extraConfig)
++ (optionals (cfg.options != null) (mapAttrsToList formatLine cfg.options))
) + "\n";
};
}