Add support for building minecraft modpacks

This commit is contained in:
Tristan Daniël Maat 2021-04-25 04:50:30 +01:00
parent b474f7e97c
commit a9e3610744
Signed by: tlater
GPG key ID: 49670FD774E43268
6 changed files with 121 additions and 11 deletions

View file

@ -21,7 +21,7 @@
};
};
outputs = { nixpkgs, nixos-hardware, flake-utils, tlaternet-webserver
outputs = { self, nixpkgs, nixos-hardware, flake-utils, tlaternet-webserver
, tlaternet-templates, ... }@inputs:
let
overlays = [
@ -30,14 +30,18 @@
tlaternet-webserver.legacyPackages.${prev.system}.packages;
tlaternet-templates =
tlaternet-templates.legacyPackages.${prev.system}.packages;
local = import ./pkgs { pkgs = prev; };
local = import ./pkgs {
pkgs = prev;
local-lib = self.lib.${prev.system};
};
})
];
in {
nixosConfigurations = {
tlaternet = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
tlaternet = let system = "x86_64-linux";
in nixpkgs.lib.nixosSystem {
inherit system;
modules = [
({ modulesPath, ... }: {
@ -52,8 +56,9 @@
];
};
vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
vm = let system = "x86_64-linux";
in nixpkgs.lib.nixosSystem {
inherit system;
modules = [
({ modulesPath, ... }: {
@ -88,6 +93,14 @@
'';
};
packages = import ./pkgs { inherit pkgs; };
packages = import ./pkgs {
inherit pkgs;
local-lib = self.lib.${system};
};
lib = import ./lib {
inherit pkgs inputs;
lib = nixpkgs.lib;
};
});
}