mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-16 22:31: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:
commit
d4c2ac1dc2
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ in {
|
||||||
|
|
||||||
config = mkOption {
|
config = mkOption {
|
||||||
type = jsonFormat.type;
|
type = jsonFormat.type;
|
||||||
default = {};
|
default = null;
|
||||||
description = "The config to pass to ironbar.";
|
description = "The config to pass to ironbar.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"ironbar/config.json" = mkIf (cfg.config != "") {
|
"ironbar/config.json" = mkIf (cfg.config != null) {
|
||||||
onChange = "${getExe cfg.package} reload";
|
onChange = "${getExe cfg.package} reload";
|
||||||
source = jsonFormat.generate "ironbar-config" cfg.config;
|
source = jsonFormat.generate "ironbar-config" cfg.config;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue