weather options
This commit is contained in:
parent
d6d108ee7c
commit
3a6ba994c5
3 changed files with 18 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue