-
Notifications
You must be signed in to change notification settings - Fork 5
/
flake.nix
42 lines (36 loc) · 1.05 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 = "instantNIX";
nixConfig = {
extra-experimental-features = "nix-command flakes";
extra-substituters = [
"https://instantos.cachix.org"
];
extra-trusted-public-keys = [
"instantos.cachix.org-1:6GezJZuxIK59ydzdyoIw6Yr4H6DaCoLzqhPaDhB8v24="
];
};
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.11";
outputs =
{ self
, nixpkgs
}:
let
inherit (nixpkgs) lib;
systems = lib.platforms.linux;
forAllSystems = lib.genAttrs systems;
# forAllSystems = f: lib.genAttrs systems (system: f system);
# lib.filterAttrs (n: v: lib.isDerivation v);
# lib.filterAttrs (n: lib.isDerivation);
in
{
packages = forAllSystems (system:
lib.filterAttrs (n: v: lib.isDerivation v)
(import ./default.nix {
pkgs = nixpkgs.legacyPackages.${system} or (import nixpkgs { inherit system; });
}) // {
default = self.packages.${system}.instantnix;
}
);
nixosModules = (import ./modules).modules;
};
}