nixos-config/config/home-manager/base.nix

69 lines
1.6 KiB
Nix
Raw Normal View History

2022-06-12 20:45:19 +00:00
desktop: {pkgs, ...}: {
2022-01-15 15:54:18 +00:00
imports = [
../programs/zsh.nix
2022-09-21 19:38:51 +00:00
../programs/helix
2022-01-21 08:22:11 +00:00
../programs/tmux.nix
2022-04-13 09:59:45 +00:00
../programs/ssh.nix
2022-08-14 13:55:07 +00:00
../programs/taskwarrior.nix
2022-01-15 15:54:18 +00:00
];
programs = {
zsh = {
2022-04-22 14:01:08 +00:00
enable = true;
2022-04-23 16:44:58 +00:00
enableVteIntegration = true;
2022-01-15 15:54:18 +00:00
oh-my-zsh = {
enable = true;
};
initExtraBeforeCompInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
initExtra = ''
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
2022-06-10 20:33:12 +00:00
test -n "$KITTY_INSTALLATION_DIR" || export KITTY_INSTALLATION_DIR=${pkgs.kitty}/lib/kitty
export KITTY_SHELL_INTEGRATION=enabled
autoload -Uz -- "$KITTY_INSTALLATION_DIR"/shell-integration/zsh/kitty-integration
kitty-integration
unfunction kitty-integration
'';
2022-01-31 18:23:36 +00:00
plugins = [
];
2022-01-15 15:54:18 +00:00
};
};
2022-01-15 16:03:02 +00:00
home.file.".p10k.zsh".source = ./.p10k.zsh;
2022-01-19 13:47:14 +00:00
2022-08-14 19:31:57 +00:00
systemd.user.sessionVariables = {
2022-09-30 15:46:21 +00:00
EDITOR = "hx";
2022-01-19 13:47:14 +00:00
};
2022-01-19 13:56:46 +00:00
home = {
shellAliases = {
2022-09-30 15:46:21 +00:00
vi = "hx";
vim = "hx";
nvim = "hx";
2022-01-21 07:41:19 +00:00
cat = "bat";
less = "bat";
2022-06-10 19:44:01 +00:00
icat = "${pkgs.kitty}/bin/kitty +kitten icat";
d = "${pkgs.kitty}/bin/kitty +kitten diff";
hg = "${pkgs.kitty}/bin/kitty +kitten hyperlinked_grep";
2022-01-19 13:56:46 +00:00
};
2022-01-24 06:55:46 +00:00
packages = with pkgs; [
mosh
2022-02-02 09:55:56 +00:00
yubikey-manager
2022-02-02 13:53:19 +00:00
yubico-piv-tool
2022-06-10 19:44:01 +00:00
ripgrep
2022-01-24 06:55:46 +00:00
];
2022-01-19 13:56:46 +00:00
};
2022-01-21 07:41:19 +00:00
programs.exa = {
enable = true;
enableAliases = true;
};
programs.bat = {
enable = true;
};
programs.fzf = {
enable = true;
tmux.enableShellIntegration = true;
};
2022-04-06 19:05:19 +00:00
home.stateVersion = "22.05";
2022-10-18 00:33:38 +00:00
manual.manpages.enable = false; # broken
2022-01-15 15:54:18 +00:00
}