remove pi-web
This commit is contained in:
parent
4109a9d3ec
commit
fd339edcdc
5 changed files with 0 additions and 78 deletions
|
|
@ -3,17 +3,6 @@
|
|||
|
||||
networking.hostName = "poppy";
|
||||
|
||||
# Локальное короткое имя pi -> 127.0.0.1 для pi-web.
|
||||
# Запуск: npm exec @agegr/pi-web@latest --hostname 0.0.0.0 --port 30141
|
||||
# Ссылка: http://pi:30141
|
||||
# (networking.hosts в nix-darwin отсутствует; /etc/hosts правится
|
||||
# идемпотентно через extraActivation — один из хуков, реально
|
||||
# вызываемых в activate-скрипте.)
|
||||
system.activationScripts.extraActivation.text = ''
|
||||
if ! grep -qE '^[0-9.]+[[:space:]]+pi($|[[:space:]])' /etc/hosts; then
|
||||
printf '127.0.0.1\tpi # pi-web local alias\n' >> /etc/hosts
|
||||
fi
|
||||
'';
|
||||
system.primaryUser = "mikl";
|
||||
system.stateVersion = 7;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue