Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
078cc3abd2 | ||
| 468e8d3f97 |
4 changed files with 48 additions and 0 deletions
|
|
@ -1 +1,8 @@
|
||||||
# NixOS configurations of the FabLab Bad Windsheim
|
# NixOS configurations of the FabLab Bad Windsheim
|
||||||
|
|
||||||
|
## Quick start
|
||||||
|
|
||||||
|
How to deploy to raven
|
||||||
|
```
|
||||||
|
nix run .#deploy/raven
|
||||||
|
```
|
||||||
|
|
|
||||||
|
|
@ -63,5 +63,14 @@
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
|
services.nginx.enable = true;
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
||||||
|
# FIXME
|
||||||
|
networking.hosts = {
|
||||||
|
"192.168.94.1" = [ "raven.lab.fablab-nea.de" "labsync.lab.fablab-nea.de" ];
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "21.05";
|
system.stateVersion = "21.05";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./dnsmasq.nix
|
./dnsmasq.nix
|
||||||
|
./labsync.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
31
machines/raven/services/labsync.nix
Normal file
31
machines/raven/services/labsync.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
# legacy labsync, currently partly implemented in docker outside of this configuration
|
||||||
|
{
|
||||||
|
services.opentracker.enable = true;
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."labsync.lab.fablab-nea.de" = {
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
|
root = "/opt/docker/tftpgen/data";
|
||||||
|
extraConfig = ''
|
||||||
|
autoindex on;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
"/generator/".proxyPass = "http://127.0.0.1:8695/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.atftpd = {
|
||||||
|
enable = true;
|
||||||
|
root = "/opt/docker/tftpgen/tftp";
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
6881 # aria2
|
||||||
|
6969 # opentracker
|
||||||
|
];
|
||||||
|
networking.firewall.allowedUDPPorts = [
|
||||||
|
6882 # aria2
|
||||||
|
69 # tftpd
|
||||||
|
6969 # opentracker
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue