2024-07-20 13:00:10 +00:00
|
|
|
desktop: {
|
|
|
|
pkgs,
|
|
|
|
system,
|
2024-10-15 05:54:49 +00:00
|
|
|
lib,
|
|
|
|
config,
|
2024-07-20 13:00:10 +00:00
|
|
|
...
|
|
|
|
}: {
|
2023-03-18 20:31:44 +00:00
|
|
|
imports =
|
|
|
|
[
|
|
|
|
(import ../programs/zsh.nix desktop)
|
|
|
|
../programs/tmux.nix
|
2023-04-13 06:57:08 +00:00
|
|
|
(import ../programs/vim desktop)
|
2023-03-18 20:31:44 +00:00
|
|
|
]
|
|
|
|
++ (
|
|
|
|
if desktop
|
2023-03-04 20:10:21 +00:00
|
|
|
then [
|
|
|
|
../programs/mail.nix
|
|
|
|
../programs/taskwarrior.nix
|
|
|
|
]
|
2023-03-18 20:31:44 +00:00
|
|
|
else []
|
|
|
|
);
|
2022-01-15 15:54:18 +00:00
|
|
|
programs = {
|
|
|
|
zsh = {
|
2022-04-22 14:01:08 +00:00
|
|
|
enable = 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";
|
2023-06-18 06:15:37 +00:00
|
|
|
|
2024-07-20 13:00:10 +00:00
|
|
|
initExtra =
|
|
|
|
if system != "riscv64-linux"
|
|
|
|
then ''
|
|
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
|
|
|
|
|
|
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
|
|
|
|
''
|
|
|
|
else "";
|
|
|
|
|
2022-01-31 18:23:36 +00:00
|
|
|
plugins = [
|
|
|
|
];
|
2022-01-15 15:54:18 +00:00
|
|
|
};
|
2023-01-02 15:19:50 +00:00
|
|
|
autojump.enable = true;
|
2023-01-03 15:09:39 +00:00
|
|
|
jq.enable = true;
|
|
|
|
ledger.enable = true;
|
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-01-19 13:56:46 +00:00
|
|
|
home = {
|
2023-06-19 14:36:00 +00:00
|
|
|
shellAliases =
|
|
|
|
{
|
|
|
|
cat = "bat";
|
|
|
|
less = "bat";
|
|
|
|
}
|
|
|
|
// (
|
2024-07-20 13:00:10 +00:00
|
|
|
if system != "riscv64-linux"
|
2023-06-19 14:36:00 +00:00
|
|
|
then {
|
2024-07-17 05:53:51 +00:00
|
|
|
icat = "${pkgs.kitty}/bin/kitty +kitten icat";
|
2023-06-19 14:36:00 +00:00
|
|
|
d = "${pkgs.kitty}/bin/kitty +kitten diff";
|
|
|
|
hg = "${pkgs.kitty}/bin/kitty +kitten hyperlinked_grep";
|
2024-07-24 10:07:33 +00:00
|
|
|
#ssh = "${pkgs.kitty}/bin/kitty +kitten ssh";
|
2023-11-19 17:33:42 +00:00
|
|
|
cargo = "${pkgs.cargo-mommy}/bin/cargo-mommy";
|
2023-06-19 14:36:00 +00:00
|
|
|
}
|
|
|
|
else {}
|
|
|
|
);
|
2022-12-13 13:37:44 +00:00
|
|
|
packages = with pkgs;
|
|
|
|
[
|
2024-04-01 14:31:53 +00:00
|
|
|
mosh
|
2022-12-13 13:37:44 +00:00
|
|
|
ripgrep
|
|
|
|
gh
|
|
|
|
htop
|
|
|
|
sops
|
2023-01-02 15:19:50 +00:00
|
|
|
progress
|
|
|
|
hexyl
|
2023-01-03 15:09:39 +00:00
|
|
|
mc
|
2023-01-03 15:35:03 +00:00
|
|
|
rclone
|
2023-05-24 11:51:40 +00:00
|
|
|
libarchive
|
|
|
|
p7zip
|
|
|
|
unrar
|
2022-12-13 13:37:44 +00:00
|
|
|
]
|
|
|
|
++ (
|
|
|
|
if desktop
|
2023-01-02 15:19:50 +00:00
|
|
|
then [
|
|
|
|
yubikey-manager
|
|
|
|
yt-dlp
|
|
|
|
oxipng
|
|
|
|
jpegoptim
|
2024-07-07 07:37:52 +00:00
|
|
|
#picard
|
2023-01-03 15:09:39 +00:00
|
|
|
easytag
|
2024-06-11 09:07:47 +00:00
|
|
|
alejandra
|
2024-07-02 12:00:44 +00:00
|
|
|
yubico-piv-tool
|
2023-01-02 15:19:50 +00:00
|
|
|
]
|
2022-12-13 13:37:44 +00:00
|
|
|
else []
|
|
|
|
);
|
2024-10-15 05:54:49 +00:00
|
|
|
sessionVariables = if desktop then {
|
|
|
|
QT_PLUGIN_PATH = lib.mkForce "\${QT_PLUGIN_PATH}:${config.i18n.inputMethod.package}/${pkgs.qt6.qtbase.qtPluginPrefix}:${pkgs.kdePackages.kimageformats}/${pkgs.qt6.qtbase.qtPluginPrefix}";
|
|
|
|
} else {};
|
2022-01-19 13:56:46 +00:00
|
|
|
};
|
2022-01-21 07:41:19 +00:00
|
|
|
|
2023-09-08 11:39:34 +00:00
|
|
|
programs.eza = {
|
2022-01-21 07:41:19 +00:00
|
|
|
enable = true;
|
2024-03-13 19:55:24 +00:00
|
|
|
enableZshIntegration = true;
|
2022-01-21 07:41:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
2023-04-25 18:56:36 +00:00
|
|
|
|
2023-05-02 15:58:15 +00:00
|
|
|
_module.args.withNSFW = false;
|
2022-01-15 15:54:18 +00:00
|
|
|
}
|