fix: fix hyprland on enigma

This commit is contained in:
Julien Malka 2024-07-10 23:36:06 +02:00
parent 1a904cc93c
commit 1e0e602bb7
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -1,4 +1,9 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}:
let
cfg = config.luj.programs.hyprland;
terminal = "${pkgs.kitty}/bin/kitty";
@ -10,8 +15,7 @@ with lib;
enable = mkEnableOption "Enable HyprLand";
};
config = mkIf cfg.enable
{
config = mkIf cfg.enable {
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.unstable.hyprland;
@ -25,7 +29,6 @@ with lib;
"$term" = terminal;
"$launcher" = menu;
general = {
gaps_in = "6";
gaps_out = "10";
@ -53,14 +56,12 @@ with lib;
"2,monitor:HDM1-A-1"
];
exec = [
"hyprpaper"
];
exec = [ "hyprpaper" ];
env = [
"LIBVA_DRIVER_NAME, nvidia"
"WLR_NO_HARDWARE_CURSORS, 1"
"WLR_DRM_DEVICES,/dev/dri/card0"
"WLR_DRM_DEVICES,/home/julien/.config/hypr/card"
];
monitor = [
@ -112,7 +113,6 @@ with lib;
];
};
};
@ -122,18 +122,18 @@ with lib;
wallpaper = ,${../../machines/x2100/wallpaper.jpg}
'';
services.swayidle = {
enable = true;
systemdTarget = "hyprland-session.target";
events = [
{ event = "before-sleep"; command = "${pkgs.swaylock-effects}/bin/swaylock --config /home/julien/.config/swaylock/config"; }
{
event = "before-sleep";
command = "${pkgs.swaylock-effects}/bin/swaylock --config /home/julien/.config/swaylock/config";
}
];
};
programs.swaylock =
{
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
settings = {
@ -160,12 +160,11 @@ with lib;
};
home.packages = with pkgs;
[ qt6.qtwayland libsForQt5.qt5.qtwayland hyprpaper ];
home.packages = with pkgs; [
qt6.qtwayland
libsForQt5.qt5.qtwayland
hyprpaper
];
};
}