diff options
Diffstat (limited to 'modules/workstation/windowing/sway/default.nix')
-rw-r--r-- | modules/workstation/windowing/sway/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/workstation/windowing/sway/default.nix b/modules/workstation/windowing/sway/default.nix new file mode 100644 index 000000000000..23076c475001 --- /dev/null +++ b/modules/workstation/windowing/sway/default.nix @@ -0,0 +1,29 @@ +{ pkgs, ... }: + +let + config = pkgs.substituteAll { + src = ./config.in; + inherit status_command choose_workspace; + }; + + status_command = pkgs.substituteAll { + src = ./status_command.in; + isExecutable = true; + inherit (pkgs) execline; + }; + + choose_workspace = pkgs.substituteAll { + src = ./choose_workspace.in; + isExecutable = true; + inherit (pkgs) execline jq; + }; + +in + +{ + environment.systemPackages = with pkgs; [ choose ]; + + programs.sway.enable = true; + + xdg.config.users.qyliss.paths."sway/config" = config; +} |