feat(flake): make systems overridable

Clan users might want to use the flake on different architectures.

This allows them to override the systems input with a new value.
This commit is contained in:
zimbatm
2024-08-15 11:03:52 +02:00
committed by Jörg Thalheim
parent f132038bcd
commit 4fa4af12dc
2 changed files with 24 additions and 6 deletions

View File

@@ -14,12 +14,18 @@
nixos-images.inputs.nixos-stable.follows = "";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
systems.url = "github:nix-systems/default";
treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
inputs@{ flake-parts, self, ... }:
inputs@{
flake-parts,
self,
systems,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } (
{ ... }:
{
@@ -27,11 +33,7 @@
meta.name = "clan-core";
directory = self;
};
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
systems = import systems;
imports = [
./checks/flake-module.nix
./clanModules/flake-module.nix