From 8671a79cde06992c1928507ec302da9c439ff7c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 9 Apr 2022 12:01:03 +0100 Subject: [PATCH] better bar, home assistanct --- nixos/boxes/bolty/default.nix | 5 +++-- nixos/boxes/bolty/homeassistant.nix | 29 +++++++++++++++++++++++++ nixos/i3/openweathermap-fullfeatured.sh | 2 +- 3 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 nixos/boxes/bolty/homeassistant.nix diff --git a/nixos/boxes/bolty/default.nix b/nixos/boxes/bolty/default.nix index ca40971f..a87842be 100644 --- a/nixos/boxes/bolty/default.nix +++ b/nixos/boxes/bolty/default.nix @@ -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; diff --git a/nixos/boxes/bolty/homeassistant.nix b/nixos/boxes/bolty/homeassistant.nix new file mode 100644 index 00000000..a7675e1c --- /dev/null +++ b/nixos/boxes/bolty/homeassistant.nix @@ -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; }; + }; + +} diff --git a/nixos/i3/openweathermap-fullfeatured.sh b/nixos/i3/openweathermap-fullfeatured.sh index 4e608c93..216e0d49 100755 --- a/nixos/i3/openweathermap-fullfeatured.sh +++ b/nixos/i3/openweathermap-fullfeatured.sh @@ -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