chore(hyprland): Update

This commit is contained in:
Tibo De Peuter 2025-09-16 20:59:18 +02:00
parent 04b72edede
commit b7b0fa8ad3
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: { config, lib, pkgs, ... }:
let let
cfg = config.sisyphus.desktop.hyprland; cfg = config.sisyphus.desktop.hyprland;
@ -6,9 +6,49 @@ in {
options.sisyphus.desktop.hyprland.enable = lib.mkEnableOption "Hyprland"; options.sisyphus.desktop.hyprland.enable = lib.mkEnableOption "Hyprland";
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.hyprland = { environment = {
enable = true; sessionVariables = {
xwayland.enable = true; # Hint Electron apps to use wayland
NIXOS_OZONE_WL = "1";
SCRIPT_DIR = ../../../../scripts;
};
systemPackages = with pkgs; [
brightnessctl
dunst
libnotify
swaybg
waybar
waycorner
wlsunset
wl-clipboard # Copying to system clipboard in vim
glib
libva
dmenu
jq
j4-dmenu-desktop
rofi
];
};
programs = {
hyprland = {
enable = true;
xwayland.enable = true;
};
waybar.enable = true;
};
services = {
displayManager.ly.enable = true;
gnome.gnome-keyring.enable = true;
power-profiles-daemon.enable = true;
xserver.videoDrivers = [ "nvidia" ];
}; };
}; };
} }