dotfiles/nixos/home-manager.nix

47 lines
1016 B
Nix
Raw Normal View History

{ pkgs, config, specialArgs, ... }:
{
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;
};
programs.gpg.package = pkgs.gnupg_2_4_0;
2021-07-13 03:37:03 -06:00
services.gpg-agent = {
enable = true;
defaultCacheTtl = 8 * 60 * 60;
maxCacheTtl = 8 * 60 * 60;
enableSshSupport = true;
pinentryFlavor = "qt";
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";
};
};
2021-07-13 03:37:03 -06:00
}