depot/ops/nixos/lib/home-manager/graphical-client-wayland.nix

33 lines
873 B
Nix
Raw Normal View History

2021-05-05 21:13:27 +00:00
{ 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"; }
];
};
};
}