Add support for building minecraft modpacks
This commit is contained in:
parent
b474f7e97c
commit
a9e3610744
6 changed files with 121 additions and 11 deletions
27
flake.nix
27
flake.nix
|
@ -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;
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue