mirror of
https://github.com/xddxdd/nix-cachyos-kernel.git
synced 2026-07-03 19:18:07 +02:00
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
description = "CachyOS Kernels";
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
cachyos-kernel = {
|
|
url = "github:CachyOS/linux-cachyos";
|
|
flake = false;
|
|
};
|
|
cachyos-kernel-patches = {
|
|
url = "github:CachyOS/kernel-patches";
|
|
flake = false;
|
|
};
|
|
};
|
|
outputs =
|
|
{ self, flake-parts, ... }@inputs:
|
|
flake-parts.lib.mkFlake { inherit inputs; } (
|
|
{
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
|
|
perSystem =
|
|
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
rec {
|
|
# Legacy packages contain linux-cachyos-* and linuxPackages-cachyos-*
|
|
legacyPackages = pkgs.callPackage ./kernel-cachyos {
|
|
inherit inputs;
|
|
};
|
|
# Packages only contain linux-cachyos-* due to Flake schema requirements
|
|
packages = lib.filterAttrs (_: lib.isDerivation) legacyPackages;
|
|
};
|
|
}
|
|
);
|
|
}
|