Initial commit
This commit is contained in:
commit
93489cbe1a
1 changed files with 1053 additions and 0 deletions
53
flake.nix
Normal file
53
flake.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
description = "Pterodactyl";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }@inputs:
|
||||
{
|
||||
overlays.default = final: prev: {
|
||||
pterodactyl-panel_1 = prev.callPackage ./pkgs/pterodactyl-panel/1.nix { };
|
||||
pterodactyl-panel_2 = prev.callPackage ./pkgs/pterodactyl-panel/2.nix { };
|
||||
pterodactyl-wings = prev.callPackage ./pkgs/pterodactyl-wings/package.nix { };
|
||||
};
|
||||
|
||||
packages = builtins.mapAttrs (system: pkgs: {
|
||||
pterodactyl-panel_1 = pkgs.callPackage ./pkgs/pterodactyl-panel/1.nix { };
|
||||
pterodactyl-panel_2 = pkgs.callPackage ./pkgs/pterodactyl-panel/2.nix { };
|
||||
pterodactyl-wings = pkgs.callPackage ./pkgs/pterodactyl-wings/package.nix { };
|
||||
#default = self.packages.${system}.pterodactyl-panel;
|
||||
}) inputs.nixpkgs.legacyPackages;
|
||||
|
||||
nixosModules = {
|
||||
pterodactyl-panel = { lib, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./nixos/modules/pterodactyl-panel.nix
|
||||
];
|
||||
services.pterodactyl-panel.package = lib.mkDefault (
|
||||
pkgs.callPackage ./pkgs/pterodactyl-panel/1.nix { }
|
||||
);
|
||||
};
|
||||
|
||||
pterodactyl-wings = { lib, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./nixos/modules/pterodactyl-wings.nix
|
||||
];
|
||||
services.pterodactyl-wings.package = lib.mkDefault (
|
||||
pkgs.callPackage ./pkgs/pterodactyl-wings/package.nix { }
|
||||
);
|
||||
};
|
||||
|
||||
default = {
|
||||
imports = [
|
||||
self.nixosModules.pterodactyl-panel
|
||||
self.nixosModules.pterodactyl-wings
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue