add: chaotic-nyx with CachyOS kernel #7

Merged
ragusa-it merged 1 commits from claude/add-chaotic-nyx-cachyos-o0LDX into main 2026-02-02 15:14:46 +00:00
ragusa-it commented 2026-02-02 15:14:33 +00:00 (Migrated from github.com)
  • Add chaotic-nyx input for access to CachyOS packages
  • Import chaotic nixosModules in flake outputs
  • Switch from zen kernel to linuxPackages_cachyos
  • Enable sched-ext schedulers (scx) for improved scheduling

https://claude.ai/code/session_012fr2N5SNf2LJpy3itB8D8S

- Add chaotic-nyx input for access to CachyOS packages - Import chaotic nixosModules in flake outputs - Switch from zen kernel to linuxPackages_cachyos - Enable sched-ext schedulers (scx) for improved scheduling https://claude.ai/code/session_012fr2N5SNf2LJpy3itB8D8S
copilot-pull-request-reviewer[bot] (Migrated from github.com) reviewed 2026-02-02 15:18:17 +00:00
copilot-pull-request-reviewer[bot] (Migrated from github.com) left a comment

Pull request overview

This PR migrates from the Zen kernel to CachyOS kernel by integrating the chaotic-nyx flake input, which provides access to CachyOS packages and sched-ext schedulers for improved system performance.

Changes:

  • Added chaotic-nyx as a flake input to access CachyOS packages
  • Integrated chaotic's NixOS modules into the system configuration
  • Replaced linuxPackages_zen with linuxPackages_cachyos for the boot kernel
  • Enabled sched-ext (scx) schedulers which are optimized for CachyOS

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
flake.nix Adds chaotic-nyx flake input and imports its nixosModules for CachyOS support
configuration.nix Switches kernel to CachyOS and enables sched-ext schedulers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

## Pull request overview This PR migrates from the Zen kernel to CachyOS kernel by integrating the chaotic-nyx flake input, which provides access to CachyOS packages and sched-ext schedulers for improved system performance. **Changes:** - Added chaotic-nyx as a flake input to access CachyOS packages - Integrated chaotic's NixOS modules into the system configuration - Replaced `linuxPackages_zen` with `linuxPackages_cachyos` for the boot kernel - Enabled sched-ext (scx) schedulers which are optimized for CachyOS ### Reviewed changes Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments. | File | Description | | ---- | ----------- | | flake.nix | Adds chaotic-nyx flake input and imports its nixosModules for CachyOS support | | configuration.nix | Switches kernel to CachyOS and enables sched-ext schedulers | --- 💡 <a href="/ragusa-it/nixos/new/main/.github/instructions?filename=*.instructions.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add Copilot custom instructions</a> for smarter, more guided reviews. <a href="https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn how to get started</a>.
@@ -28,2 +28,4 @@
inputs.nixpkgs.follows = "nixpkgs";
};
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
copilot-pull-request-reviewer[bot] (Migrated from github.com) commented 2026-02-02 15:18:17 +00:00

The chaotic input is missing the inputs.nixpkgs.follows directive that is consistently used for all other flake inputs in this codebase (see lines 9, 14, 19, and 28). This can lead to multiple versions of nixpkgs being pulled in, increasing closure size and potentially causing version conflicts. Add inputs.nixpkgs.follows = "nixpkgs"; to maintain consistency with the existing pattern.

The chaotic input is missing the `inputs.nixpkgs.follows` directive that is consistently used for all other flake inputs in this codebase (see lines 9, 14, 19, and 28). This can lead to multiple versions of nixpkgs being pulled in, increasing closure size and potentially causing version conflicts. Add `inputs.nixpkgs.follows = "nixpkgs";` to maintain consistency with the existing pattern.
copilot-pull-request-reviewer[bot] (Migrated from github.com) commented 2026-02-02 15:18:17 +00:00

The new chaotic flake input pulls code from github:chaotic-cx/nyx/nyxpkgs-unstable using a mutable branch/tag reference, creating a supply-chain risk if that third-party repository is compromised or the branch is force-pushed. Because this input’s NixOS modules and packages will be evaluated and used in system builds, an attacker controlling that ref could silently inject malicious kernel or system code. To mitigate this, pin the input to an immutable commit SHA (or equivalent verified reference) and update it deliberately when you intend to trust new upstream changes.

The new `chaotic` flake input pulls code from `github:chaotic-cx/nyx/nyxpkgs-unstable` using a mutable branch/tag reference, creating a supply-chain risk if that third-party repository is compromised or the branch is force-pushed. Because this input’s NixOS modules and packages will be evaluated and used in system builds, an attacker controlling that ref could silently inject malicious kernel or system code. To mitigate this, pin the input to an immutable commit SHA (or equivalent verified reference) and update it deliberately when you intend to trust new upstream changes.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ragusa-it/nixos#7