functional home assistant
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
{ config, lib, namespace, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.mjallen.desktop.extra.waybar;
|
||||
|
||||
waybar-weather = pkgs.writeScriptBin "waybar-weather" ''
|
||||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i python3 --pure
|
||||
@@ -429,5 +432,9 @@ let
|
||||
'';
|
||||
in
|
||||
{
|
||||
home.packages = [ waybar-weather ];
|
||||
imports = [ ../options.nix ];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ waybar-weather ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user