33 lines
873 B
Nix
33 lines
873 B
Nix
|
{ pkgs, depot, lib, config, ... }:
|
||
|
{
|
||
|
imports = [ ./graphical-client.nix ];
|
||
|
|
||
|
home.packages = lib.mkAfter (with pkgs; [
|
||
|
swaylock
|
||
|
swayidle
|
||
|
wl-clipboard
|
||
|
waybar
|
||
|
mako
|
||
|
kanshi
|
||
|
]);
|
||
|
|
||
|
wayland.windowManager.sway = {
|
||
|
enable = true;
|
||
|
wrapperFeatures.gtk = true;
|
||
|
config = {
|
||
|
modifier = "Mod4";
|
||
|
keybindings = let
|
||
|
modifier = config.wayland.windowManager.sway.config.modifier;
|
||
|
in lib.mkOptionDefault {
|
||
|
"${modifier}+l" = "exec loginctl lock-session";
|
||
|
"${modifier}+p" = "exec ${depot.nix.pkgs.flameshot}/bin/flameshot gui";
|
||
|
"${modifier}+Return" = "exec ${pkgs.alacritty}/bin/alacritty";
|
||
|
};
|
||
|
startup = [
|
||
|
{ command = "xss-lock --transfer-sleep-lock -- ${pkgs.swaylock}/bin/swaylock"; }
|
||
|
{ command = "${pkgs.gnome3.networkmanagerapplet}/bin/nm-applet"; }
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|