-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
32 lines (30 loc) · 1023 Bytes
/
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlays.liv ];
};
in {
packages.liv-nix-scripts = pkgs.liv-nix-scripts;
packages.mango-os = pkgs.mango-os;
packages.redscript = pkgs.redscript;
packages.rkmod = pkgs.rkmod;
}) // {
overlays.liv = final: prev: {
liv-nix-scripts = final.callPackage ./pkgs/liv-nix-scripts { };
mango-os = final.callPackage ./pkgs/mango-os { };
redscript = final.callPackage ./pkgs/redscript { };
rkmod = final.callPackage ./pkgs/rkmod { };
};
overlays.default = self.overlays.liv;
nixosModules = {
mango-os = { config, ... }: { imports = [ ./modules/mango-os ]; };
};
};
}