{ 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; }; } ); }