-
Notifications
You must be signed in to change notification settings - Fork 12
/
flake.nix
44 lines (39 loc) · 1.05 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 = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
systems.url = "github:nix-systems/default";
# treefmt-nix.url = "github:numtide/treefmt-nix";
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
imports = [
# inputs.flake-parts.flakeModules.partitions
# inputs.treefmt-nix.flakeModule
];
# partitions.dev = {
# extraInputsFlake = ./dev;
# module = {
# imports = [ ./dev/flake-module.nix ];
# };
# };
# partitionedAttrs = {
# checks = "dev";
# devShells = "dev";
# };
perSystem =
{
system,
pkgs,
inputs',
...
}:
{
# You can use `extend' to extend the packages with an overlay (or use
# `import inputs.nixpkgs { ... }`).
_module.args.pkgs = inputs'.nixpkgs.legacyPackages;
};
};
}