-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathflake.nix
More file actions
54 lines (48 loc) · 1.25 KB
/
flake.nix
File metadata and controls
54 lines (48 loc) · 1.25 KB
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
52
53
54
{
description = "A flake to help you on your Vintage Story journey on NixOS";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = {
self,
nixpkgs,
}: let
system = "x86_64-linux";
inherit (nixpkgs) lib;
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfreePredicate = pkg:
lib.elem (lib.getName pkg) [
"vintagestory"
"rustory"
];
permittedInsecurePackages = [
"dotnet-runtime-7.0.20"
];
};
};
packages = self.packages.${system};
in {
lib = {
builders = import ./builders pkgs;
inherit (self.lib.builders) mkVintageStory;
};
packages.${system} =
{default = packages.latest;}
// import ./tools pkgs
// import ./packages {
inherit (self.lib) builders;
inherit lib;
};
overlays.default = final: prev: {
vintagestoryPackages =
{default = final.vintagestoryPackages.latest;}
// import ./tools prev
// import ./packages {
builders = import ./builders prev;
inherit (prev) lib;
};
};
homeModules = import ./tools/hm.nix {inherit packages;};
nixosModules.default = import ./module;
};
}