-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
42 lines (35 loc) · 1.14 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
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = {nixpkgs, ...}: let
forAllSystems = function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
] (system: function nixpkgs.legacyPackages.${system});
in rec {
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
alejandra
];
};
});
packages = forAllSystems (pkgs: {
mcman = pkgs.callPackage ./pkgs/mcman {};
playit = pkgs.callPackage ./pkgs/playit {};
});
nixosModules.flux = ./modules/flux;
nixosModules.default = nixosModules.flux;
overlays.default = final: prev: {
mcman = final.callPackage ./pkgs/mcman {};
playit = final.callPackage ./pkgs/playit {};
mkGenericServer = final.callPackage ./builders/mkGenericServer.nix {};
mkMinecraftServer = final.callPackage ./builders/mkMinecraftServer.nix {};
mkSteamServer = final.callPackage ./builders/mkSteamServer.nix {};
fetchSteam = final.callPackage ./helpers/fetchSteam {};
};
};
}