1
0
Fork 0
nixos-config/home-manager/default.nix

117 lines
3.3 KiB
Nix
Raw Normal View History

2018-05-26 20:48:33 +00:00
{ pkgs, config, ... }:
2018-05-29 19:52:35 +00:00
{
2018-05-31 10:34:48 +00:00
imports = [
./zsh
./modules/taskwarrior.nix
./modules/force-copies.nix
./modules/battery.nix
./modules/laptop.nix
./modules/accounting.nix
./modules/rustdev.nix
./modules/latex.nix
./modules/sleep-nag.nix
./modules/graphical
./modules/home-options.nix
# ./sort-mail.nix
# ./morgenreport.nix
# ./my-systems.nix
];
nixpkgs.config.packageOverrides = pkgs: with pkgs; {
tasktree = callPackage ./packages/tasktree {};
rust-scripts = callPackage ./packages/rust-scripts {};
jali = with pkgs; callPackage ./packages/jali {};
2018-05-29 19:52:35 +00:00
eventd = (import <unstable> {}).callPackage ./packages/eventd {};
2018-05-31 10:34:48 +00:00
st = (import packages/st) pkgs config.common.colors;
neovim = (import ./nvim) pkgs config.m-0.rustdev.enable;
2018-05-26 20:48:33 +00:00
};
2018-05-29 19:52:35 +00:00
2018-05-31 10:34:48 +00:00
2018-05-26 20:48:33 +00:00
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-05-29 19:52:35 +00:00
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
];
};
};
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;
home.packages = with pkgs; [
2018-05-31 10:34:48 +00:00
neovim
2018-04-02 15:52:16 +00:00
];
xdg.enable = true;
}