Refactor mkFlake overlay wiring and remove legacy overlays/default.nix #94

Merged
Ghost merged 1 commit from refs/pull/94/head into mkFlake 2026-03-10 12:12:51 +10:00
Ghost commented 2026-03-10 12:05:49 +10:00 (Migrated from codeberg.org)

This updates the flake overlay setup to match the mkFlake-based layout and the split overlay pattern (overlays/external.nix + overlays/patches.nix). Overlays are now sourced directly from overlays/*.nix without a compatibility default.nix.

  • Overlay loading moved to direct file imports in flake.nix

    • Changed overlay mapping to import each overlay file with flake inputs:
    overlays = modules.mapModules ./overlays (path: import path inputs);
    
    • This allows overlay files to consume flake inputs explicitly and keeps overlay discovery centralized in flake.nix.
  • overlays/external.nix converted to a real overlay function

    • Replaced placeholder attrset with an overlay function signature (final: prev:).
    • Composes external overlays from flake inputs in one place:
      • sentinel.overlays.default
      • hyprland.overlays.default
      • cachyos.overlays.pinned
      • gaming-edge.overlays.default
      • quickshell.overlays.default
      • hyprpwcenter.overlays.default
  • Removed legacy compatibility file

    • Deleted overlays/default.nix.
    • Overlay behavior now comes exclusively from overlays/*.nix imported by flake.nix.

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

This updates the flake overlay setup to match the `mkFlake`-based layout and the split overlay pattern (`overlays/external.nix` + `overlays/patches.nix`). Overlays are now sourced directly from `overlays/*.nix` without a compatibility `default.nix`. - **Overlay loading moved to direct file imports in `flake.nix`** - Changed overlay mapping to import each overlay file with flake inputs: ```nix overlays = modules.mapModules ./overlays (path: import path inputs); ``` - This allows overlay files to consume flake inputs explicitly and keeps overlay discovery centralized in `flake.nix`. - **`overlays/external.nix` converted to a real overlay function** - Replaced placeholder attrset with an overlay function signature (`final: prev:`). - Composes external overlays from flake inputs in one place: - `sentinel.overlays.default` - `hyprland.overlays.default` - `cachyos.overlays.pinned` - `gaming-edge.overlays.default` - `quickshell.overlays.default` - `hyprpwcenter.overlays.default` - **Removed legacy compatibility file** - Deleted `overlays/default.nix`. - Overlay behavior now comes exclusively from `overlays/*.nix` imported by `flake.nix`. <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kruziikrel13/NixOS!94
No description provided.