dotfiles/overlays/default.nix
Christopher Mühl 5d68a3edb9
Add pytr overlay
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 23:10:31 +01:00

37 lines
812 B
Nix

{
lib,
inputs,
...
}: let
inherit (lib.attrsets) mapAttrs;
# wrapper that provides channels arg to each overlay
withChannels = overlayFn: final: prev: let
# Import channels with the same config as the main nixpkgs
importChannel = input:
import input {
system = final.stdenv.hostPlatform.system;
config = final.config;
};
in
overlayFn {
inherit inputs lib;
channels =
{
nixpkgs = final;
}
// mapAttrs (
_: input:
importChannel input
)
inputs;
}
final
prev;
in [
(withChannels (import ./lix.nix))
(withChannels (import ./packages.nix))
(withChannels (import ./unstable.nix))
(withChannels (import ./spacedrive.nix))
(withChannels (import ./pytr.nix))
]