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

69 lines
1.5 KiB
Nix

{ pkgs, depot, lib, config, ... }:
{
imports = [ ./client.nix ];
config = {
gtk = {
enable = true;
gtk3.extraConfig = {
gtk-application-prefer-dark-theme = 1;
};
};
qt = {
enable = true;
platformTheme = "gtk";
};
home.packages = lib.mkAfter (with pkgs; [
google-chrome-beta
firefox
mpv
dino
depot.nix.pkgs.lutris
pavucontrol
pngquant
rxvt-unicode
teamspeak_client
virt-manager
xclip
xss-lock
yubioath-desktop
depot.nix.pkgs.flameshot
_1password-gui
qFlipper
]);
programs.kitty = {
enable = true;
font = {
package = depot.pkgs.iosevka-bin;
name = "Iosevka";
};
extraConfig = ''
# BEGIN_KITTY_THEME
# Tango Dark
include ${depot.pkgs.kitty-themes}/themes/Tango_Dark.conf
# END_KITTY_THEME
'';
};
home.file."bin/screencap" = {
executable = true;
text = ''
#!/usr/bin/env bash
exec ${depot.nix.pkgs.flameshot}/bin/flameshot gui
'';
};
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
'';
};
}