about summary refs log tree commit diff
path: root/modules/workstation/windowing/sway/default.nix
blob: 23076c4750019a0ef76015c2128de9b7aa48e578 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
}