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 | |
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')
-rw-r--r-- | nixos/configurations/errol.nix | 40 | ||||
-rw-r--r-- | nixos/configurations/lipwig.nix | 11 |
2 files changed, 44 insertions, 7 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 + ]; + }; + }; }; } diff --git a/nixos/configurations/lipwig.nix b/nixos/configurations/lipwig.nix index 2f5e242..b841722 100644 --- a/nixos/configurations/lipwig.nix +++ b/nixos/configurations/lipwig.nix @@ -107,6 +107,10 @@ forceSSL = true; useACMEHost = "cynerd.cz"; }; + "office.cynerd.cz" = { + forceSSL = true; + useACMEHost = "cynerd.cz"; + }; "grafana.cynerd.cz" = { forceSSL = true; useACMEHost = "cynerd.cz"; @@ -252,11 +256,6 @@ ; # Additional modules can be fetched with: # NEXTCLOUD_VERSIONS=31 nix run nixpkgs#nc4nix -- -apps "passwords,money,integration_github,integration_gitlab" - fileslibreofficeedit = pkgs.fetchNextcloudApp { - url = "https://github.com/allotropia/nextcloud_files_libreoffice_edit/releases/download/v2.0.1/fileslibreofficeedit.tar.gz"; - hash = "sha256-Xqx5snQWintYJG3Q1Crw22TkNw18DdADXkurMQqt3X8="; - license = "agpl3Plus"; - }; integration_github = pkgs.fetchNextcloudApp { url = "https://github.com/nextcloud-releases/integration_github/releases/download/v3.2.1/integration_github-v3.2.1.tar.gz"; hash = "sha256-iBWphFaXmQHNxgoi9qkfV7vCTChwtk6yg0aVr9Lhn4c="; @@ -361,7 +360,7 @@ } ]; }; - configureUwsgi = true; + runInUwsgi = true; uwsgiConfig = { socket = "/run/searx/searx.sock"; chmod-socket = "660"; |