Move the systemsConfigs key so that every entry defines its system. Determine flake attrs automatically.

This commit is contained in:
R-VdP 2023-03-14 20:37:35 +01:00
parent 5ccc6b1bba
commit 15dd869682
No known key found for this signature in database
3 changed files with 51 additions and 10 deletions

View file

@ -100,17 +100,11 @@
};
in
{
systemConfig = self.lib.makeSystemConfig {
inherit system;
modules = [
./nix/modules
];
};
packages = {
inherit system-manager;
default = self.packages.${system}.system-manager;
};
devShells.default = pkgs.devshell.mkShell {
packages = with pkgs; [
llvm.clang
@ -174,6 +168,7 @@
};
}).shellHook;
};
checks = {
inherit
# Build the crate as part of `nix flake check` for convenience
@ -186,5 +181,12 @@
lib = import ./nix/lib.nix {
inherit nixpkgs self;
};
systemConfigs.default = self.lib.makeSystemConfig {
system = flake-utils.lib.system.x86_64-linux;
modules = [
./nix/modules
];
};
};
}