nixcfg/nixosModules/desktop/hyprland/default.nix

37 lines
746 B
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
config,
inputs,
lib,
pkgs,
2024-04-07 22:16:33 -04:00
...
}: {
config = lib.mkIf config.ar.desktop.hyprland.enable {
2024-07-07 19:17:35 -04:00
nix.settings = {
auto-optimise-store = false;
substituters = [
"https://hyprland.cachix.org"
"https://cache.nixos.org/"
];
trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
];
};
nixpkgs.overlays = [
(final: prev: {
hyprland = inputs.hyprland.packages.${pkgs.system}.hyprland;
xdg-desktop-portal-hyprland = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
})
];
programs = {
hyprland = {
enable = true;
package = pkgs.hyprland;
};
};
};
2024-03-28 16:40:23 -04:00
}