Move hyprland config into home-manager desktop
This commit is contained in:
28
users/daniel/configs/desktop/hyprland/default.nix
Normal file
28
users/daniel/configs/desktop/hyprland/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = pkgs.hyprland.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;
|
||||
extraConfig = builtins.readFile ./hyprland.conf;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user