esp
This commit is contained in:
@@ -14,6 +14,10 @@ in
|
|||||||
autoStart = true;
|
autoStart = true;
|
||||||
image = "ghcr.io/esphome/esphome:2026.2.4";
|
image = "ghcr.io/esphome/esphome:2026.2.4";
|
||||||
ports = [ "6052:6052" ];
|
ports = [ "6052:6052" ];
|
||||||
|
devices = [
|
||||||
|
"/dev/ttyUSB0"
|
||||||
|
];
|
||||||
|
privileged = true;
|
||||||
volumes = [
|
volumes = [
|
||||||
"/esphome:/config"
|
"/esphome:/config"
|
||||||
# Persist the PlatformIO core dir (penv, packages, platforms) so the
|
# Persist the PlatformIO core dir (penv, packages, platforms) so the
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ let
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.${namespace}.nebula-ui}/bin/nebula-ui";
|
ExecStart = "${pkgs.${namespace}.nebula-ui}/bin/nebula-ui";
|
||||||
User = name;
|
User = name;
|
||||||
Group = name;
|
GlistenAddressroup = name;
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "5s";
|
RestartSec = "5s";
|
||||||
|
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ in
|
|||||||
hashedPasswordFile = resolvedPasswordFile;
|
hashedPasswordFile = resolvedPasswordFile;
|
||||||
|
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
|
"dialout"
|
||||||
"wheel"
|
"wheel"
|
||||||
"keys"
|
"keys"
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
|
|||||||
Reference in New Issue
Block a user