Move the systemsConfigs key so that every entry defines its system. Determine flake attrs automatically.
This commit is contained in:
parent
5ccc6b1bba
commit
15dd869682
3 changed files with 51 additions and 10 deletions
16
flake.nix
16
flake.nix
|
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue