1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

fix(zackbiene): esphome platformio directory was resolved wrongly

This commit is contained in:
oddlama 2023-03-23 03:31:36 +01:00
parent 5d8c1c902d
commit f9bf4f8e32
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 26 additions and 15 deletions

View file

@ -1,4 +1,8 @@
{nodeSecrets, ...}: {
{
config,
nodeSecrets,
...
}: {
imports = [../../modules/esphome.nix];
services.esphome = {
@ -12,7 +16,8 @@
];
};
# TODO esphome.sock permissions pls nginx currently world writable
systemd.services.nginx.serviceConfig.SupplementaryGroups = ["esphome"];
systemd.services.nginx.requires = ["esphome.service"];
services.nginx.upstreams = {
"esphome" = {
servers = {"unix:/run/esphome/esphome.sock" = {};};