2020-10-25 12:00:15 +00:00
|
|
|
{ pkgs, lib, config, ... }:
|
2020-10-25 11:36:16 +00:00
|
|
|
{
|
|
|
|
imports = [ ./client.nix ];
|
|
|
|
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
gtk3.extraConfig = {
|
|
|
|
gtk-application-prefer-dark-theme = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
platformTheme = "gtk";
|
|
|
|
};
|
2020-10-25 12:00:15 +00:00
|
|
|
|
|
|
|
home.packages = lib.mkAfter (with pkgs; [
|
2020-11-15 21:29:15 +00:00
|
|
|
(chromium.override { enableVaapi = true; })
|
2020-11-17 02:10:23 +00:00
|
|
|
firefox
|
|
|
|
mpv
|
2020-10-25 12:00:15 +00:00
|
|
|
dino
|
|
|
|
lutris
|
|
|
|
pavucontrol
|
|
|
|
pngquant
|
|
|
|
rxvt_unicode
|
|
|
|
teamspeak_client
|
|
|
|
virtmanager
|
|
|
|
xclip
|
|
|
|
xss-lock
|
|
|
|
yubioath-desktop
|
|
|
|
]);
|
|
|
|
|
|
|
|
home.file."bin/screencap" = {
|
|
|
|
executable = true;
|
|
|
|
text = ''
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
import png:/dev/stdout | pngquant - | xclip -t image/png -selection clipboard -in
|
|
|
|
'';
|
|
|
|
};
|
2020-11-08 15:49:12 +00:00
|
|
|
home.file.".xprofile".text = ''
|
|
|
|
. "${config.home.profileDirectory}/etc/profile.d/hm-session-vars.sh"
|
|
|
|
|
|
|
|
if [ -e "$HOME/.profile" ]; then
|
|
|
|
. "$HOME/.profile"
|
|
|
|
fi
|
|
|
|
|
|
|
|
systemctl --user import-environment DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY XDG_DATA_DIRS XDG_RUNTIME_DIR XDG_SESSION_ID
|
|
|
|
systemctl --user restart ssh-agent
|
|
|
|
'';
|
2020-10-25 12:00:15 +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 screencap";
|
|
|
|
};
|
|
|
|
startup = [
|
|
|
|
{ command = "xss-lock --transfer-sleep-lock -- i3lock --nofork"; notification = false; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2020-10-25 11:36:16 +00:00
|
|
|
}
|