2024-09-06 15:39:10 +00:00
|
|
|
args@{
|
2021-10-29 14:43:36 +00:00
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
2024-09-04 20:28:41 +00:00
|
|
|
flake,
|
2021-10-29 14:43:36 +00:00
|
|
|
...
|
|
|
|
}:
|
2021-05-30 19:10:28 +00:00
|
|
|
with lib; let
|
|
|
|
psCfg = config.pub-solar;
|
|
|
|
cfg = config.pub-solar.terminal-life;
|
|
|
|
in {
|
|
|
|
options.pub-solar.terminal-life = {
|
2023-10-07 14:45:42 +00:00
|
|
|
full = mkOption {
|
2022-08-14 15:17:35 +00:00
|
|
|
description = ''
|
2023-10-07 19:11:08 +00:00
|
|
|
Enable a full version, which includes more nvim plugins and lsps.
|
2022-08-14 15:17:35 +00:00
|
|
|
'';
|
2023-10-07 19:11:08 +00:00
|
|
|
default = false;
|
2022-08-14 15:17:35 +00:00
|
|
|
type = types.bool;
|
|
|
|
};
|
2021-05-30 19:10:28 +00:00
|
|
|
};
|
|
|
|
|
2023-10-07 14:45:42 +00:00
|
|
|
config = {
|
2024-09-04 23:22:56 +00:00
|
|
|
programs.command-not-found.enable = true;
|
2021-05-30 19:10:28 +00:00
|
|
|
|
2024-08-18 22:22:59 +00:00
|
|
|
users.users."${psCfg.user.name}".packages = with pkgs;
|
|
|
|
[
|
2024-09-04 20:28:41 +00:00
|
|
|
tealdeer
|
2024-08-18 22:22:59 +00:00
|
|
|
asciinema
|
|
|
|
blesh
|
|
|
|
eza
|
|
|
|
fd
|
|
|
|
ripgrep
|
|
|
|
(nnn.overrideAttrs (o: {
|
|
|
|
patches =
|
|
|
|
(o.patches or [])
|
|
|
|
++ [
|
|
|
|
./nnn/0001-feat-use-wasd-keybindings-for-jkli.patch
|
|
|
|
];
|
|
|
|
}))
|
|
|
|
p
|
|
|
|
powerline
|
|
|
|
screen
|
|
|
|
watson
|
|
|
|
jump
|
2024-09-12 15:05:20 +00:00
|
|
|
bat
|
2024-08-18 22:22:59 +00:00
|
|
|
]
|
|
|
|
++ (
|
|
|
|
if cfg.full
|
|
|
|
then [
|
|
|
|
# Nix specific utilities
|
|
|
|
alejandra
|
|
|
|
manix
|
|
|
|
nix-index
|
|
|
|
nix-tree
|
|
|
|
nix-inspect
|
|
|
|
nvd
|
|
|
|
]
|
|
|
|
else []
|
|
|
|
);
|
2023-10-07 14:45:42 +00:00
|
|
|
|
|
|
|
home-manager.users."${psCfg.user.name}" = {
|
|
|
|
programs.less = {
|
|
|
|
enable = true;
|
|
|
|
keys = ''
|
|
|
|
k forw-line
|
|
|
|
i back-line
|
|
|
|
K forw-scroll
|
|
|
|
I back-scroll
|
|
|
|
'';
|
|
|
|
};
|
2021-05-30 19:10:28 +00:00
|
|
|
|
2023-10-07 14:45:42 +00:00
|
|
|
# Starship is a fast and featureful shell prompt
|
|
|
|
# starship.toml has sane defaults that can be changed there
|
|
|
|
programs.starship = {
|
|
|
|
enable = true;
|
2024-09-04 20:28:41 +00:00
|
|
|
settings = import ./starship.toml.nix flake.self.theme.withHashtag;
|
2023-10-07 14:45:42 +00:00
|
|
|
};
|
2023-09-12 20:07:05 +00:00
|
|
|
|
2024-09-06 15:39:10 +00:00
|
|
|
programs.bash = import ./bash args;
|
2023-09-12 20:07:05 +00:00
|
|
|
|
2024-09-06 15:39:10 +00:00
|
|
|
programs.fzf = import ./fzf args;
|
2024-08-18 22:07:22 +00:00
|
|
|
|
2024-09-06 15:39:10 +00:00
|
|
|
programs.neovim = import ./nvim args;
|
2023-10-07 14:45:42 +00:00
|
|
|
# Ensure nvim backup directory gets created
|
|
|
|
# Workaround for E510: Can't make backup file (add ! to override)
|
|
|
|
xdg.dataFile."nvim/backup/.keep".text = "";
|
|
|
|
xdg.dataFile."nvim/json-schemas/.keep".text = "";
|
|
|
|
xdg.dataFile."nvim/templates/.keep".text = "";
|
2023-10-07 09:11:14 +00:00
|
|
|
|
2024-09-06 15:39:10 +00:00
|
|
|
programs.git = import ./git args;
|
|
|
|
xdg.configFile."git/config".text = import ./.config/git/config.nix args;
|
|
|
|
xdg.configFile."git/gitmessage".text = import ./.config/git/gitmessage.nix args;
|
|
|
|
xdg.configFile."git/global_gitignore".text = import ./.config/git/global_gitignore.nix args;
|
2023-10-07 14:45:42 +00:00
|
|
|
|
2024-09-06 15:39:10 +00:00
|
|
|
programs.direnv = import ./direnv args;
|
2023-09-12 20:07:05 +00:00
|
|
|
};
|
2023-10-07 14:45:42 +00:00
|
|
|
};
|
2021-05-30 19:10:28 +00:00
|
|
|
}
|