aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-25 11:50:05 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-25 11:50:05 +0530
commit892b62a3129a6ae30fa6b039e3f88d370d418319 (patch)
tree5a25ed4be60fd2a29548ec1ed65c9b831d2ef4b2 /modules/desktop/default.nix
parent6621b1998e6f02772adb2df2fc19343691b086cf (diff)
downloadhome-manager-config-892b62a3129a6ae30fa6b039e3f88d370d418319.tar.gz
home-manager-config-892b62a3129a6ae30fa6b039e3f88d370d418319.zip
feat(hyprland): migrate config to Lua, fix API calls, switch to hyprpaper
- Set configType = "lua" for Hyprland 0.55+ Lua config format - Rewrite window rules to use hl.window_rule({...}) table API - Convert keybindings to hl.bind() with _args + mkLuaInline - Fix dispatchers: hl.dsp.focus (not window.focus), hl.dsp.focus({workspace=}) (not workspace.switch) - Replace swaybg with services.hyprpaper module for wallpaper - Fix border colors to use base07 (white) / base03 (grey) with rgba() format - Reduce default font size from 16 to 12
Diffstat (limited to 'modules/desktop/default.nix')
-rw-r--r--modules/desktop/default.nix18
1 files changed, 2 insertions, 16 deletions
diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix
index eb2eea6..a2fdfc8 100644
--- a/modules/desktop/default.nix
+++ b/modules/desktop/default.nix
@@ -1,4 +1,4 @@
-# Desktop - Desktop environment configuration (i3, GTK, polybar)
+# Desktop - Desktop environment configuration (i3/Hyprland, GTK, polybar)
{
lib,
config,
@@ -6,10 +6,10 @@
}:
{
imports = [
- ./i3
./gtk
./polybar
./xdg
+ ./hyprland
];
options.desktop = {
@@ -18,19 +18,5 @@
config = lib.mkIf config.desktop.enable {
xdg.enable = true;
- xsession.enable = true;
-
- home.file.".xinitrc" = {
- text = ''
- #!/usr/bin/env sh
-
- [ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
- [ -f ~/.profile ] && . ~/.profile
- [ -f ~/.xsession ] && . ~/.xsession
-
- exec ${config.xsession.windowManager.i3.package}/bin/i3
- '';
- executable = true;
- };
};
}