diff -r 000000000000 -r 0bfc10663494 home.nix --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/home.nix Wed May 20 22:17:53 2020 +0200 @@ -0,0 +1,70 @@ +{ config, pkgs, ... }: + +let + + my-nur = import /repos/NixOS/nur-packages { + inherit pkgs; + }; + +in + +{ + home.file."bin/idea" = { + text = '' + #!${pkgs.bash}/bin/bash + export JAVA_HOME=${pkgs.jetbrains.jdk} + exec /opt/idea-IC-201.7223.91/bin/idea.sh + ''; + executable = true; + }; + + 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