Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
60 lines (58 loc) · 1.46 KB
/
Copy pathflake.nix
File metadata and controls
60 lines (58 loc) · 1.46 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
{
description = "Description for the project";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs.follows = "nixpkgs";
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
pkgs-by-name-for-flake-parts.url = "github:drupol/pkgs-by-name-for-flake-parts";
devenv = {
url = "github:cachix/devenv";
inputs.nixpkgs.follows = "nixpkgs";
};
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs = {nixpkgs.follows = "nixpkgs";};
};
nix2container = {
url = "github:nlewo/nix2container";
inputs.nixpkgs.follows = "nixpkgs";
};
mk-shell-bin = {
url = "github:rrbutani/nix-mk-shell-bin";
inputs.nixpkgs.follows = "nixpkgs";
};
crane = {
url = "github:ipetkov/crane";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ {
self,
flake-parts,
nixpkgs,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} ({
withSystem,
flake-parts-lib,
...
}: let
inherit
(import ./nix/lib/import.nix {
inherit (flake-parts-lib) importApply;
inherit withSystem inputs;
localFlake = self;
})
importFromPathList
;
in {
imports = importFromPathList ./nix/flakemodules;
systems = ["x86_64-linux"];
});
}