-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathflake.nix
35 lines (32 loc) · 881 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
33
34
35
rec {
nixConfig = {
extra-substituters = ["https://ezkea.cachix.org"];
extra-trusted-public-keys = ["ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI="];
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = { self, nixpkgs, ... }: let
genSystems = nixpkgs.lib.genAttrs [
# Supported OSes
"x86_64-linux"
];
pkgsFor = system: let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ self.overlays.default ];
};
overlay = self.overlays.default pkgs pkgs;
in overlay;
in {
inherit nixConfig;
overlays.default = import ./overlay.nix;
nixosModules.default = import ./module;
packages = genSystems pkgsFor;
};
}