better bar, home assistanct

This commit is contained in:
Cyryl Płotnicki 2022-04-09 12:01:03 +01:00
parent c34c07fa91
commit 8671a79cde
3 changed files with 33 additions and 3 deletions

View file

@ -6,10 +6,11 @@
../../server-security.nix
../../tailscale.nix
../cli.nix
./print-server.nix
./restic-server.nix
./homeassistant.nix
./matrix-server.nix
./nextcloud.nix
./print-server.nix
./restic-server.nix
];
services.syncthing = {
enable = true;

View file

@ -0,0 +1,29 @@
{ config, pkgs, ... }: {
services.home-assistant = {
enable = true;
openFirewall = true;
package = (pkgs.home-assistant.override {
extraPackages = ps: with ps; [ ];
extraComponents = [
"api"
"auth"
"cloud"
"config"
"default_config"
"http"
"mobile_app"
"onboarding"
"search"
"ssdp"
"system_log"
"tts"
"websocket_api"
"zeroconf"
"zwave"
];
}).overridePythonAttrs { doCheck = false; };
};
}

View file

@ -93,5 +93,5 @@ if [ -n "$current" ] && [ -n "$forecast" ]; then
trend="stable weather"
fi
echo "now $(get_icon "$current_icon") $current_text $current_temp($current_feels)$SYMBOL, $trend, later $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL"
echo "now $(get_icon "$current_icon") $current_text $current_temp($current_feels)$SYMBOL, later $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL"
fi