diff options
Diffstat (limited to 'programs/hypr/hyprland.nix')
-rw-r--r-- | programs/hypr/hyprland.nix | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/programs/hypr/hyprland.nix b/programs/hypr/hyprland.nix index 9631674..d70a587 100644 --- a/programs/hypr/hyprland.nix +++ b/programs/hypr/hyprland.nix @@ -1,7 +1,10 @@ -{ config, pkgs, lib, inputs, ... }: - -let - +{ + config, + pkgs, + lib, + inputs, + ... +}: let system = pkgs.stdenv.hostPlatform.system; hyprland = inputs.hyprland.packages.${system}; hyprland-plugins = inputs.hyprland-plugins.packages.${system}; @@ -13,14 +16,17 @@ let inactive = "rgb(${config.theme.colors.surface.bg})"; debug = false; - -in - -{ +in { environment = { variables = { - HYPRLAND_TRACE = if debug then "1" else "0"; - AQ_TRACE = if debug then "1" else "0"; + HYPRLAND_TRACE = + if debug + then "1" + else "0"; + AQ_TRACE = + if debug + then "1" + else "0"; XDG_CURRENT_DESKTOP = "Hyprland"; XDG_SESSION_TYPE = "wayland"; @@ -57,7 +63,6 @@ in home-manager.users.${config.user} = { wayland.windowManager.hyprland = { - enable = true; package = hyprland.hyprland; @@ -72,16 +77,17 @@ in # Config settings = { - # Debug debug.disable_logs = ! debug; debug.disable_time = ! debug; debug.enable_stdout_logs = debug; # Monitors - monitor = map (monitor: - "${monitor.name}, highres, auto, ${toString monitor.scale}" - ) config.monitors; + monitor = + map ( + monitor: "${monitor.name}, highres, auto, ${toString monitor.scale}" + ) + config.monitors; # Autostart exec-once = config.autoRun; @@ -325,8 +331,6 @@ in vrr = 1; }; }; # end settings - }; # end hyprland }; # end home-manager - } |