-
Notifications
You must be signed in to change notification settings - Fork 94
/
flake.nix
35 lines (29 loc) · 969 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
{
description = "Description for the project";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
devshell.url = "github:numtide/devshell";
devshell.inputs.nixpkgs.follows = "nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} ({lib, ...}: {
systems = lib.subtractLists [
"armv5tel-linux"
"armv6l-linux"
"mipsel-linux"
"riscv64-linux"
] (lib.intersectLists lib.systems.flakeExposed lib.platforms.linux);
imports = [
inputs.devshell.flakeModule
inputs.treefmt-nix.flakeModule
inputs.flake-parts.flakeModules.easyOverlay
./nix/checks.nix
./nix/devshells.nix
./nix/nixos-modules.nix
./nix/packages.nix
];
});
}