tvl-depot/home/modules/development.nix
2020-05-26 11:28:42 -04:00

99 lines
1.8 KiB
Nix

{ config, lib, pkgs, ... }:
let
clj2nix = pkgs.callPackage (pkgs.fetchFromGitHub {
owner = "hlolli";
repo = "clj2nix";
rev = "3ab3480a25e850b35d1f532a5e4e7b3202232383";
sha256 = "1lry026mlpxp1j563qs13nhxf37i2zpl7lh0lgfdwc44afybqka6";
}) {};
in
with lib;
{
imports = [
./development/kube.nix
./development/urbint.nix
];
home.packages = with pkgs; [
jq
yq
gitAndTools.hub
gitAndTools.tig
shellcheck
httpie
entr
gnumake
inetutils
clj2nix
haskellPackages.Agda
AgdaStdlib
(import ../pkgs/clang-tools { inherit pkgs; })
] ++ optional (stdenv.isLinux) julia;
programs.git = {
enable = true;
package = pkgs.gitFull;
userEmail = "root@gws.fyi";
userName = "Griffin Smith";
ignores = [
"*.sw*"
".classpath"
".project"
".settings/"
".dir-locals.el"
".stack-work-profiling"
".projectile"
];
extraConfig = {
github.user = "glittershark";
merge.conflictstyle = "diff3";
};
delta = {
enable = true;
options = [
"--theme 'Solarized (light)'"
"--hunk-style" "plain"
"--commit-style" "box"
];
};
};
home.file.".psqlrc".text = ''
\set QUIET 1
\timing
\set ON_ERROR_ROLLBACK interactive
\set VERBOSITY verbose
\x auto
\set PROMPT1 '%[%033[1m%]%M/%/%R%[%033[0m%]%# '
\set PROMPT2 '...%# '
\set HISTFILE ~/.psql_history- :DBNAME
\set HISTCONTROL ignoredups
\pset null [null]
\unset QUIET
'';
programs.readline = {
enable = true;
extraConfig = ''
set editing-mode vi
'';
};
programs.zsh.shellAliases = {
# Haskell
"cnb" = "cabal new-build";
"cob" = "cabal old-build";
"cnr" = "cabal new-run";
"cor" = "cabal old-run";
"ho" = "hoogle";
};
}