From 250b0b71f9e683ddeeb052d9e69d1370e40a4205 Mon Sep 17 00:00:00 2001 From: alexion Date: Sun, 11 Oct 2026 16:24:48 -0400 Subject: [PATCH] feat(hyprland): migrate static Lua compositor settings --- .../desktop/session/hyprland/default.nix | 30 ++++++++++++++++++- configs/nixos/modules/host/default.nix | 1 - 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/configs/nixos/modules/desktop/session/hyprland/default.nix b/configs/nixos/modules/desktop/session/hyprland/default.nix index 2a82bb7..15a6717 100644 --- a/configs/nixos/modules/desktop/session/hyprland/default.nix +++ b/configs/nixos/modules/desktop/session/hyprland/default.nix @@ -33,7 +33,35 @@ configType = "lua"; settings = { - config.general.layout = "dwindle"; + config = { + input = { + kb_layout = config.services.xserver.xkb.layout; + repeat_delay = 250; + repeat_rate = 45; + accel_profile = "flat"; + touchpad = { + natural_scroll = true; + tap_to_click = true; + disable_while_typing = true; + }; + }; + + general = { + gaps_in = 4; + gaps_out = 8; + border_size = 2; + layout = "dwindle"; + }; + + decoration = { + rounding = 6; + blur.enabled = false; + }; + + xwayland.force_zero_scaling = true; + + dwindle.preserve_split = true; + }; bind = lib.mapAttrsToList (_name: keybind: { _args = [ diff --git a/configs/nixos/modules/host/default.nix b/configs/nixos/modules/host/default.nix index 8961f0d..8b3c1be 100644 --- a/configs/nixos/modules/host/default.nix +++ b/configs/nixos/modules/host/default.nix @@ -30,7 +30,6 @@ in modules.network.ssh.userKey.sopsFile = hostSecrets; services.xserver.xkb.layout = "us"; - services.xserver.xkb.options = "caps:escape_shifted_capslock"; console.useXkbConfig = true; sops.defaultSopsFile = ../../secrets/shared.yaml;