Files
nixos-config/modules/user/config/hyprland.conf
T
kiskaadee 7245d8c22a feat(system): establish dual-host architecture and finalize environment integrations
This commit finalizes the multi-host deployment framework, introducing the laptop profile alongside the desktop. It integrates essential hardware services, declaratively binds the Hyprland compositor, and thoroughly documents the repository architecture.

- Initialize `hosts/laptop` profile configured for the Niri compositor, utilizing `lib.mkForce` to override default `greetd` logic.
- Declare `hyprland.conf` directly via Home Manager (`home.file`) to ensure reproducible compositor settings (blur, gaps, bindings).
- Enable Bluetooth daemon (`hardware.bluetooth`) and printing services (`cups-pk-helper`) system-wide.
- Configure default system typography with `inter` and `fira-code` via `fonts.fontconfig`.
- Enhance `tuigreet` login screen with session memory, password asterisks, and a custom declarative greeting.
- Add comprehensive inline documentation to all Nix modules and shell scripts, alongside a complete project `README.md`.
- Update the Home Manager declarations in flake.nix to include
  home-manager.backupFileExtension = "backup"

Rationale: Hardcoding the Hyprland configuration and core hardware services ensures the desktop is fully immutable. Branching the host profiles allows the laptop to share 100% of the user-space configurations (terminal, editor, shell aliases) while cleanly swapping the graphical compositor stack to Niri.
2026-06-19 01:53:42 -05:00

90 lines
2.7 KiB
Plaintext

# ❄️ Hyprland Compositor Configuration
# This file is managed declaratively via Home Manager.
# It defines compositor behavior, decoration properties (like background blur), and keybindings.
# --- Monitor Setup ---
# Automatically detect and configure display scale and resolution
monitor=,preferred,auto,auto
# --- General Properties ---
general {
gaps_in = 5
gaps_out = 10
border_size = 2
col.active_border = rgba(cdd6f4ee)
col.inactive_border = rgba(595959aa)
layout = dwindle
}
# --- Visual Styling & Decoration ---
decoration {
rounding = 10
# 🌪️ Background Blur Configuration
# Required to support DankMaterialShell translucent dynamic components and blur checks
blur {
enabled = true
size = 8
passes = 3
newOptimizations = true
ignore_opacity = true # Apply blur regardless of window transparency levels
}
}
# --- Compositor Layer Rules ---
# Forces background blur rendering underneath DankMaterialShell panels and menus
layerrule = blur, dms
layerrule = ignorezero, dms
layerrule = blur, dms-shell
layerrule = ignorezero, dms-shell
# --- Window Rules ---
# Sets default opacity to ensure the terminal window background displays blur nicely
windowrulev2 = opacity 0.95 0.95, class:^(Alacritty)$
# --- Key Bindings ---
$mainMod = SUPER
# Base Application Launchers
bind = $mainMod, Return, exec, alacritty
bind = $mainMod, Q, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, V, togglefloating,
bind = $mainMod, R, exec, wofi --show drun
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
# Workspace Navigation (Vim-style navigation)
bind = $mainMod, h, movefocus, l
bind = $mainMod, l, movefocus, r
bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d
# Switch Workspaces
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
# Move Window to Workspace
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
# Mouse Bindings (Move / Resize)
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow