summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--flake.nix13
-rw-r--r--host/Rory-fosscord/configuration.nix31
2 files changed, 44 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 6f2968a..b5719e4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -11,6 +11,9 @@
     botcore-v4 = {
       url = "gitlab:BotCore-Devs/BotCore-v4/staging";
     };
+    discord-client-proxy = {
+      url = "github:Fosscord/discord-client-proxy";
+    }
   };
 
   # Outputs can be anything, but the wiki + some commands define their own
@@ -28,6 +31,16 @@
           inherit botcore-v4;
         };
       };
+      Rory-fosscord = nixpkgs.lib.nixosSystem {
+        system = "x86_64-linux";
+        modules = [
+          ./host/Rory-fosscord/configuration.nix
+          ./hardware-configuration.nix
+        ];
+        specialArgs = {
+          inherit discord-client-proxy;
+        };
+      };
       Rory-postgres = nixpkgs.lib.nixosSystem {
         system = "x86_64-linux";
         modules = [
diff --git a/host/Rory-fosscord/configuration.nix b/host/Rory-fosscord/configuration.nix
new file mode 100644
index 0000000..74defbc
--- /dev/null
+++ b/host/Rory-fosscord/configuration.nix
@@ -0,0 +1,31 @@
+{ config, pkgs, lib, discord-client-proxy, ... }:
+
+{
+  imports =
+    [
+      ../../modules/base-server.nix
+     # ./services.nix
+     discord-client-proxy.modules.proxy
+     discord-client-proxy.modules.users
+    ];
+
+  networking = {
+    hostName = "Rory-fosscord";
+    networkmanager.enable = false;
+    wireless.enable = false;
+      
+    firewall = {
+      enable = false;
+    };
+    interfaces.ens18.ipv4.addresses = [ { 
+      address = "192.168.1.100";
+      prefixLength = 24;
+    } ];
+  };
+
+  sound.enable = true;
+  hardware.pulseaudio.enable = true;
+
+  system.stateVersion = "22.11"; # DO NOT EDIT!
+}
+