-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
24 lines (21 loc) · 857 Bytes
/
Copy pathflake.nix
File metadata and controls
24 lines (21 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
git-hooks.url = "github:fricklerhandwerk/git-hooks";
git-hooks.flake = false;
wrappers.url = "github:lassulus/wrappers";
};
# construct flake from ./default.nix
outputs =
{ self, ... }@inputs:
let
inherit (inputs.flake-utils.lib) eachDefaultSystem eachDefaultSystemPassThrough;
importDefault = arg: (system: (import ./. { inherit self inputs system; }).flake.${arg} or { });
systemAgnosticFlake = eachDefaultSystemPassThrough (importDefault "systemAgnostic");
perSystemFlake = eachDefaultSystem (importDefault "perSystem");
in
systemAgnosticFlake // perSystemFlake;
}