parent
59ff307047
commit
71769cb74c
5 changed files with 38 additions and 3 deletions
2
.gitattributes
vendored
2
.gitattributes
vendored
|
|
@ -1 +1,3 @@
|
||||||
**/secrets.yaml diff=sops
|
**/secrets.yaml diff=sops
|
||||||
|
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
./asterisk.nix
|
./asterisk.nix
|
||||||
./dnsmasq.nix
|
./dnsmasq.nix
|
||||||
./dyndns.nix
|
./dyndns.nix
|
||||||
./labsync.nix
|
./labsync
|
||||||
./unifi-controller.nix
|
./unifi-controller.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
# legacy labsync, currently partly implemented in docker outside of this configuration
|
# legacy labsync, currently partly implemented in docker outside of this configuration
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.opentracker.enable = true;
|
services.opentracker.enable = true;
|
||||||
|
|
||||||
services.nginx.virtualHosts."labsync.lab.fablab-nea.de" = {
|
services.nginx.virtualHosts."labsync.lab.fablab-nea.de" = {
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
root = "/opt/docker/tftpgen/data/labsync";
|
root = "/opt/docker/tftpgen/data";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
autoindex on;
|
autoindex on;
|
||||||
'';
|
'';
|
||||||
|
|
@ -16,7 +18,14 @@
|
||||||
|
|
||||||
services.atftpd = {
|
services.atftpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
root = "/opt/docker/tftpgen/data";
|
root = pkgs.runCommand "pxelinux-tftproot" { } ''
|
||||||
|
mkdir -p $out/pxelinux.cfg
|
||||||
|
cp ${pkgs.syslinux}/share/syslinux/{ldlinux.c32,libcom32.c32,libutil.c32,lpxelinux.0,vesamenu.c32} $out
|
||||||
|
cp ${./splash.png} $out/splash.png
|
||||||
|
cp ${./pxelinux.cfg} $out/pxelinux.cfg/default
|
||||||
|
# required to serve labsync/labsync.cfg, which is generated dynamically by a docker container
|
||||||
|
ln -s /opt/docker/tftpgen/data $out/labsync
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
21
machines/raven/services/labsync/pxelinux.cfg
Normal file
21
machines/raven/services/labsync/pxelinux.cfg
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
# default menu settings
|
||||||
|
menu width 100
|
||||||
|
menu height 24
|
||||||
|
menu title labsync
|
||||||
|
|
||||||
|
# can be overwriten by mounting another image; has to be 1024×768 in 16:9
|
||||||
|
menu background splash.png
|
||||||
|
menu color border * #00000000 #00000000 none
|
||||||
|
menu color sel * #ffffffff #76a1d0ff *
|
||||||
|
menu color hotsel 1;7;37;40 #ffffffff #76a1d0ff *
|
||||||
|
menu cmdlinerow 16
|
||||||
|
menu timeoutrow 16
|
||||||
|
menu tabmsgrow 18
|
||||||
|
# do not show “press tab to edit options…” entry (empty)
|
||||||
|
menu tabmsg
|
||||||
|
|
||||||
|
include labsync/labsync.cfg
|
||||||
|
default vesamenu.c32
|
||||||
|
|
||||||
|
# disable timeout (explicitly)
|
||||||
|
timeout 0
|
||||||
BIN
machines/raven/services/labsync/splash.png
(Stored with Git LFS)
Normal file
BIN
machines/raven/services/labsync/splash.png
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue