From 2029ebd5bee5f21a117558da63a7f6bcdebdace5 Mon Sep 17 00:00:00 2001 From: fi Date: Mon, 2 Nov 2026 21:06:22 +0100 Subject: [PATCH] pterodactyl --- config/hosts/pterodactyl/configuration.nix | 13 +++++ config/hosts/pterodactyl/default.nix | 7 +++ config/hosts/pterodactyl/pterodactyl.nix | 6 ++ flake.lock | 64 ++++++++++++++++------ flake.nix | 3 +- hosts.nix | 7 ++- 6 files changed, 82 insertions(+), 18 deletions(-) create mode 100644 config/hosts/pterodactyl/configuration.nix create mode 100644 config/hosts/pterodactyl/default.nix create mode 100644 config/hosts/pterodactyl/pterodactyl.nix diff --git a/config/hosts/pterodactyl/configuration.nix b/config/hosts/pterodactyl/configuration.nix new file mode 100644 index 0000000..9f72332 --- /dev/null +++ b/config/hosts/pterodactyl/configuration.nix @@ -0,0 +1,13 @@ +{ ... }: +{ + boot.loader.grub = { + enable = true; + device = "/dev/vda"; + }; + + networking = { + hostName = "pterodactyl"; + }; + + system.stateVersion = "26.05"; +} diff --git a/config/hosts/pterodactyl/default.nix b/config/hosts/pterodactyl/default.nix new file mode 100644 index 0000000..59df74c --- /dev/null +++ b/config/hosts/pterodactyl/default.nix @@ -0,0 +1,7 @@ +{ ... }: +{ + imports = [ + ./configuration.nix + ./pterodactyl.nix + ]; +} diff --git a/config/hosts/pterodactyl/pterodactyl.nix b/config/hosts/pterodactyl/pterodactyl.nix new file mode 100644 index 0000000..a267b69 --- /dev/null +++ b/config/hosts/pterodactyl/pterodactyl.nix @@ -0,0 +1,6 @@ +{ pkgs, ... }: +{ + services.pterodactyl-wings = { + enable = true; + }; +} diff --git a/flake.lock b/flake.lock index e6471a2..c6c2bd8 100644 --- a/flake.lock +++ b/flake.lock @@ -24,11 +24,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1793969467, - "narHash": "sha256-fOTg8KFnTZZS226jtFAmsjCBzL1dIpQI7QTImt5ZJQQ=", + "lastModified": 1794164954, + "narHash": "sha256-Byhpn44E7Gl6qg5+JlnvQVsCDHyaj27CTf/ug/7/DFs=", "owner": "nix-community", "repo": "colmena", - "rev": "d135c22028d382878f394ea5f42cd6baeae30f85", + "rev": "bed5d9a5187a927f38a1307cd98557db87f60c36", "type": "github" }, "original": { @@ -176,11 +176,11 @@ }, "nixpkgs-master": { "locked": { - "lastModified": 1793989044, - "narHash": "sha256-h5OcK1v3FPPBUHi11SqdrzbpbAezwPfuQTPJI4vYmrk=", + "lastModified": 1794685940, + "narHash": "sha256-E4a/BXlIxynsA0GDt9iwHmfGZd1nolyDiGWOafpqW1w=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "32cfc943fe34fdec30ccd670443929c1fadb3ade", + "rev": "f5e5053491e9337ff52ca04b6b0ff9070de60870", "type": "github" }, "original": { @@ -192,11 +192,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1793931523, - "narHash": "sha256-kyzSFmRVevj9lr2XVskwKnae/pXJEbQ+bHKc+mpjqFE=", + "lastModified": 1794666816, + "narHash": "sha256-+0k232f2hL/ENytM0z48OY9BLdnJx1GVdW8lsyQ8lXU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "7dd597af6a9776394693e4d0fed85dd5ea8d56da", + "rev": "82566dfe91ca5e12bc10b36272280628142f651d", "type": "github" }, "original": { @@ -208,11 +208,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1793928711, - "narHash": "sha256-x4ZAaSvxHK7Sw+BP4YDW1LjVxAO2CVir988FySEeIWw=", + "lastModified": 1794671743, + "narHash": "sha256-QnyikQ4v7nE6fJ2Bt9KSM/9dI6jRvVdJMHxIMU0MKvI=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "daeef707f1d32744253b7878d2dde9abec45eab3", + "rev": "704801e9e347f34634ff60c96cdeb8dcc19a60d6", "type": "github" }, "original": { @@ -223,6 +223,22 @@ } }, "nixpkgs_3": { + "locked": { + "lastModified": 1793195608, + "narHash": "sha256-lNZLwWf5tYNKjothaoFq/VZYvzaclmLafjgMdUlpJPQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "58deea654ec5dd0644f31c840a07c29fa0592528", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_4": { "locked": { "lastModified": 1779622335, "narHash": "sha256-ViA62qtL5za7V3d5I8OA9q9JcFhsVAiL5jVHwEclWqk=", @@ -238,6 +254,21 @@ "type": "github" } }, + "pterodactyl": { + "inputs": { + "nixpkgs": "nixpkgs_3" + }, + "locked": { + "lastModified": 1794686301, + "narHash": "sha256-2R3+HA887NCt65olhKavlRMzH6c/QDKKL/v/FScZ+EA=", + "path": "/home/fi/repositories/pterodactyl-nixos", + "type": "path" + }, + "original": { + "path": "/home/fi/repositories/pterodactyl-nixos", + "type": "path" + } + }, "root": { "inputs": { "colmena": "colmena", @@ -245,6 +276,7 @@ "nixpkgs": "nixpkgs_2", "nixpkgs-master": "nixpkgs-master", "nixpkgs-unstable": "nixpkgs-unstable", + "pterodactyl": "pterodactyl", "simple-nixos-mailserver": "simple-nixos-mailserver", "sops-nix": "sops-nix" } @@ -254,7 +286,7 @@ "blobs": "blobs", "flake-compat": "flake-compat", "git-hooks": "git-hooks", - "nixpkgs": "nixpkgs_3" + "nixpkgs": "nixpkgs_4" }, "locked": { "lastModified": 1792432400, @@ -278,11 +310,11 @@ ] }, "locked": { - "lastModified": 1793657466, - "narHash": "sha256-GoOvpdsjO5hqZuO6T6ok9u6sJEjO0iPli2zRr9oNUNw=", + "lastModified": 1794624949, + "narHash": "sha256-3q/hxp/flW1PnV3Dx+H3p8kHGEHJ7251BqVMNsAAB9E=", "owner": "Mic92", "repo": "sops-nix", - "rev": "b18e01ce148eb3efff5de2f2d3181ca53b2b2a54", + "rev": "11e5885d241743ff0193465d533b20e754bc3ce0", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index a803d6d..f58bff0 100644 --- a/flake.nix +++ b/flake.nix @@ -13,9 +13,10 @@ url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; + pterodactyl.url = "path:/home/fi/repositories/pterodactyl-nixos"; }; - outputs = { self, colmena, nixpkgs, nixpkgs-unstable, nixpkgs-master, nixos-generators, simple-nixos-mailserver, sops-nix, ... }@inputs: + outputs = { self, colmena, nixpkgs, nixpkgs-unstable, nixpkgs-master, nixos-generators, simple-nixos-mailserver, sops-nix, pterodactyl, ... }@inputs: let hosts = import ./hosts.nix inputs; helper = import ./helper.nix inputs; diff --git a/hosts.nix b/hosts.nix index 83e3a63..d74247b 100644 --- a/hosts.nix +++ b/hosts.nix @@ -1,4 +1,4 @@ -{ nixpkgs, nixpkgs-unstable, nixpkgs-master, sops-nix, ... }: +{ nixpkgs, nixpkgs-unstable, nixpkgs-master, sops-nix, pterodactyl, ... }: let # Set of environment specific modules environments = { @@ -23,6 +23,7 @@ let ./config/common ./config/hosts/${name} sops-nix.nixosModules.sops + pterodactyl.nixosModules.pterodactyl-wings ] ++ (if environment != "" then environments.${environment} else []); }) hosts; in @@ -82,6 +83,10 @@ in site = "vs"; environment = "proxmox"; }; + pterodactyl = { + site = "vs"; + environment = "proxmox"; + }; coturn = { site = "vs"; environment = "proxmox";