-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
32 lines (30 loc) · 790 Bytes
/
flake.nix
File metadata and controls
32 lines (30 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
description = "Pterodactyl Wings";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = {
self,
nixpkgs,
}: let
supportedSystems = [
"aarch64-linux"
"x86_64-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
in {
nixosModules = {
pterodactyl-wings = import ./module.nix self;
default = self.nixosModules.pterodactyl-wings;
};
packages = forAllSystems (
system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
pterodactyl-wings = pkgs.callPackage ./pterodactyl-wings.nix {};
pelican-wings = pkgs.callPackage ./pelican-wings.nix {};
default = self.packages.${system}.pterodactyl-wings;
}
);
};
}