Added overlay and overlays to flake.nix

This commit is contained in:
Narice 2022-05-14 16:36:05 +01:00
parent 694f4433a2
commit 7a5a10980d

View File

@ -9,9 +9,17 @@
}; };
outputs = { self, nixpkgs, utils, nixpkgs-wayland }: outputs = { self, nixpkgs, utils, nixpkgs-wayland }:
utils.lib.eachDefaultSystem (system: {
overlay = final: prev: {
hyprland = prev.callPackage self {
src = self;
inherit (nixpkgs-wayland.overlay.waylandPkgs) wlroots;
};
};
} // utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; let pkgs = nixpkgs.legacyPackages.${system};
in rec { in rec {
overlays = [ self.overlay ];
packages = { packages = {
hyprland = pkgs.callPackage self { hyprland = pkgs.callPackage self {
src = self; src = self;