diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-25 03:24:00 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-29 03:50:29 +0530 |
| commit | 99d411b9d83bfb28fa8bf8dd166f943b61a6e6f4 (patch) | |
| tree | 7825c88991f7cce92ab92193207be408a0fa0758 /modules/desktop/niri/default.nix | |
| parent | 9dd2ceba50b3f617f9c563fd04134ebd90a2b85c (diff) | |
| download | home-manager-config-99d411b9d83bfb28fa8bf8dd166f943b61a6e6f4.tar.gz home-manager-config-99d411b9d83bfb28fa8bf8dd166f943b61a6e6f4.zip | |
desktop: using niri home-manager config options
- using the settings for niri provided by home-manager for
configuration, instead of writing raw text configuration
- preventing chromium from using the gnome keyring for password
encryption
Diffstat (limited to 'modules/desktop/niri/default.nix')
| -rw-r--r-- | modules/desktop/niri/default.nix | 97 |
1 files changed, 47 insertions, 50 deletions
diff --git a/modules/desktop/niri/default.nix b/modules/desktop/niri/default.nix index 48c508c..bfa361f 100644 --- a/modules/desktop/niri/default.nix +++ b/modules/desktop/niri/default.nix @@ -44,6 +44,7 @@ portalPackage = pkgs.xdg-desktop-portal-gnome; }; + # For setting the desktop wallpaper home.packages = [ pkgs.swaybg ]; home.pointerCursor = { @@ -55,56 +56,52 @@ x11.enable = true; }; - wayland.windowManager.niri.extraConfigEarly = '' - input { - keyboard { - xkb { - layout "us" - } - } - touchpad { - natural-scroll - tap - dwt - click-method "clickfinger" - accel-speed 0.5 - } - } - - layout { - gaps 5 - center-focused-column "on-overflow" - default-column-width { proportion 1.0; } - preset-column-widths { - proportion 0.5 - proportion 1.0 - } - focus-ring { - width 1 - active-color "${config.scheme.withHashtag.base07}" - inactive-color "${config.scheme.withHashtag.base03}" - } - border { off; } - shadow { off; } - } + wayland.windowManager.niri.settings = { + input = { + keyboard.xkb.layout = "us"; + touchpad = { + natural-scroll = { }; + tap = { }; + dwt = { }; + click-method = "clickfinger"; + accel-speed = 0.5; + }; + }; + layout = { + gaps = 5; + center-focused-column = "on-overflow"; + default-column-width = { + proportion = 1.0; + }; + focus-ring = { + width = 1; + active-color = config.scheme.withHashtag.base07; + inactive-color = config.scheme.withHashtag.base03; + }; + border.off = { }; + shadow.off = { }; + }; + prefer-no-csd = true; + screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"; + animations.on = { }; + spawn-at-startup = [ + "${lib.getExe pkgs.swaybg}" + "-i" + "${../../../assets/sapling.png}" + "-m" + "fill" + ]; - prefer-no-csd - screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" - animations { off; } - - spawn-at-startup "${lib.getExe pkgs.swaybg}" "-i" "${../../../assets/sapling.png}" "-m" "fill" - - // Keep the familiar numbered workspaces persistent; Niri otherwise uses dynamic workspaces. - workspace "1" - workspace "2" - workspace "3" - workspace "4" - workspace "5" - workspace "6" - workspace "7" - workspace "8" - workspace "9" - workspace "10" - ''; + # only create upto workspace 9, niri creates a trailing workspace + "workspace \"1\"" = { }; + "workspace \"2\"" = { }; + "workspace \"3\"" = { }; + "workspace \"4\"" = { }; + "workspace \"5\"" = { }; + "workspace \"6\"" = { }; + "workspace \"7\"" = { }; + "workspace \"8\"" = { }; + "workspace \"9\"" = { }; + }; }; } |
