forked from matt1432/Minix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
51 lines (44 loc) · 1.05 KB
/
flake.nix
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
description = "Nix-MC: NixOS module for managing multiple minecraft servers";
inputs = {
nixpkgs = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-unstable";
};
curseforge-server-downloader-src = {
type = "github";
owner = "Malpiszonekx4";
repo = "curseforge-server-downloader";
flake = false;
};
};
outputs = {
self,
nixpkgs,
curseforge-server-downloader-src,
...
}: let
supportedSystems = [
"x86_64-linux"
"x86_64-darwin"
];
perSystem = attrs:
nixpkgs.lib.genAttrs supportedSystems (system:
attrs (import nixpkgs {inherit system;}));
in {
nixosModules = {
nix-mc = import ./modules;
default = self.nixosModules.nix-mc;
};
packages = perSystem (pkgs: {
curseforge-server-downloader =
pkgs.callPackage
./pkgs/curseforge-server-downloader.nix {
inherit curseforge-server-downloader-src;
};
});
formatter = perSystem (pkgs: pkgs.alejandra);
};
}