add overlayfrom

This commit is contained in:
Daylin Morgan 2024-07-25 10:00:34 -05:00
parent 4da9ef467c
commit 1996233a7f
Signed by: daylin
GPG key ID: 950D13E9719334AD
3 changed files with 13 additions and 9 deletions

View file

@ -5,14 +5,15 @@
}:
let
inherit (builtins) map;
inherit (lib) pkgFromSystem pkgsFromSystem;
inherit (lib) pkgFromSystem pkgsFromSystem overlayFrom;
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
inputs.lix-module.overlays.default
inputs.hyprland-contrib.overlays.default
inputs.nixpkgs-wayland.overlay
];
overlays = map [
"lix-module"
"hyprland-contrib"
"nixpkgs-wayland" ]
overlayFrom
;
};
pkgsFrom = pkgsFromSystem system;
pkgFrom = pkgFromSystem system;

View file

@ -75,6 +75,7 @@ let
# defaultPackageGeneric = system: flake: "${flake}.packages.${system}.default";
pkgsFromSystem = system: flake: inputs."${flake}".packages."${system}";
pkgFromSystem = system: flake: (pkgsFromSystem system flake).default;
overlayFrom = flake: inputs."${flake}".overlays.default;
in
{
inherit
@ -91,5 +92,6 @@ in
flakeVer
pkgsFromSystem
pkgFromSystem
overlayFrom
;
}

View file

@ -6,6 +6,7 @@
enabled,
pkgFrom,
pkgsFrom,
overlayFrom,
...
}:
@ -56,8 +57,8 @@ mkOizysModule config "hyprland" {
]);
nixpkgs.overlays = [
inputs.hyprland-contrib.overlays.default
# inputs.nixpkgs-wayland.overlay
# inputs.hyprland.overlays.default
(overlayFrom "hyprland-contrib")
# (overlayFrom "nixpkgs-wayland")
# (overlayFrom "hyprland")
];
}