From cb3eb83935146ec56984e9ad83805b55e27434d4 Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Tue, 18 Aug 2026 15:39:30 -0400 Subject: [PATCH] feat(home_assistant): remove Home Assistant configuration and references --- systems/jeeves/scripts/zfs.sh | 1 - systems/jeeves/services/home_assistant.nix | 79 -------------------- systems/jeeves/services/postgress.nix | 13 ---- systems/jeeves/services/validate_system.toml | 1 - systems/jeeves/vars.nix | 1 - 5 files changed, 95 deletions(-) delete mode 100644 systems/jeeves/services/home_assistant.nix diff --git a/systems/jeeves/scripts/zfs.sh b/systems/jeeves/scripts/zfs.sh index 8dd630c..a0a09f2 100644 --- a/systems/jeeves/scripts/zfs.sh +++ b/systems/jeeves/scripts/zfs.sh @@ -19,7 +19,6 @@ sudo zfs create media/temp -o sync=disabled -o redundant_metadata=none sudo zfs create media/secure -o encryption=aes-256-gcm -o keyformat=hex -o keylocation=file:///root/zfs.key sudo zfs create media/secure/docker -o compression=zstd-9 sudo zfs create media/secure/github-runners -o compression=zstd-9 -o sync=disabled -sudo zfs create media/secure/home_assistant -o compression=zstd-19 sudo zfs create media/secure/notes -o copies=2 sudo zfs create media/secure/postgres -o mountpoint=/zfs/media/database/postgres -o recordsize=16k -o primarycache=metadata sudo zfs create media/secure/postgres-wal -o mountpoint=/zfs/media/database/postgres-wal -o recordsize=32k -o primarycache=metadata -o special_small_blocks=32K -o compression=lz4 -o secondarycache=none -o logbias=latency diff --git a/systems/jeeves/services/home_assistant.nix b/systems/jeeves/services/home_assistant.nix deleted file mode 100644 index cf5e76a..0000000 --- a/systems/jeeves/services/home_assistant.nix +++ /dev/null @@ -1,79 +0,0 @@ -let - vars = import ../vars.nix; -in -{ - users = { - users.hass = { - isSystemUser = true; - group = "hass"; - }; - groups.hass = { }; - }; - - services = { - home-assistant = { - enable = true; - openFirewall = true; - configDir = vars.home_assistant; - config = { - http = { - server_port = 8123; - use_x_forwarded_for = true; - trusted_proxies = "127.0.0.1"; - }; - homeassistant = { - time_zone = "America/New_York"; - unit_system = "us_customary"; - temperature_unit = "F"; - }; - recorder = { - db_url = "postgresql://@/hass"; - auto_purge = true; - purge_keep_days = 3650; - db_retry_wait = 15; - }; - assist_pipeline = { }; - backup = { }; - bluetooth = { }; - config = { }; - dhcp = { }; - energy = { }; - history = { }; - homeassistant_alerts = { }; - image_upload = { }; - logbook = { }; - media_source = { }; - mobile_app = { }; - ssdp = { }; - sun = { }; - webhook = { }; - zeroconf = { }; - automation = "!include automations.yaml"; - script = "!include scripts.yaml"; - scene = "!include scenes.yaml"; - group = "!include groups.yaml"; - }; - extraPackages = - python3Packages: with python3Packages; [ - aioesphomeapi - aiounifi - bleak-esphome - esphome-dashboard-api - gtts - jellyfin-apiclient-python - psycopg2 - pymetno - aio-ownet - rokuecp - uiprotect - wakeonlan - ]; - extraComponents = [ "isal" ]; - }; - esphome = { - enable = true; - openFirewall = true; - address = "192.168.90.40"; - }; - }; -} diff --git a/systems/jeeves/services/postgress.nix b/systems/jeeves/services/postgress.nix index aa0e62c..371b59a 100644 --- a/systems/jeeves/services/postgress.nix +++ b/systems/jeeves/services/postgress.nix @@ -33,7 +33,6 @@ in #type database DBuser origin-address auth-method - local hass hass trust local gitea gitea trust # signalbot @@ -57,7 +56,6 @@ in superuser_map postgres postgres # Let other names login as themselves superuser_map richie postgres - superuser_map hass hass ''; ensureUsers = [ { @@ -81,16 +79,6 @@ in replication = true; }; } - { - name = "hass"; - ensureDBOwnership = true; - ensureClauses = { - login = true; - createrole = true; - createdb = true; - replication = true; - }; - } { name = "gitea"; ensureDBOwnership = true; @@ -121,7 +109,6 @@ in ]; ensureDatabases = [ "data_science_dev" - "hass" "gitea" "math" "n8n" diff --git a/systems/jeeves/services/validate_system.toml b/systems/jeeves/services/validate_system.toml index 81979c1..2c73862 100644 --- a/systems/jeeves/services/validate_system.toml +++ b/systems/jeeves/services/validate_system.toml @@ -3,6 +3,5 @@ services = [ "audiobookshelf", "haproxy", "docker", - "home-assistant", "jellyfin", ] diff --git a/systems/jeeves/vars.nix b/systems/jeeves/vars.nix index a8ffbeb..e96da4c 100644 --- a/systems/jeeves/vars.nix +++ b/systems/jeeves/vars.nix @@ -8,7 +8,6 @@ in database = "${zfs_media}/database"; docker = "${zfs_media}/docker"; docker_configs = "${zfs_media}/docker/configs"; - home_assistant = "${zfs_media}/home_assistant"; notes = "${zfs_media}/notes"; secrets = "${zfs_storage}/secrets"; services = "${zfs_media}/services";