generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathflake.nix
34 lines (33 loc) · 943 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
{
description = " My personal NUR repository";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs?ref=branch-off-24.11";
};
outputs = { self, nixpkgs, flake-utils }:
let
systems = [
"x86_64-linux"
"i686-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
"armv6l-linux"
"armv7l-linux"
];
inherit (flake-utils.lib) eachSystem filterPackages;
in eachSystem systems (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowBroken = true; # FIXME
};
in {
packages = (filterPackages system (import ./nur.nix { inherit pkgs; }));
lib = import ./lib { inherit pkgs; };
}) // {
nixosModules =
builtins.mapAttrs (name: path: import path) (import ./modules);
overlay = import ./overlay.nix;
};
}