From 03b49187a2e41f042896a26761ca86ce90cb7f2c Mon Sep 17 00:00:00 2001
From: Lulu <10565807+lulu-berlin@users.noreply.github.com>
Date: Fri, 6 Sep 2024 14:51:44 +0200
Subject: [PATCH] sway: indent sway configuration options

Fix the indentation for the configuration of `input`, `output` and
`seat` to match that of `mode`.
---
 modules/services/window-managers/i3-sway/sway.nix           | 2 +-
 .../modules/services/window-managers/sway/sway-modules.conf | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/services/window-managers/i3-sway/sway.nix b/modules/services/window-managers/i3-sway/sway.nix
index f4e43721..3acd6b17 100644
--- a/modules/services/window-managers/i3-sway/sway.nix
+++ b/modules/services/window-managers/i3-sway/sway.nix
@@ -249,7 +249,7 @@ let
   moduleStr = moduleType: name: attrs: ''
     ${moduleType} "${name}" {
     ${concatStringsSep "\n"
-    (mapAttrsToList (name: value: "${name} ${value}") attrs)}
+    (mapAttrsToList (name: value: "  ${name} ${value}") attrs)}
     }
   '';
   inputStr = moduleStr "input";
diff --git a/tests/modules/services/window-managers/sway/sway-modules.conf b/tests/modules/services/window-managers/sway/sway-modules.conf
index d0302d07..d36a164e 100644
--- a/tests/modules/services/window-managers/sway/sway-modules.conf
+++ b/tests/modules/services/window-managers/sway/sway-modules.conf
@@ -71,15 +71,15 @@ bindsym Mod1+v splitv
 bindsym Mod1+w layout tabbed
 
 input "*" {
-xkb_variant dvorak
+  xkb_variant dvorak
 }
 
 output "HDMI-A-2" {
-bg ~/path/to/background.png fill
+  bg ~/path/to/background.png fill
 }
 
 seat "*" {
-hide_cursor when-typing enable
+  hide_cursor when-typing enable
 }
 
 mode "resize" {