about summary refs log tree commit diff
path: root/users/fcuny/desktop/sway/default.nix
blob: f765363b6aa86ff11af27a54d5be9ea28e0a90b4 (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
30
31
32
{ config, lib, pkgs, ... }:

{
  imports = [
    ./waybar.nix
    ./sway-idle.nix
    ./wofi.nix
  ];

  home.packages = [
    pkgs.pavucontrol
    pkgs.wofi
    pkgs.wl-clipboard
    pkgs.wf-recorder
  ];

  home.sessionVariables = {
    MOZ_ENABLE_WAYLAND = true;
    LIBSEAT_BACKEND = "logind";
  };

  wayland.windowManager.sway = {
    enable = true;
    systemdIntegration = true;
    config = rec {
      modifier = "Mod4";
      terminal = "${config.programs.alacritty.package}/bin/alacritty";
      menu = "${pkgs.wofi}/bin/wofi -S run";
      bars = [ ];
    };
  };
}