diff options
author | Karel Kočí <cynerd@email.cz> | 2025-08-06 11:27:38 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2025-08-06 11:27:38 +0200 |
commit | 45e64b3e6d24b6fa5a9b0a442793ff3e5a75c6f3 (patch) | |
tree | da439b855fb6da421f75e6eafc4fc5151865020a /nixos/configurations/errol.nix | |
parent | 3b1525c6423db76d95c8693e3d8d9f768f8d7471 (diff) | |
download | nixos-personal-45e64b3e6d24b6fa5a9b0a442793ff3e5a75c6f3.tar.gz nixos-personal-45e64b3e6d24b6fa5a9b0a442793ff3e5a75c6f3.tar.bz2 nixos-personal-45e64b3e6d24b6fa5a9b0a442793ff3e5a75c6f3.zip |
nixos,pkgs: packages update
Diffstat (limited to 'nixos/configurations/errol.nix')
-rw-r--r-- | nixos/configurations/errol.nix | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/nixos/configurations/errol.nix b/nixos/configurations/errol.nix index defacf3..f986631 100644 --- a/nixos/configurations/errol.nix +++ b/nixos/configurations/errol.nix @@ -1,4 +1,11 @@ -{pkgs, ...}: { +{ + config, + lib, + pkgs, + ... +}: let + inherit (lib) mkDefault; +in { system.stateVersion = "24.05"; nixpkgs.hostPlatform.system = "x86_64-linux"; deploy.enable = true; @@ -89,5 +96,36 @@ enable = true; dataDir = "/home/cynerd"; }; + + home-assistant = { + enable = true; + openFirewall = true; + configDir = "/var/lib/hass"; + config = { + homeassistant = { + name = "SPT"; + latitude = "!secret latitude"; + longitude = "!secret longitude"; + elevation = "!secret elevation"; + time_zone = "Europe/Prague"; + country = "CZ"; + }; + http.server_port = 8808; + mqtt = { + sensor = import ../home-assistant/sensors.nix; + light = import ../home-assistant/light.nix; + }; + default_config = {}; + automation = "!include automations.yaml"; + }; + extraComponents = ["met"]; + package = pkgs.home-assistant.override { + extraPackages = pkgs: + with pkgs; [ + securetar + pyipp + ]; + }; + }; }; } |