pterodactyl-nix/flake.nix
kalmenn 6fbd9b2a6c
feat: Scaffold the nixos modules
The modules themselves don't work yet, but the flake does ! Yay !
(that was way too complicated wtf)
2025-07-07 04:49:01 +02:00

19 lines
565 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: nixpkgs.lib.genAttrs [ "pterodactyl" "php" "wings" ] (
package: import ./packages/${package}.nix { pkgs = import nixpkgs { inherit system; }; };
)
});
};
}