about summary refs log tree commit diff
path: root/modules/programs/sway/default.nix
blob: afb32042b3ffa3780b808af324f47e69cccbc702 (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
{ pkgs, config, lib, ... }:
let cfg = config.my.programs.sway;
in
{
  options.my.programs.sway = with lib; {
    enable = mkEnableOption "sway configuration";
  };

  config = lib.mkIf cfg.enable {
    programs.sway = {
      enable = true;
      wrapperFeatures.gtk = true;
      extraPackages = with pkgs; [
        brightnessctl
        polkit_gnome
        xsettingsd
        swaylock
        swayidle
        wl-clipboard
      ];
      extraSessionCommands = ''
        export MOZ_ENABLE_WAYLAND=1
      '';
    };
  };
}