Move hyprland config into home-manager desktop

This commit is contained in:
2023-02-08 19:37:33 +00:00
parent e7162873d1
commit a7e729c29f
5 changed files with 36 additions and 41 deletions

View File

@@ -47,30 +47,8 @@
./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;
@@ -79,6 +57,9 @@
inherit hostname;
inherit headless;
};
sharedModules = [
hyprland.homeManagerModules.default
];
};
}
];