Skip to content

Commit

Permalink
flake: utilize nix-systems for overridable flake systems
Browse files Browse the repository at this point in the history
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
  • Loading branch information
NotAShelf committed Sep 28, 2023
1 parent 6b77a70 commit fc8206e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
16 changes: 16 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit fc8206e

Please sign in to comment.