Add hyprland

This commit is contained in:
2023-02-07 22:39:09 +00:00
parent 3291b955fd
commit e7162873d1
6 changed files with 304 additions and 3 deletions

View File

@@ -12,6 +12,8 @@
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
hyprland.url = "github:hyprwm/Hyprland";
};
outputs = {
@@ -19,6 +21,7 @@
agenix,
home-manager,
i3utils,
hyprland,
...
}: let
system = "x86_64-linux";
@@ -44,8 +47,30 @@
./hosts/${hostname}/configuration.nix
agenix.nixosModules.default
hyprland.nixosModules.default
{programs.hyprland = {
enable = true;
package = hyprland.packages.${system}.default.overrideAttrs (finalAttrs: previousAttrs: {
buildInputs = previousAttrs.buildInputs ++ [pkgs.makeWrapper];
postInstall = ''
ls -lar $out
wrapProgram $out/bin/Hyprland \
--set LIBVA_DRIVER_NAME nvidia \
--set XDG_SESSION_TYPE wayland \
--set GBM_BACKEND nvidia-drm \
--set __GLX_VENDOR_LIBRARY_NAME nvidia \
--set WLR_NO_HARDWARE_CURSORS 1
'';
});
xwayland = {
enable = true;
hidpi = true;
};
nvidiaPatches = true;
};}
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;