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

34 lines
1 KiB
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; [
element-desktop
]);
2021-05-05 21:13:27 +00:00
xsession.windowManager.i3 = {
enable = true;
config = {
modifier = "Mod4";
keybindings = let
modifier = config.xsession.windowManager.i3.config.modifier;
in lib.mkOptionDefault {
"${modifier}+l" = "exec loginctl lock-session";
"${modifier}+p" = "exec ${depot.nix.pkgs.flameshot}/bin/flameshot gui";
2021-11-28 12:51:40 +00:00
"${modifier}+Return" = "exec ${pkgs.kitty}/bin/kitty";
2021-05-05 21:13:27 +00:00
};
startup = [
{ command = "xss-lock --transfer-sleep-lock -- i3lock --nofork"; notification = false; }
{ command = "${pkgs.networkmanagerapplet}/bin/nm-applet"; notification = false; }
2021-08-30 13:26:25 +00:00
{ command = "${pkgs._1password-gui}/bin/1password --silent"; notification = false; }
2021-05-05 21:13:27 +00:00
];
};
};
2021-05-06 02:56:20 +00:00
services.random-background = {
enable = true;
imageDirectory = "${depot.nix.pkgs.lukegb-wallpapers}";
interval = null;
};
2021-05-05 21:13:27 +00:00
}