blob: 0f1631eb808b28e9e8b6849ed36929a4eb6b9602 (
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
33
34
35
36
37
38
39
40
|
{ config, lib, pkgs, ... }:
{
imorts = [
./swayidle.nix
./wofi.nix
]
home.packages = with pkgs; [
pavucontrol
wofi
wl-clipboard
wf-recorder
];
home.sessionVariables = {
MOZ_ENABLE_WAYLAND = true;
LIBSEAT_BACKEND = "logind";
};
wayland.windowManager.sway = {
enable = true;
systemdIntegration = true;
wrapperFeatures.gtk = true;
config = rec {
modifier = "Mod4";
terminal = "${config.programs.alacritty.package}/bin/alacritty";
menu = "${pkgs.wofi}/bin/wofi -S run";
};
defaultWorkspace = "workspace number 1";
startup = [
# Initial lock
{ command = "${pkgs.swaylock-effects}/bin/swaylock"; }
# Start idle daemon
{ command = "${pkgs.swayidle}/bin/swayidle -w"; }
# Start waybar
{ command = "${pkgs.waybar}/bin/waybar"; }
];
};
}
|