2018-05-26 20:48:33 +00:00
|
|
|
{ pkgs, config, ... }:
|
2018-04-27 21:48:56 +00:00
|
|
|
let
|
|
|
|
rust-scripts = with pkgs; callPackage ../packages/rust-scripts {};
|
2018-05-26 20:48:33 +00:00
|
|
|
unstable-pkgs = import <unstable> {};
|
|
|
|
eventd = unstable-pkgs.callPackage ../packages/eventd {};
|
|
|
|
st = import graphical/st;
|
2018-04-27 21:48:56 +00:00
|
|
|
in {
|
2018-05-26 20:48:33 +00:00
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
eventd = eventd;
|
|
|
|
st = st pkgs config.common.colors;
|
|
|
|
};
|
|
|
|
home.file.".tmux.conf".text = ''
|
|
|
|
set -g default-terminal "st-256color"
|
|
|
|
set -ga terminal-overrides ",st-256color:Tc"
|
|
|
|
set -g history-limit 50000
|
|
|
|
set -g status off
|
|
|
|
set -g escape-time 1
|
|
|
|
'';
|
2018-04-02 15:52:16 +00:00
|
|
|
programs = {
|
|
|
|
home-manager = {
|
|
|
|
enable = true;
|
|
|
|
path = https://github.com/rycee/home-manager/archive/master.tar.gz;
|
|
|
|
};
|
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
ignores = [
|
|
|
|
".syncthing*.tmp"
|
|
|
|
"*.swp"
|
|
|
|
"*.autosave~"
|
|
|
|
"*.aux"
|
|
|
|
"*.bbl"
|
|
|
|
"*.fls"
|
|
|
|
"*.idx"
|
|
|
|
"*.ilg"
|
|
|
|
"*.ind"
|
|
|
|
"*.log"
|
|
|
|
"*.out"
|
|
|
|
"*.toc"
|
|
|
|
"*.bcf"
|
|
|
|
"*.blg"
|
|
|
|
"*.fdb*"
|
|
|
|
"*.thm"
|
|
|
|
"*.run.xml"
|
|
|
|
"*.slnc"
|
|
|
|
"*.glade~"
|
|
|
|
"__pycache__"
|
|
|
|
".hledger-web_client_session_key.aes"
|
|
|
|
".nix-gc-roots"
|
|
|
|
];
|
|
|
|
userEmail = "malte.brandy@maralorn.de";
|
|
|
|
userName = "Malte Brandy";
|
|
|
|
};
|
|
|
|
htop = {
|
|
|
|
enable = true;
|
|
|
|
hideThreads = true;
|
|
|
|
hideUserlandThreads = true;
|
|
|
|
highlightBaseName = true;
|
|
|
|
shadowOtherUsers = true;
|
|
|
|
showProgramPath = false;
|
|
|
|
treeView = true;
|
|
|
|
};
|
|
|
|
ssh = {
|
2018-05-26 20:48:33 +00:00
|
|
|
controlMaster = "yes";
|
2018-04-02 15:52:16 +00:00
|
|
|
enable = true;
|
|
|
|
matchBlocks = let
|
|
|
|
matheGwProxy = "ssh -q gw nc -q0 %h %p";
|
|
|
|
kivaHost = "fb04386.mathematik.tu-darmstadt.de";
|
|
|
|
agHost = "fb04217.mathematik.tu-darmstadt.de";
|
|
|
|
in [
|
|
|
|
{ host = "charon"; hostname = "charon.olymp.space"; }
|
|
|
|
{ host = "*.olymp.space"; user = "maralorn"; }
|
2018-05-26 20:48:33 +00:00
|
|
|
{ host = "ag-forward"; hostname = agHost; proxyCommand = matheGwProxy;user="brandy";}
|
|
|
|
{ host = "ag"; hostname = agHost;user="brandy";}
|
|
|
|
{ host = "kiva-forward"; hostname = kivaHost; proxyCommand = matheGwProxy;user="brandy";}
|
|
|
|
{ host = "kiva"; hostname = kivaHost;user="brandy";}
|
|
|
|
{ host = "gw"; hostname = "gwres4.mathematik.tu-darmstadt.de";user="brandy";}
|
2018-04-02 15:52:16 +00:00
|
|
|
{ host = "shells"; hostname = "shells.darmstadt.ccc.de"; }
|
|
|
|
{ host = "vorstand"; hostname = "vorstand.darmstadt.ccc.de"; }
|
|
|
|
{ host = "*.darmstadt.ccc.de"; user = "maralorn"; }
|
|
|
|
{ host = "whisky"; hostname = "whisky.w17.io"; user = "chaos"; }
|
2018-05-26 20:48:33 +00:00
|
|
|
{ host = "door.w17.io"; identityFile = "~/.ssh/door_rsa";}
|
2018-04-02 15:52:16 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
history = {
|
|
|
|
save = 100000;
|
|
|
|
size = 100000;
|
|
|
|
};
|
2018-04-02 17:29:11 +00:00
|
|
|
initExtra = builtins.readFile ./configs/zshrc;
|
2018-05-26 20:48:33 +00:00
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [ "colored-man-pages" "git-prompt" ];
|
|
|
|
};
|
2018-04-02 15:52:16 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-05-26 20:48:33 +00:00
|
|
|
home.sessionVariables = {
|
|
|
|
BROWSER="${pkgs.firefox}/bin/firefox";
|
|
|
|
EDITOR="${pkgs.neovim}/bin/nvim";
|
|
|
|
TERMINAL=config.common.terminal;
|
|
|
|
};
|
2018-04-02 15:52:16 +00:00
|
|
|
systemd.user.startServices = true;
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
./taskwarrior.nix
|
|
|
|
../modules/force-copies.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
htop
|
|
|
|
tree
|
|
|
|
rxvt_unicode.terminfo
|
|
|
|
most
|
|
|
|
|
|
|
|
socat
|
|
|
|
nmap
|
|
|
|
tcpdump
|
|
|
|
|
|
|
|
rcm
|
|
|
|
tmux
|
|
|
|
tig
|
|
|
|
exa
|
|
|
|
fzf
|
2018-05-26 20:48:33 +00:00
|
|
|
ag
|
2018-04-02 15:52:16 +00:00
|
|
|
|
|
|
|
pythonPackages.qrcode
|
|
|
|
ranger
|
|
|
|
|
2018-04-27 21:48:56 +00:00
|
|
|
# rust-scripts
|
2018-04-02 15:52:16 +00:00
|
|
|
|
|
|
|
(pkgs.neovim.override {
|
|
|
|
vimAlias = true;
|
2018-04-27 21:48:56 +00:00
|
|
|
withPython3 = true;
|
2018-04-02 15:52:16 +00:00
|
|
|
configure = {
|
2018-04-27 21:48:56 +00:00
|
|
|
customRC = ''
|
|
|
|
let $RUST_SRC_PATH="${pkgs.rustPlatform.rustcSrc}"
|
|
|
|
let g:rustfmt_command = "${pkgs.rustfmt}/bin/rustfmt"
|
|
|
|
let g:racer_cmd = "${pkgs.rustracer}/bin/racer"
|
|
|
|
let g:deoplete#sources#rust#racer_binary='${pkgs.rustracer}/bin/racer'
|
|
|
|
let g:syntastic_rust_rustc_exe = '${pkgs.cargo}/bin/cargo check'
|
|
|
|
${builtins.readFile ./configs/vimrc}
|
|
|
|
'';
|
2018-04-02 15:52:16 +00:00
|
|
|
packages.myVimPackage = with pkgs.vimPlugins; {
|
|
|
|
start = [
|
2018-04-27 21:48:56 +00:00
|
|
|
# deoplete-nvim
|
2018-04-02 15:52:16 +00:00
|
|
|
vim-nix
|
2018-04-27 21:48:56 +00:00
|
|
|
ctrlp
|
2018-04-02 15:52:16 +00:00
|
|
|
vimtex
|
|
|
|
Syntastic
|
|
|
|
UltiSnips
|
|
|
|
airline
|
|
|
|
rust-vim
|
2018-04-27 21:48:56 +00:00
|
|
|
# deoplete-rust
|
2018-04-02 15:52:16 +00:00
|
|
|
fugitive
|
|
|
|
airline
|
2018-04-27 21:48:56 +00:00
|
|
|
# ale
|
|
|
|
# vim-snippets
|
2018-04-02 15:52:16 +00:00
|
|
|
vim-trailing-whitespace
|
2018-04-27 21:48:56 +00:00
|
|
|
vim-polyglot
|
|
|
|
nvim-cm-racer
|
|
|
|
nvim-completion-manager
|
2018-04-02 15:52:16 +00:00
|
|
|
vim-pandoc
|
|
|
|
nerdcommenter
|
2018-04-02 17:29:11 +00:00
|
|
|
vim-signify
|
2018-04-02 15:52:16 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
xdg.enable = true;
|
|
|
|
}
|