summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-01-02 01:54:01 +0100
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-01-02 01:54:01 +0100
commit78a49ca702893ea0d9e33f0c0ec023500f96183c (patch)
treeb6bbe375dc73568039aa58b4e2d1d56ba729c0c7
parentImport users for bots (diff)
downloadRory-Open-Architecture-78a49ca702893ea0d9e33f0c0ec023500f96183c.tar.xz
Add fosscord
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
-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! +} +