From 7bd42b19ff7d940711776163d51d49ffd2e08e65 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 11 Feb 2023 23:17:34 +0100 Subject: nginx test Signed-off-by: TheArcaneBrony --- host/Rory-discordbots/configuration.nix | 4 +- host/Rory-discordbots/services.nix | 17 ------- host/Rory-fosscord/configuration.nix | 4 +- host/Rory-nginx/configuration.nix | 54 ++++++++++++++++++++++ host/Rory-nginx/hosts/boorunav.com/root.nix | 0 host/Rory-nginx/hosts/catgirlsaresexy.com/root.nix | 0 host/Rory-nginx/hosts/rory.boo/tunnel.nix | 0 host/Rory-nginx/hosts/rory.gay/lfs.nix | 0 host/Rory-nginx/hosts/sugarcanemc.org/root.nix | 0 .../hosts/thearcanebrony.net/awooradio.nix | 0 host/Rory-nginx/hosts/thearcanebrony.net/bots.nix | 0 host/Rory-nginx/hosts/thearcanebrony.net/files.nix | 0 host/Rory-nginx/hosts/thearcanebrony.net/git.nix | 0 host/Rory-nginx/hosts/thearcanebrony.net/http.nix | 0 host/Rory-nginx/hosts/thearcanebrony.net/lfs.nix | 0 host/Rory-nginx/hosts/thearcanebrony.net/root.nix | 0 .../Rory-nginx/hosts/thearcanebrony.net/search.nix | 0 .../Rory-nginx/hosts/thearcanebrony.net/sentry.nix | 0 .../hosts/thearcanebrony.net/siliconheaven.nix | 0 .../hosts/thearcanebrony.net/spigotav.nix | 0 host/Rory-nginx/hosts/thearcanebrony.net/terra.nix | 0 host/Rory-nginx/hosts/thearcanebrony.net/vives.nix | 8 ++++ modules/base.nix | 4 +- 23 files changed, 68 insertions(+), 23 deletions(-) delete mode 100644 host/Rory-discordbots/services.nix create mode 100644 host/Rory-nginx/configuration.nix create mode 100644 host/Rory-nginx/hosts/boorunav.com/root.nix create mode 100644 host/Rory-nginx/hosts/catgirlsaresexy.com/root.nix create mode 100644 host/Rory-nginx/hosts/rory.boo/tunnel.nix create mode 100644 host/Rory-nginx/hosts/rory.gay/lfs.nix create mode 100644 host/Rory-nginx/hosts/sugarcanemc.org/root.nix create mode 100644 host/Rory-nginx/hosts/thearcanebrony.net/awooradio.nix create mode 100644 host/Rory-nginx/hosts/thearcanebrony.net/bots.nix create mode 100644 host/Rory-nginx/hosts/thearcanebrony.net/files.nix create mode 100644 host/Rory-nginx/hosts/thearcanebrony.net/git.nix create mode 100644 host/Rory-nginx/hosts/thearcanebrony.net/http.nix create mode 100644 host/Rory-nginx/hosts/thearcanebrony.net/lfs.nix create mode 100644 host/Rory-nginx/hosts/thearcanebrony.net/root.nix create mode 100644 host/Rory-nginx/hosts/thearcanebrony.net/search.nix create mode 100644 host/Rory-nginx/hosts/thearcanebrony.net/sentry.nix create mode 100644 host/Rory-nginx/hosts/thearcanebrony.net/siliconheaven.nix create mode 100644 host/Rory-nginx/hosts/thearcanebrony.net/spigotav.nix create mode 100644 host/Rory-nginx/hosts/thearcanebrony.net/terra.nix create mode 100644 host/Rory-nginx/hosts/thearcanebrony.net/vives.nix diff --git a/host/Rory-discordbots/configuration.nix b/host/Rory-discordbots/configuration.nix index f5a72cc..a4d9d86 100644 --- a/host/Rory-discordbots/configuration.nix +++ b/host/Rory-discordbots/configuration.nix @@ -25,8 +25,8 @@ } ]; }; - sound.enable = true; - hardware.pulseaudio.enable = true; + sound.enable = false; + hardware.pulseaudio.enable = false; system.stateVersion = "22.11"; # DO NOT EDIT! } diff --git a/host/Rory-discordbots/services.nix b/host/Rory-discordbots/services.nix deleted file mode 100644 index 48fa320..0000000 --- a/host/Rory-discordbots/services.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ config, pkgs, lib, ... }: - -{ - systemd.services."botcore.bot@" = { - description = "foo"; - wantedBy = [ "multi-user.target" ]; - serviceConfig = { - Type = "simple"; - ExecStart = "${pkgs.foo}/bin/foo"; - User = "foo"; - Group = "foo"; - Restart = "always"; - RestartSec = "5s"; - }; - }; -} - diff --git a/host/Rory-fosscord/configuration.nix b/host/Rory-fosscord/configuration.nix index 74defbc..c7240a6 100644 --- a/host/Rory-fosscord/configuration.nix +++ b/host/Rory-fosscord/configuration.nix @@ -23,8 +23,8 @@ } ]; }; - sound.enable = true; - hardware.pulseaudio.enable = true; + sound.enable = false; + hardware.pulseaudio.enable = false; system.stateVersion = "22.11"; # DO NOT EDIT! } diff --git a/host/Rory-nginx/configuration.nix b/host/Rory-nginx/configuration.nix new file mode 100644 index 0000000..38d50e2 --- /dev/null +++ b/host/Rory-nginx/configuration.nix @@ -0,0 +1,54 @@ +{ config, pkgs, lib, ... }: + +{ + imports = + [ + ../../modules/base-server.nix + ]; + + networking = { + hostName = "Rory-nginx"; + networkmanager.enable = false; + wireless.enable = false; + + firewall = { + enable = false; + }; + interfaces.ens18.ipv4.addresses = [ { + address = "192.168.1.55"; + prefixLength = 24; + } ]; + }; + + services = { + nginx = { + enable = true; + package = pkgs.nginxQuic; + virtualHosts = { + #"siliconheaven.thearcanebrony.net" = import ./hosts/thearcanebrony.net/siliconheaven.conf; + #"lfs.thearcanebrony.net" = import ./hosts/thearcanebrony.net/lfs.conf; + #"http.thearcanebrony.net" = import ./hosts/thearcanebrony.net/http.conf; + #"thearcanebrony.net" = import ./hosts/thearcanebrony.net/root.conf; + #"sentry.thearcanebrony.net" = import ./hosts/thearcanebrony.net/sentry.conf; + #"awooradio.thearcanebrony.net" = import ./hosts/thearcanebrony.net/awooradio.conf; + #"search.thearcanebrony.net" = import ./hosts/thearcanebrony.net/search.conf; + #"git.thearcanebrony.net" = import ./hosts/thearcanebrony.net/git.conf; + #"files.thearcanebrony.net" = import ./hosts/thearcanebrony.net/files.conf; + #"spigotav.thearcanebrony.net" = import ./hosts/thearcanebrony.net/spigotav.conf; + #"terra.thearcanebrony.net" = import ./hosts/thearcanebrony.net/terra.conf; + "vives.thearcanebrony.net" = import ./hosts/thearcanebrony.net/vives.conf; + #"bots.thearcanebrony.net" = import ./hosts/thearcanebrony.net/bots.conf; + #"lfs.rory.gay" = import ./hosts/rory.gay/lfs.conf; + #"tunnel.rory.boo" = import ./hosts/rory.boo/tunnel.conf; + #"boorunav.com" = import ./hosts/boorunav.com/root.conf; + #"catgirlsaresexy.com" = import ./hosts/catgirlsaresexy.com/root.conf; + #"sugarcanemc.org" = import ./hosts/sugarcanemc.org/root.conf; + }; + }; + }; + + sound.enable = false; + hardware.pulseaudio.enable = false; + + system.stateVersion = "22.11"; # DO NOT EDIT! +} \ No newline at end of file diff --git a/host/Rory-nginx/hosts/boorunav.com/root.nix b/host/Rory-nginx/hosts/boorunav.com/root.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/catgirlsaresexy.com/root.nix b/host/Rory-nginx/hosts/catgirlsaresexy.com/root.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/rory.boo/tunnel.nix b/host/Rory-nginx/hosts/rory.boo/tunnel.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/rory.gay/lfs.nix b/host/Rory-nginx/hosts/rory.gay/lfs.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/sugarcanemc.org/root.nix b/host/Rory-nginx/hosts/sugarcanemc.org/root.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/awooradio.nix b/host/Rory-nginx/hosts/thearcanebrony.net/awooradio.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/bots.nix b/host/Rory-nginx/hosts/thearcanebrony.net/bots.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/files.nix b/host/Rory-nginx/hosts/thearcanebrony.net/files.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/git.nix b/host/Rory-nginx/hosts/thearcanebrony.net/git.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/http.nix b/host/Rory-nginx/hosts/thearcanebrony.net/http.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/lfs.nix b/host/Rory-nginx/hosts/thearcanebrony.net/lfs.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/root.nix b/host/Rory-nginx/hosts/thearcanebrony.net/root.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/search.nix b/host/Rory-nginx/hosts/thearcanebrony.net/search.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/sentry.nix b/host/Rory-nginx/hosts/thearcanebrony.net/sentry.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/siliconheaven.nix b/host/Rory-nginx/hosts/thearcanebrony.net/siliconheaven.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/spigotav.nix b/host/Rory-nginx/hosts/thearcanebrony.net/spigotav.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/terra.nix b/host/Rory-nginx/hosts/thearcanebrony.net/terra.nix new file mode 100644 index 0000000..e69de29 diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/vives.nix b/host/Rory-nginx/hosts/thearcanebrony.net/vives.nix new file mode 100644 index 0000000..c853d2b --- /dev/null +++ b/host/Rory-nginx/hosts/thearcanebrony.net/vives.nix @@ -0,0 +1,8 @@ +{ + root = "/var/www/html_vives"; + locations = { + "/" = { + index = "index.html"; + }; + }; +} \ No newline at end of file diff --git a/modules/base.nix b/modules/base.nix index 5c531cf..9d68a37 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -32,8 +32,8 @@ security.sudo.wheelNeedsPassword = false; nixpkgs.config.allowUnfree = true; - sound.enable = true; - hardware.pulseaudio.enable = true; + sound.enable = lib.mkDefault true; + hardware.pulseaudio.enable = lib.mkDefault true; environment.systemPackages = with pkgs; [ wget -- cgit 1.4.1