2020-09-20 22:17:58 +02:00
|
|
|
{ config ? throw "not a readTree target", ... }:
|
2020-08-10 01:24:43 +02:00
|
|
|
|
|
|
|
let
|
2020-09-20 22:17:58 +02:00
|
|
|
depot = import <depot> {};
|
|
|
|
pkgs = import <nixpkgs> {};
|
|
|
|
|
2020-09-21 00:04:40 +02:00
|
|
|
depotPath = depot.users.multi.whitby.depot;
|
2020-08-10 01:24:43 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
programs = {
|
2020-11-21 18:22:54 +01:00
|
|
|
home-manager = {
|
|
|
|
enable = true;
|
|
|
|
path = pkgs.home-manager.src;
|
|
|
|
};
|
2020-08-10 01:24:43 +02:00
|
|
|
|
|
|
|
bash = {
|
|
|
|
enable = true;
|
|
|
|
initExtra = ''
|
2020-09-20 21:57:12 +02:00
|
|
|
bind '"\e[5~":history-search-backward'
|
|
|
|
bind '"\e[6~":history-search-forward'
|
|
|
|
|
2020-08-10 01:24:43 +02:00
|
|
|
PS1="[\\u@\\h:\\w]\\\$ "
|
|
|
|
|
|
|
|
_Z_CMD=d
|
|
|
|
source ~/.z.sh
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
tmux = {
|
|
|
|
enable = true;
|
|
|
|
terminal = "tmux-256color";
|
|
|
|
escapeTime = 50;
|
|
|
|
extraConfig = ''
|
|
|
|
bind-key -n C-S-Left swap-window -t -1
|
|
|
|
bind-key -n C-S-Right swap-window -t +1
|
|
|
|
'';
|
|
|
|
};
|
2020-09-20 21:57:12 +02:00
|
|
|
|
|
|
|
vim = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = "set mouse=";
|
|
|
|
};
|
2020-08-10 01:24:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
home.sessionVariables = {
|
|
|
|
NIX_PATH =
|
2020-09-20 22:17:58 +02:00
|
|
|
"nixpkgs=${depot.third_party.nixpkgsSrc}:" +
|
|
|
|
"depot=${depotPath}";
|
|
|
|
HOME_MANAGER_CONFIG = "${depotPath}/users/multi/whitby/home-manager.nix";
|
2020-09-20 21:57:12 +02:00
|
|
|
EDITOR = "vim";
|
2020-08-10 01:24:43 +02:00
|
|
|
};
|
|
|
|
|
2020-09-20 21:57:12 +02:00
|
|
|
home.packages = [
|
|
|
|
pkgs.lsof
|
|
|
|
pkgs.strace
|
|
|
|
pkgs.file
|
|
|
|
pkgs.pciutils
|
|
|
|
] ++ (import ../pkgs { inherit pkgs; });
|
2020-08-10 01:24:43 +02:00
|
|
|
|
|
|
|
home.file = {
|
|
|
|
z = {
|
2020-09-20 22:17:58 +02:00
|
|
|
source = builtins.fetchurl "https://raw.githubusercontent.com/rupa/z/9f76454b32c0007f20b0eae46d55d7a1488c9df9/z.sh";
|
2020-08-10 01:24:43 +02:00
|
|
|
target = ".z.sh";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
home.stateVersion = "20.03";
|
|
|
|
}
|