-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
73 lines (64 loc) · 1.74 KB
/
flake.nix
File metadata and controls
73 lines (64 loc) · 1.74 KB
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
72
73
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "";
};
git-hooks = {
url = "github:cachix/git-hooks.nix";
inputs = {
nixpkgs.follows = "";
flake-compat.follows = "";
gitignore.follows = "";
};
};
make-shell = {
url = "github:nicknovitski/make-shell";
inputs.flake-compat.follows = "";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
srvos = {
url = "github:nix-community/srvos";
inputs.nixpkgs.follows = "nixpkgs";
};
polkadot-nix = {
url = "github:andresilva/polkadot.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
dotnix = {
url = "github:sporyon/dotnix-core";
inputs = {
flake-parts.follows = "flake-parts";
polkadot.follows = "polkadot-nix";
};
};
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-github-actions = {
url = "github:nix-community/nix-github-actions";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } (
{ lib, ... }:
{
systems = ["x86_64-linux"];
imports = lib.pipe (lib.filesystem.listFilesRecursive ./.) [
(lib.map builtins.toString)
(lib.filter (lib.hasSuffix ".nix"))
(lib.filter (f: !lib.hasSuffix "flake.nix" f))
(lib.filter (f: !lib.hasInfix "/_" f))
];
_module.args.rootPath = ./.;
}
);
}