mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 15:43:55 -05:00
37 lines
746 B
Nix
37 lines
746 B
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.ar.desktop.hyprland.enable {
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
}
|