weather options

This commit is contained in:
Damocles 2026-04-12 15:20:38 +02:00
parent d6d108ee7c
commit 3a6ba994c5
3 changed files with 18 additions and 2 deletions

View file

@ -86,6 +86,17 @@ in
};
};
weatherArgs = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ "--nerd" ];
description = "Arguments passed to wttrbar.";
example = [
"--nerd"
"--location"
"Berlin"
];
};
theme = lib.mkOption {
type = lib.types.attrsOf lib.types.anything;
default = { };
@ -120,7 +131,8 @@ in
++ lib.optional cfg.modules.weather pkgs.wttrbar;
xdg.configFile."nova-shell/modules.json".source =
(pkgs.formats.json { }).generate "nova-shell-modules.json" cfg.modules;
(pkgs.formats.json { }).generate "nova-shell-modules.json"
(cfg.modules // { weatherArgs = cfg.weatherArgs; });
xdg.configFile."nova-shell/theme.json".source =
let