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:
parent
4fad5a4d18
commit
9b0c0dd0fe
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue