summaryrefslogtreecommitdiff
path: root/modules/home-manager/personal/environment.nix
blob: c97faffb498f31ee9768b887d3b92b2d4701aeb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ config, lib, pkgs, ... }:

{
  home.packages = with pkgs; [ coreutils moreutils ];
  personal.home.wallpaper =
    lib.mkDefault pkgs.personal.static.wallpapers.nga-1973-68-1;

  programs.bash = { enable = lib.mkDefault true; };

  home = {
    shellAliases = {
      amimullvad = "curl -Ls https://am.i.mullvad.net/connected";
      rm = "rm -f";
      ssh = "TERM=xterm-256color ssh";
      edit = "$EDITOR";
    };
    sessionVariables = { CDPATH = "~"; };
  };

  services.gpg-agent = {
    enableBashIntegration = lib.mkDefault config.programs.bash.enable;
    pinentryFlavor = lib.mkDefault (if config.personal.gui.enable then
      "qt"
    else
      "tty");
    grabKeyboardAndMouse =
      lib.mkDefault false; # insecure, but necessary with keepass auto-type
  };
}