5a00e58904
Included fixes for random breakage: * 3p/awscli: pick from the stable channel; it is broken on unstable * 3p/googletest: bumped version & removed patches that nixpkgs applies * 3p/lisp/cffi: bumped library version for SBCL compat * 3p/nix: fix libsystemd attribute * 3p/nix: reformatted (clang-format handling of ternaries changed) * glittershark/home: Use home-manager from nixkpgs * glittershark/kernel: bumped linux-ck patch hash * glittershark/kernel: removed "patch patch" * multi/whitby: Use home-manager from nixpkgs * tazjin/frog: drop Sourcetrail (it doesn't build currently) Note that in addition to these changes, some previous CLs updated the versions of git and cgit which was necessary for this channel bump, but which could not be done in the same commit due to the nature of the subtree merges. Change-Id: If2563e8a68e2750c4b913a976ff7b93b42e8b7f3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2110 Tested-by: BuildkiteCI Reviewed-by: multi <depot@in-addr.xyz> Reviewed-by: glittershark <grfn@gws.fyi>
69 lines
1.4 KiB
Nix
69 lines
1.4 KiB
Nix
{ config ? throw "not a readTree target", ... }:
|
|
|
|
let
|
|
depot = import <depot> {};
|
|
pkgs = import <nixpkgs> {};
|
|
|
|
depotPath = depot.users.multi.whitby.depot;
|
|
in
|
|
|
|
{
|
|
programs = {
|
|
home-manager = {
|
|
enable = true;
|
|
path = pkgs.home-manager.src;
|
|
};
|
|
|
|
bash = {
|
|
enable = true;
|
|
initExtra = ''
|
|
bind '"\e[5~":history-search-backward'
|
|
bind '"\e[6~":history-search-forward'
|
|
|
|
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
|
|
'';
|
|
};
|
|
|
|
vim = {
|
|
enable = true;
|
|
extraConfig = "set mouse=";
|
|
};
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
NIX_PATH =
|
|
"nixpkgs=${depot.third_party.nixpkgsSrc}:" +
|
|
"depot=${depotPath}";
|
|
HOME_MANAGER_CONFIG = "${depotPath}/users/multi/whitby/home-manager.nix";
|
|
EDITOR = "vim";
|
|
};
|
|
|
|
home.packages = [
|
|
pkgs.lsof
|
|
pkgs.strace
|
|
pkgs.file
|
|
pkgs.pciutils
|
|
] ++ (import ../pkgs { inherit pkgs; });
|
|
|
|
home.file = {
|
|
z = {
|
|
source = builtins.fetchurl "https://raw.githubusercontent.com/rupa/z/9f76454b32c0007f20b0eae46d55d7a1488c9df9/z.sh";
|
|
target = ".z.sh";
|
|
};
|
|
};
|
|
|
|
home.stateVersion = "20.03";
|
|
}
|