dotfiles/nixos/home-manager.nix

82 lines
2.0 KiB
Nix
Raw Normal View History

2024-08-11 17:54:49 -06:00
{ pkgs, ... }:
{
2021-07-13 03:37:03 -06:00
xsession = {
2021-07-13 10:47:09 -06:00
enable = true;
2021-07-13 03:37:03 -06:00
preferStatusNotifierItems = true;
importedVariables = [ "GDK_PIXBUF_ICON_LOADER" ];
2021-07-13 03:37:03 -06:00
};
2021-07-13 10:47:09 -06:00
home.keyboard = null;
2021-07-13 03:37:03 -06:00
home.emptyActivationPath = false;
programs.home-manager.enable = true;
programs.ssh = {
forwardAgent = true;
};
services.gpg-agent = {
enable = true;
defaultCacheTtl = 8 * 60 * 60;
maxCacheTtl = 8 * 60 * 60;
enableSshSupport = true;
extraConfig = ''
allow-emacs-pinentry
allow-loopback-pinentry
'';
2021-07-13 03:37:03 -06:00
};
systemd.user.services.setxkbmap = {
Unit = {
Description = "Set up keyboard in X";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Service = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "/usr/bin/env load_xkb_map";
};
};
gtk = {
enable = true;
iconTheme = {
package = pkgs.numix-icon-theme-circle;
name = "Numix-Circle";
};
font = {
package = pkgs.noto-fonts-emoji;
name = "Noto Sans";
size = 10;
};
gtk3.extraConfig = {
gtk-application-prefer-dark-theme = true;
gtk-button-images = 1;
gtk-cursor-theme-name = "breeze_cursors";
gtk-cursor-theme-size = 24;
gtk-decoration-layout = "icon:minimize,maximize,close";
gtk-enable-animations = true;
gtk-enable-event-sounds = 1;
gtk-enable-input-feedback-sounds = 1;
gtk-fallback-icon-theme = "gnome";
gtk-key-theme-name = "Emacs";
gtk-menu-images = 1;
gtk-modules = "colorreload-gtk-module";
gtk-primary-button-warps-slider = false;
gtk-theme-name = "Arc";
gtk-toolbar-icon-size = "GTK_ICON_SIZE_LARGE_TOOLBAR";
gtk-toolbar-style = "GTK_TOOLBAR_BOTH_HORIZ";
gtk-xft-antialias = 1;
gtk-xft-dpi = 98304;
gtk-xft-hinting = 1;
gtk-xft-hintstyle = "hintslight";
gtk-xft-rgba = "rgb";
};
};
2021-07-13 03:37:03 -06:00
}