2022-06-12 21:45:19 +01:00
|
|
|
desktop: {pkgs, ...}: {
|
2023-03-18 21:31:44 +01:00
|
|
|
imports =
|
|
|
|
[
|
|
|
|
(import ../programs/zsh.nix desktop)
|
|
|
|
../programs/tmux.nix
|
2023-04-13 07:57:08 +01:00
|
|
|
(import ../programs/vim desktop)
|
2023-03-18 21:31:44 +01:00
|
|
|
]
|
|
|
|
++ (
|
|
|
|
if desktop
|
2023-03-04 21:10:21 +01:00
|
|
|
then [
|
|
|
|
../programs/mail.nix
|
|
|
|
../programs/taskwarrior.nix
|
|
|
|
]
|
2023-03-18 21:31:44 +01:00
|
|
|
else []
|
|
|
|
);
|
2022-01-15 16:54:18 +01:00
|
|
|
programs = {
|
|
|
|
zsh = {
|
2022-04-22 15:01:08 +01:00
|
|
|
enable = true;
|
2022-01-15 16:54:18 +01:00
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
initExtraBeforeCompInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
2023-11-20 18:09:01 +00:00
|
|
|
initExtra = ''
|
|
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
2023-06-18 07:15:37 +01:00
|
|
|
|
2023-11-20 18:09:01 +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 19:23:36 +01:00
|
|
|
plugins = [
|
|
|
|
];
|
2022-01-15 16:54:18 +01:00
|
|
|
};
|
2023-01-02 16:19:50 +01:00
|
|
|
autojump.enable = true;
|
2023-01-03 16:09:39 +01:00
|
|
|
jq.enable = true;
|
|
|
|
ledger.enable = true;
|
2022-01-15 16:54:18 +01:00
|
|
|
};
|
2022-01-15 17:03:02 +01:00
|
|
|
home.file.".p10k.zsh".source = ./.p10k.zsh;
|
2022-01-19 14:47:14 +01:00
|
|
|
|
2022-08-14 20:31:57 +01:00
|
|
|
systemd.user.sessionVariables = {
|
2023-04-15 20:34:38 +01:00
|
|
|
EDITOR = "nvim";
|
2022-01-19 14:47:14 +01:00
|
|
|
};
|
2022-01-19 14:56:46 +01:00
|
|
|
home = {
|
2023-06-19 15:36:00 +01:00
|
|
|
shellAliases =
|
|
|
|
{
|
|
|
|
hx = "nvim";
|
|
|
|
vi = "nvim";
|
|
|
|
vim = "nvim";
|
|
|
|
cat = "bat";
|
|
|
|
less = "bat";
|
|
|
|
}
|
|
|
|
// (
|
|
|
|
if desktop
|
|
|
|
then {
|
|
|
|
icat = "${pkgs.kitty}/bin/kitty +kitten icat";
|
|
|
|
d = "${pkgs.kitty}/bin/kitty +kitten diff";
|
|
|
|
hg = "${pkgs.kitty}/bin/kitty +kitten hyperlinked_grep";
|
2023-11-19 18:33:42 +01:00
|
|
|
cargo = "${pkgs.cargo-mommy}/bin/cargo-mommy";
|
2023-06-19 15:36:00 +01:00
|
|
|
}
|
|
|
|
else {}
|
|
|
|
);
|
2022-12-13 14:37:44 +01:00
|
|
|
packages = with pkgs;
|
|
|
|
[
|
|
|
|
yubico-piv-tool
|
|
|
|
ripgrep
|
|
|
|
gh
|
|
|
|
htop
|
|
|
|
sops
|
2023-01-02 16:19:50 +01:00
|
|
|
progress
|
|
|
|
hexyl
|
2023-01-03 16:09:39 +01:00
|
|
|
mc
|
2023-01-03 16:35:03 +01:00
|
|
|
rclone
|
2023-05-24 12:51:40 +01:00
|
|
|
libarchive
|
|
|
|
p7zip
|
|
|
|
unrar
|
2022-12-13 14:37:44 +01:00
|
|
|
]
|
|
|
|
++ (
|
|
|
|
if desktop
|
2023-01-02 16:19:50 +01:00
|
|
|
then [
|
|
|
|
yubikey-manager
|
|
|
|
yt-dlp
|
|
|
|
oxipng
|
|
|
|
jpegoptim
|
2023-01-03 16:09:39 +01:00
|
|
|
picard
|
|
|
|
easytag
|
2023-01-02 16:19:50 +01:00
|
|
|
]
|
2022-12-13 14:37:44 +01:00
|
|
|
else []
|
|
|
|
);
|
2022-01-19 14:56:46 +01:00
|
|
|
};
|
2022-01-21 08:41:19 +01:00
|
|
|
|
2023-09-08 12:39:34 +01:00
|
|
|
programs.eza = {
|
2022-01-21 08:41:19 +01:00
|
|
|
enable = true;
|
|
|
|
enableAliases = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.bat = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.fzf = {
|
|
|
|
enable = true;
|
|
|
|
tmux.enableShellIntegration = true;
|
|
|
|
};
|
2022-04-06 20:05:19 +01:00
|
|
|
home.stateVersion = "22.05";
|
2022-10-18 00:33:38 +00:00
|
|
|
manual.manpages.enable = false; # broken
|
2023-04-25 19:56:36 +01:00
|
|
|
|
2023-05-02 16:58:15 +01:00
|
|
|
_module.args.withNSFW = false;
|
2022-01-15 16:54:18 +01:00
|
|
|
}
|