feat: use hyprland from flake

This commit is contained in:
2024-01-06 12:41:46 +01:00
parent da5c1d4250
commit b7ad85b679
2 changed files with 172 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
url = "github:Kirottu/anyrun";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/hyprland";
};
outputs = {
@@ -22,6 +23,7 @@
ags,
nixvim,
anyrun,
hyprland,
...
} @ inputs: let
inherit (nixpkgs.lib) genAttrs listToAttrs;
@@ -34,9 +36,15 @@
allowUnsupportedSystem = true;
experimental-features = "nix-command flakes";
};
nix.settings = {
substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
};
overlays = [
(final: prev: {
anyrunPlugins = anyrun.packages.${prev.system};
hyprland = hyprland.packages.${prev.system}.hyprland;
xdg-desktop-portal-hyprland = hyprland.packages.${prev.system}.xdg-desktop-portal-hyprland;
})
];
});