refactor(nix/hypr): use hyprland from upstream
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 47s

This commit is contained in:
Price Hiller 2024-11-10 16:08:53 -06:00
parent c671f70423
commit 420147c5ca
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
3 changed files with 16 additions and 11 deletions

View File

@ -18,6 +18,7 @@
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
wezterm.url = "github:wez/wezterm?dir=nix";
agenix = {
url = "github:yaxitech/ragenix";

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ inputs, pkgs, ... }:
{
# Allow Chromium & Electron apps run natively in wayland
environment.sessionVariables.NIXOS_OZONE_WL = "1";
@ -16,12 +16,13 @@
};
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
xdg = {
autostart.enable = true;
portal.enable = true;
# set the flake package
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
# make sure to also set the portal package, so that they are in sync
portalPackage =
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
};
xdg.autostart.enable = true;
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
@ -32,4 +33,4 @@
};
services.qemuGuest.enable = true;
services.spice-vdagentd.enable = true;
}
}

View File

@ -8,10 +8,13 @@ decoration {
new_optimizations = true
}
drop_shadow = true
shadow_ignore_window = true
shadow_range = 4
shadow_render_power = 2
shadow {
enabled = true
range = 4
ignore_window = true
render_power = 2
}
dim_special = 0.05
}