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

Merge pull request #1046 from postsolar/fix/hm-settings

fix(nix): default HM module `config` option to `null`
This commit is contained in:
Jake Stanger 2025-06-16 09:31:26 +01:00 committed by GitHub
commit d4c2ac1dc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
};