1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-16 06:11:03 +02:00

fix: default HM module config option to null

This makes it more semantically approachable IMO.

I would expect this behavior:
- Default value is `null`
- Config is created if the value is not `null`

Currently it's this behavior (makes little sense to me):
- Default value is `{}`
- Config is created if the values is not `""`
This commit is contained in:
postsolar 2025-06-14 04:29:47 +03:00
parent 4fad5a4d18
commit 9b0c0dd0fe

View file

@ -36,7 +36,7 @@ in {
config = mkOption {
type = jsonFormat.type;
default = {};
default = null;
description = "The config to pass to ironbar.";
};
@ -53,7 +53,7 @@ in {
];
xdg.configFile = {
"ironbar/config.json" = mkIf (cfg.config != "") {
"ironbar/config.json" = mkIf (cfg.config != null) {
onChange = "${getExe cfg.package} reload";
source = jsonFormat.generate "ironbar-config" cfg.config;
};