From 0ef33f3f082c2d496c433052c045431167a94502 Mon Sep 17 00:00:00 2001 From: fi Date: Wed, 20 Nov 2024 05:46:41 +0100 Subject: [PATCH] Add gameserver-node-1 host --- config/hosts/gameserver-node-1/configuration.nix | 13 +++++++++++++ config/hosts/gameserver-node-1/default.nix | 6 ++++++ flake.nix | 3 ++- hosts.nix | 7 ++++--- 4 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 config/hosts/gameserver-node-1/configuration.nix create mode 100644 config/hosts/gameserver-node-1/default.nix diff --git a/config/hosts/gameserver-node-1/configuration.nix b/config/hosts/gameserver-node-1/configuration.nix new file mode 100644 index 0000000..94a60e2 --- /dev/null +++ b/config/hosts/gameserver-node-1/configuration.nix @@ -0,0 +1,13 @@ +{ ... }: +{ + boot.loader.grub = { + enable = true; + device = "/dev/vda"; + }; + + networking = { + hostName = "gameserver-node-1"; + }; + + system.stateVersion = "24.05"; +} diff --git a/config/hosts/gameserver-node-1/default.nix b/config/hosts/gameserver-node-1/default.nix new file mode 100644 index 0000000..0167962 --- /dev/null +++ b/config/hosts/gameserver-node-1/default.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + imports = [ + ./configuration.nix + ]; +} diff --git a/flake.nix b/flake.nix index 5cf2232..326b07b 100644 --- a/flake.nix +++ b/flake.nix @@ -8,9 +8,10 @@ inputs.nixpkgs.follows = "nixpkgs"; }; simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05"; + pterodactyl.url = "git+https://git.nekover.se/fi/pterodactyl.git"; }; - outputs = { self, nixpkgs, nixpkgs-unstable, nixpkgs-master, nixos-generators, simple-nixos-mailserver, ... }@inputs: + outputs = { self, nixpkgs, nixpkgs-unstable, nixpkgs-master, nixos-generators, simple-nixos-mailserver, pterodactyl, ... }@inputs: let hosts = import ./hosts.nix inputs; helper = import ./helper.nix inputs; diff --git a/hosts.nix b/hosts.nix index 363f377..61073ff 100644 --- a/hosts.nix +++ b/hosts.nix @@ -26,9 +26,10 @@ let }) hosts; in generateDefaults { - #fee = { - # site = "wg"; - #}; + gameserver-node-1 = { + site = "vs"; + environment = "proxmox"; + }; hydra = { site = "vs"; environment = "proxmox";