2018-12-31 09:08:11 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2020-04-23 14:44:47 +00:00
|
|
|
programs = {
|
|
|
|
ssh.startAgent = false;
|
|
|
|
gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
};
|
2018-12-31 09:08:11 +00:00
|
|
|
imports = [
|
2021-01-27 22:04:50 +00:00
|
|
|
{
|
2020-07-02 06:35:55 +00:00
|
|
|
home-manager.users.makefu.home.packages = [
|
|
|
|
(pkgs.writers.writeDashBin "privatefox" "exec firefox -P Privatefox")
|
2021-01-18 22:01:13 +00:00
|
|
|
];
|
2018-12-31 09:08:11 +00:00
|
|
|
}
|
|
|
|
{ # bat
|
2020-07-02 06:35:55 +00:00
|
|
|
home-manager.users.makefu.home.packages = [ pkgs.bat ];
|
2018-12-31 09:08:11 +00:00
|
|
|
home-manager.users.makefu.programs.zsh.shellAliases = {
|
2020-04-21 19:40:46 +00:00
|
|
|
cat = "bat --style=header,snip";
|
2020-04-22 06:16:49 +00:00
|
|
|
mirage = "sxiv"; # only available when tools/extra-gui is in use
|
2018-12-31 09:08:11 +00:00
|
|
|
catn = "${pkgs.coreutils}/bin/cat";
|
2019-04-17 19:44:00 +00:00
|
|
|
ncat = "${pkgs.coreutils}/bin/cat";
|
2018-12-31 09:08:11 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2021-01-27 22:04:50 +00:00
|
|
|
environment.pathsToLink = [
|
|
|
|
"/share/zsh"
|
|
|
|
];
|
2021-01-18 22:01:13 +00:00
|
|
|
|
2021-01-27 22:04:50 +00:00
|
|
|
nix.extraOptions = ''
|
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
|
|
|
'';
|
2021-01-18 22:01:13 +00:00
|
|
|
|
2018-12-31 09:08:11 +00:00
|
|
|
home-manager.users.makefu = {
|
2021-01-27 22:04:50 +00:00
|
|
|
|
|
|
|
programs.direnv.enable = true;
|
2022-06-06 19:21:20 +00:00
|
|
|
programs.direnv.nix-direnv.enable = true;
|
2021-01-27 22:04:50 +00:00
|
|
|
programs.direnv.enableZshIntegration = true;
|
|
|
|
home.packages = [ (pkgs.writeDashBin "nixify" ''
|
|
|
|
test ! -e shell.nix && cat > shell.nix <<EOF
|
|
|
|
{ pkgs ? import <nixpkgs> {}}:
|
|
|
|
|
|
|
|
pkgs.mkShell {
|
|
|
|
nativeBuildInputs = [ pkgs.hello ];
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
echo "use nix" >> .envrc
|
|
|
|
direnv allow
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
#home.packages = [ pkgs.direnv pkgs.nix-direnv ];
|
|
|
|
|
2018-12-31 09:08:11 +00:00
|
|
|
programs.fzf.enable = false; # alt-c
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableAutosuggestions = false;
|
|
|
|
enableCompletion = true;
|
|
|
|
oh-my-zsh.enable = false;
|
|
|
|
history = {
|
|
|
|
size = 900001;
|
|
|
|
save = 900001;
|
|
|
|
ignoreDups = true;
|
|
|
|
extended = true;
|
|
|
|
share = true;
|
|
|
|
};
|
|
|
|
sessionVariables = {
|
2019-02-05 21:33:09 +00:00
|
|
|
# TERM = "rxvt-unicode-256color";
|
|
|
|
TERM = "xterm";
|
2018-12-31 09:08:11 +00:00
|
|
|
LANG = "en_US.UTF8";
|
|
|
|
LS_COLORS = ":di=1;31:";
|
|
|
|
EDITOR = "vim";
|
|
|
|
};
|
|
|
|
shellAliases = {
|
|
|
|
lsl = "ls -lAtr";
|
|
|
|
t = "task";
|
|
|
|
xo = "mimeopen";
|
|
|
|
nmap = "nmap -oN $HOME/loot/scan-`date +\%s`.nmap -oX $HOME/loot/scan-`date +%s`.xml";
|
|
|
|
};
|
2020-11-19 00:39:34 +00:00
|
|
|
# navi package does not come with the navi.plugin.zsh anymore so we use .src
|
2018-12-31 09:08:11 +00:00
|
|
|
initExtra = ''
|
|
|
|
bindkey -e
|
|
|
|
# shift-tab
|
|
|
|
bindkey '^[[Z' reverse-menu-complete
|
|
|
|
bindkey "\e[3~" delete-char
|
|
|
|
zstyle ':completion:*' menu select
|
|
|
|
|
|
|
|
setopt HIST_IGNORE_ALL_DUPS
|
|
|
|
setopt HIST_IGNORE_SPACE
|
|
|
|
setopt HIST_FIND_NO_DUPS
|
|
|
|
|
|
|
|
compdef _pass brain
|
|
|
|
zstyle ':completion::complete:brain::' prefix "$HOME/brain"
|
|
|
|
compdef _pass secrets
|
|
|
|
zstyle ':completion::complete:secrets::' prefix "$HOME/.secrets-pass/"
|
2020-07-02 06:35:55 +00:00
|
|
|
|
|
|
|
# navi
|
2020-11-19 00:39:34 +00:00
|
|
|
. ${pkgs.navi.src}/shell/navi.plugin.zsh
|
2018-12-31 09:08:11 +00:00
|
|
|
# ctrl-x ctrl-e
|
2020-07-02 06:35:55 +00:00
|
|
|
autoload -U compinit && compinit
|
2018-12-31 09:08:11 +00:00
|
|
|
autoload -U edit-command-line
|
|
|
|
zle -N edit-command-line
|
|
|
|
bindkey '^xe' edit-command-line
|
|
|
|
bindkey '^x^e' edit-command-line
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|