pterodactyl-nix/flake.nix
2025-07-07 18:25:32 +02:00

24 lines
749 B
Nix

{
description = "Nixos modules for the pterodactyl game server panel";
inputs = {
nixpkgs.url = github:nixos/nixpkgs?ref=nixos-unstable;
};
outputs = { self, nixpkgs }: {
nixosModules = nixpkgs.lib.genAttrs [ "pterodactyl" ] (
module: import ./modules/${module}.nix { flake = self; }
);
packages = nixpkgs.lib.genAttrs [ "x86_64-linux" ] (
system: let
pkgs = import nixpkgs { inherit system; };
in rec {
wings = import ./packages/wings.nix { inherit pkgs; };
pterodactyl = import ./packages/pterodactyl.nix { inherit pkgs; };
php = import ./packages/php.nix { inherit pkgs; };
composer = import ./packages/composer.nix { inherit pkgs php; };
}
);
};
}