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:
parent
5d8c1c902d
commit
f9bf4f8e32
2 changed files with 26 additions and 15 deletions
|
@ -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" = {};};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue