From a70d788923061a00a488f60a01768ca4c6a8b727 Mon Sep 17 00:00:00 2001 From: derrik <82898438+derrik-fleming@users.noreply.github.com> Date: Thu, 13 Feb 2025 09:24:38 -0500 Subject: [PATCH] aerospace: fix workspace assignment config (#6442) with the default to `{}`, this table is always set in the generated config. this change allows `null` for `workspace-to-monitor-force-assignment` and sets the default to `null` Co-authored-by: derrik.fleming --- modules/programs/aerospace.nix | 5 +++-- tests/modules/programs/aerospace/settings-expected.toml | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/programs/aerospace.nix b/modules/programs/aerospace.nix index 10bb75e3d..62f33752f 100644 --- a/modules/programs/aerospace.nix +++ b/modules/programs/aerospace.nix @@ -154,8 +154,9 @@ in { "Commands to run every time a new window is detected with optional conditions."; }; workspace-to-monitor-force-assignment = mkOption { - type = with types; attrsOf (oneOf [ int str (listOf str) ]); - default = { }; + type = with types; + nullOr (attrsOf (oneOf [ int str (listOf str) ])); + default = null; description = '' Map workspaces to specific monitors. Left-hand side is the workspace name, and right-hand side is the monitor pattern. diff --git a/tests/modules/programs/aerospace/settings-expected.toml b/tests/modules/programs/aerospace/settings-expected.toml index d38cba45e..b46ebad41 100644 --- a/tests/modules/programs/aerospace/settings-expected.toml +++ b/tests/modules/programs/aerospace/settings-expected.toml @@ -25,5 +25,3 @@ alt-h = "focus left" alt-j = "focus down" alt-k = "focus up" alt-l = "focus right" - -[workspace-to-monitor-force-assignment]