home.nix
author Tomas Zeman <tomas@functionals.cz>
Fri, 26 Jun 2020 12:01:11 +0200
changeset 13 21b163f36071
parent 12 691c18d04343
child 14 30c184da8c38
permissions -rw-r--r--
quilt pkg

{ config, pkgs, ... }:

let

  my-nur = import /repos/NixOS/nur-packages {
    inherit pkgs;
  };

in

{
  imports = [
    ./idea.nix
    ./mailcap.nix
    ./sbt.nix
    ./scripts.nix
    ./ssh.nix
    ./priv
  ];

  home.packages = [
    my-nur.guilt
    my-nur.hgeditor
    pkgs.fossil
    pkgs.nix-direnv
    pkgs.quilt
    pkgs.xorg.xwd     # X dump/screenshot
    pkgs.netpbm       # pnmtops
    pkgs.ghostscript
  ];

  programs.bash = {
    enable = true;
    enableAutojump = true;
    initExtra = ''
      export LC_CTYPE=cs_CZ.UTF-8
      unset LC_ALL
      eval `dircolors $HOME/.dir_colors`
      eval `keychain --eval --agents ssh,gpg`
      PS1='[\u@\h \W \D{%F %T}]\n\$ '
    '';
    sessionVariables = {
      HGEDITOR="hgeditor";
    };
  };

  # Let Home Manager install and manage itself.
  programs.home-manager.enable = true;

  programs.direnv = {
    enable = true;
    enableBashIntegration = true;
    stdlib = ''
      if [ -f ~/.nix-profile/share/nix-direnv/direnvrc ]; then
        source ~/.nix-profile/share/nix-direnv/direnvrc
      fi
    '';
  };

  services.gpg-agent = {
    enable = true;
    pinentryFlavor = "gtk2";
    verbose = true;
  };

  # This value determines the Home Manager release that your
  # configuration is compatible with. This helps avoid breakage
  # when a new Home Manager release introduces backwards
  # incompatible changes.
  #
  # You can update Home Manager without changing this value. See
  # the Home Manager release notes for a list of state version
  # changes in each release.
  home.stateVersion = "20.03";
}

# vim: ts=2 sw=2 et