diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-02-11 23:17:34 +0100 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-02-11 23:17:34 +0100 |
commit | 7bd42b19ff7d940711776163d51d49ffd2e08e65 (patch) | |
tree | 2fcd140069e52829cdbfd471129819d1177b3a8e | |
parent | Check your braces, girl (diff) | |
download | Rory-Open-Architecture-7bd42b19ff7d940711776163d51d49ffd2e08e65.tar.xz |
nginx test
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
23 files changed, 68 insertions, 23 deletions
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 --- /dev/null +++ b/host/Rory-nginx/hosts/boorunav.com/root.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/catgirlsaresexy.com/root.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/rory.boo/tunnel.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/rory.gay/lfs.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/sugarcanemc.org/root.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/thearcanebrony.net/awooradio.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/thearcanebrony.net/bots.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/thearcanebrony.net/files.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/thearcanebrony.net/git.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/thearcanebrony.net/http.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/thearcanebrony.net/lfs.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/thearcanebrony.net/root.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/thearcanebrony.net/search.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/thearcanebrony.net/sentry.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/thearcanebrony.net/siliconheaven.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/thearcanebrony.net/spigotav.nix 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 --- /dev/null +++ b/host/Rory-nginx/hosts/thearcanebrony.net/terra.nix 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 |