home.nix
author Tomas Zeman <tomas@functionals.cz>
Wed, 27 May 2020 08:42:01 +0200
changeset 1 4a1d6dba7fe5
parent 0 0bfc10663494
child 4 956d340b23d8
permissions -rw-r--r--
idea launcher

{ config, pkgs, ... }:

let

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

in

{
  imports = [
    ./idea.nix
  ];

  home.packages = [
    my-nur.guilt
    pkgs.nix-direnv
  ];

  programs.bash = {
    enable = 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="~/bin/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