feat: Scaffold the nixos modules

The modules themselves don't work yet, but the flake does ! Yay !
(that was way too complicated wtf)
This commit is contained in:
kalmenn 2025-07-07 02:43:30 +02:00
parent 795019f467
commit 6fbd9b2a6c
Signed by: kalmenn
GPG key ID: F500055C44BC3834
6 changed files with 282 additions and 42 deletions

12
packages/php.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs }:
pkgs.php83.buildEnv {
extensions = { enabled, all, }: enabled ++ (with all; [
redis
# xdebug
]);
# extraConfig = ''
# xdebug.mode=debug
# '';
}

9
packages/pterodactyl.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs }:
let
version = "1.11.11";
in pkgs.fetchzip {
url = "https://github.com/pterodactyl/panel/releases/download/v${ version }/panel.tar.gz";
hash = "sha256-0nOHtReVUVXYQY/glS4x0gkbhetoXSWg4rRwOJlkcM8=";
stripRoot = false;
}

22
packages/wings.nix Normal file
View file

@ -0,0 +1,22 @@
{ pkgs }:
let
version = "1.11.13";
in pkgs.buildGoModule rec {
pname = "pterodactyl-wings";
version = "1.11.13";
src = pkgs.fetchFromGitHub {
owner = "pterodactyl";
repo = "wings";
rev = "v${version}";
sha256 = "sha256-UpYUHWM2J8nH+srdKSpFQEaPx2Rj2+YdphV8jJXcoBU=";
};
vendorHash = "sha256-eWfQE9cQ7zIkITWwnVu9Sf9vVFjkQih/ZW77d6p/Iw0=";
subPackages = [ "." ];
ldflags = [
"-X github.com/pterodactyl/wings/system.Version=${version}"
];
}