Add hyprland
This commit is contained in:
25
flake.nix
25
flake.nix
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user