refactor web server, hardware

This commit is contained in:
Till 2024-12-26 21:54:01 +01:00
parent f7d62caaa4
commit 5c8a4bcfdc
8 changed files with 29 additions and 22 deletions

View file

@ -20,7 +20,7 @@
} }
./system ./system
./system/desktop.nix ./system/desktop.nix
./system/hardware-nova.nix ./system/hardware/nova.nix
./system/gnome.nix ./system/gnome.nix
./system/steam.nix ./system/steam.nix
./system/btrbk.nix ./system/btrbk.nix
@ -37,7 +37,7 @@
} }
./system ./system
./system/desktop.nix ./system/desktop.nix
./system/hardware-tron.nix ./system/hardware/tron.nix
./system/gnome.nix ./system/gnome.nix
./system/btrbk.nix ./system/btrbk.nix
./system/yubikey.nix ./system/yubikey.nix
@ -57,7 +57,7 @@
} }
./system ./system
./system/desktop.nix ./system/desktop.nix
./system/hardware-romulus.nix ./system/hardware/romulus.nix
]; ];
}; };
@ -70,8 +70,10 @@
boot.loader.grub.device = "/dev/sda"; boot.loader.grub.device = "/dev/sda";
} }
./system ./system
./system/web-server.nix ./system/web-server
./system/hardware-arielle.nix ./system/web-server/outline.nix
./system/web-server/jenkins.nix
./system/hardware/arielle.nix
]; ];
}; };

View file

@ -0,0 +1,21 @@
{ config, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.jenkins.enable = true;
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
security.acme = {
acceptTerms = true;
defaults.email = "till@ktiu.net";
};
}

View file

@ -1,32 +1,16 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
nixpkgs.config.allowUnfree = true;
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.jenkins.enable = true;
services.outline = { services.outline = {
enable = true; enable = true;
storage.storageType = "local"; storage.storageType = "local";
}; };
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
security.acme = {
acceptTerms = true;
defaults.email = "till@ktiu.net";
};
services.nginx.virtualHosts."outline.ktiu.net" = { services.nginx.virtualHosts."outline.ktiu.net" = {
addSSL = true; addSSL = true;
enableACME = true; enableACME = true;
root = "/var/www/myhost.org"; # root = "/var/www/myhost.org";
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:3000"; proxyPass = "http://127.0.0.1:3000";
extraConfig = extraConfig =