-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
44 lines (38 loc) · 1.22 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
{
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
# flake modules
devshell.url = "github:numtide/devshell";
devshell.inputs.nixpkgs.follows = "nixpkgs";
treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
# libs
flake-utils.url = "github:numtide/flake-utils";
flake-compat.url = "github:edolstra/flake-compat";
flake-compat.flake = false;
# tools
nvfetcher.url = "github:berberman/nvfetcher";
nvfetcher.inputs.nixpkgs.follows = "nixpkgs";
nvfetcher.inputs.flake-utils.follows = "flake-utils";
nvfetcher.inputs.flake-compat.follows = "flake-compat";
# main nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# extra nixpkgs for checks
nixos-stable.url = "github:nixos/nixpkgs/nixos-23.11";
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
];
imports = [
inputs.flake-parts.flakeModules.easyOverlay
inputs.devshell.flakeModule
inputs.treefmt-nix.flakeModule
./flake
];
};
}