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

63 lines
1.2 KiB
Nix

desktop: {pkgs, ...}: {
imports = [
../programs/zsh.nix
../programs/helix
../programs/tmux.nix
../programs/ssh.nix
../programs/taskwarrior.nix
];
programs = {
zsh = {
enable = true;
enableVteIntegration = true;
oh-my-zsh = {
enable = true;
};
initExtraBeforeCompInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
initExtra = ''
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
'';
plugins = [
];
};
};
home.file.".p10k.zsh".source = ./.p10k.zsh;
systemd.user.sessionVariables = {
EDITOR = "hx";
};
home = {
shellAliases = {
vi = "hx";
vim = "hx";
nvim = "hx";
cat = "bat";
less = "bat";
};
packages = with pkgs; [
yubikey-manager
yubico-piv-tool
ripgrep
jq
gh
htop
sops
];
};
programs.exa = {
enable = true;
enableAliases = true;
};
programs.bat = {
enable = true;
};
programs.fzf = {
enable = true;
tmux.enableShellIntegration = true;
};
home.stateVersion = "22.05";
manual.manpages.enable = false; # broken
}