summaryrefslogtreecommitdiff
path: root/programs/hypr/hyprland.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-17 22:08:20 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-17 22:08:20 -0400
commit640476ab01c501bbaa5b7854b561201bfe40d2ea (patch)
tree1516ebdda1180a910c4a7ff2e870058a936297e1 /programs/hypr/hyprland.nix
parentadd formatter (diff)
downloaddotfiles-nix-640476ab01c501bbaa5b7854b561201bfe40d2ea.tar.gz
dotfiles-nix-640476ab01c501bbaa5b7854b561201bfe40d2ea.tar.bz2
dotfiles-nix-640476ab01c501bbaa5b7854b561201bfe40d2ea.zip
fmt
Diffstat (limited to 'programs/hypr/hyprland.nix')
-rw-r--r--programs/hypr/hyprland.nix38
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
-
}