flake: utilize nix-systems for overridable flake systems

nix-systems introduces a brand-new pattern that allows the end user to
add or remove systems from the list of supported systems to the flake

See https://github.com/nix-systems/nix-systems for more details
This commit is contained in:
raf 2023-09-28 12:07:36 +03:00
commit fc8206e7a6
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
2 changed files with 20 additions and 6 deletions

View file

@ -7,12 +7,9 @@
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
# provide overridable systems
# https://github.com/nix-systems/nix-systems
systems = import inputs.systems;
imports = [
# add lib to module args
@ -55,6 +52,7 @@
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-utils.url = "github:numtide/flake-utils";
systems.url = "github:nix-systems/default";
# For generating documentation website
nmd = {