diff --git a/home/config/sway/default.nix b/home/config/sway/default.nix index 5907de8..5476ee2 100644 --- a/home/config/sway/default.nix +++ b/home/config/sway/default.nix @@ -27,6 +27,6 @@ in { text = (util.trimTabs '' # Read `man 5 sway` for a complete reference. include /etc/sway/config.d/* - '') + swayRc; + '') + swayRc + config.module.desktop.sway.extraConfig or ""; } diff --git a/home/config/sway/module/Display.nix b/home/config/sway/module/Display.nix index c09d8e2..246020e 100644 --- a/home/config/sway/module/Display.nix +++ b/home/config/sway/module/Display.nix @@ -2,7 +2,7 @@ text = '' # You can get the names of your outputs by running: swaymsg -t get_outputs output * scale 1 - output "Huawei Technologies Co., Inc. ZQE-CBA 0xC080F622" pos 0,1080 output "ASUSTek COMPUTER INC ASUS VA24E R2LMTF127165" mode 1920x1080@74.986Hz transform 180 pos 780,0 + output "Huawei Technologies Co., Inc. ZQE-CBA 0xC080F622" pos 0,1080 ''; } diff --git a/host/x86_64-linux/desktop/default.nix b/host/x86_64-linux/desktop/default.nix index cda5f4c..f8c9945 100644 --- a/host/x86_64-linux/desktop/default.nix +++ b/host/x86_64-linux/desktop/default.nix @@ -12,7 +12,6 @@ module = { autoupdate.enable = true; builder.client.enable = true; - desktop.sway.enable = true; keyd.enable = true; print.enable = true; virtmanager.enable = true; @@ -24,6 +23,12 @@ powersave = true; }; }; + desktop.sway = { + enable = true; + extraConfig = '' + workspace 1 output "ASUSTek COMPUTER INC ASUS VA24E R2LMTF127165" + ''; + }; docker = { enable = true; autostart = false; diff --git a/module/Sway.nix b/module/Sway.nix index b395183..d625a5b 100644 --- a/module/Sway.nix +++ b/module/Sway.nix @@ -4,6 +4,10 @@ in { options = { module.desktop.sway = { enable = mkEnableOption "Use Sway WM."; + extraConfig = mkOption { + default = ""; + type = types.str; + }; }; };