Specify the systems through a flake input.

This commit is contained in:
r-vdp 2023-05-31 10:22:20 +02:00
parent 9f51341822
commit 7db9cbff4e
No known key found for this signature in database
3 changed files with 29 additions and 33 deletions

View file

@ -1,11 +1,19 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
systems = {
url = "path:./systems.nix";
flake = false;
};
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
devshell = {
url = "github:numtide/devshell";
inputs = {
nixpkgs.follows = "nixpkgs";
systems.follows = "systems";
};
};
pre-commit-hooks = {
@ -46,7 +54,7 @@
, devshell
, treefmt-nix
, pre-commit-hooks
,
, ...
}:
{
lib = import ./nix/lib.nix {
@ -60,11 +68,7 @@
};
}
//
(flake-utils.lib.eachSystem
[
flake-utils.lib.system.x86_64-linux
flake-utils.lib.system.aarch64-linux
]
(flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {