generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
71 lines (70 loc) · 2.06 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
description = "AtaraxiaSjel's NUR repository";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
devenv.url = "github:cachix/devenv";
};
outputs =
inputs@{ flake-parts, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"i686-linux"
"x86_64-darwin"
"aarch64-linux"
"armv6l-linux"
"armv7l-linux"
];
imports = [
inputs.devenv.flakeModule
];
perSystem =
{
pkgs,
lib,
system,
...
}:
{
_module.args.pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
legacyPackages = import ./pkgs/default.nix { inherit pkgs; };
# Currently does not populate derivations from recurseIntoAttrs
# packages = lib.filterAttrs (_: v: lib.isDerivation v) legacyPackages;
# Get all packages from ci.nix
packages = (import ./ci.nix { inherit pkgs; }).buildPkgs;
checks = (import ./ci.nix { inherit pkgs; }).cachePkgs;
devenv.shells.default = {
packages = with pkgs; [
nix-update
nix-eval-jobs
nix-fast-build
jq
];
pre-commit.hooks = {
actionlint.enable = true;
deadnix.enable = true;
flake-checker.enable = true;
nixfmt-rfc-style.enable = true;
ripsecrets.enable = true;
};
# https://github.com/cachix/devenv/issues/528
containers = lib.mkForce { };
};
};
flake = {
lib = import ./lib;
overlays = import ./overlays;
nixosModules = import ./modules;
};
};
nixConfig = {
extra-substituters = [ "https://ataraxiadev-foss.cachix.org" ];
extra-trusted-public-keys = [
"ataraxiadev-foss.cachix.org-1:ws/jmPRUF5R8TkirnV1b525lP9F/uTBsz2KraV61058="
];
};
}