2021-12-26 08:02:57 +00:00
|
|
|
# Arsenal for development (which is rare nowadays). ;p
|
|
|
|
# If you're looking for text editors, go to `./editors.nix`.
|
2021-11-29 09:56:24 +00:00
|
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
|
2022-01-09 05:38:59 +00:00
|
|
|
let cfg = config.profiles.dev;
|
2021-12-11 05:16:45 +00:00
|
|
|
in {
|
2022-01-09 05:38:59 +00:00
|
|
|
options.profiles.dev = {
|
2021-12-26 08:02:57 +00:00
|
|
|
enable =
|
|
|
|
lib.mkEnableOption "foo-dogsquared's user-specific development setup";
|
2021-12-11 05:16:45 +00:00
|
|
|
shell.enable =
|
|
|
|
lib.mkEnableOption "configuration of foo-dogsquared's shell of choice";
|
2022-02-02 04:25:03 +00:00
|
|
|
extras.enable = lib.mkEnableOption "additional tools for development stuff";
|
2021-12-11 05:16:45 +00:00
|
|
|
};
|
2021-11-29 09:56:24 +00:00
|
|
|
|
2021-12-11 05:16:45 +00:00
|
|
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
|
|
|
({
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
lazygit # Git interface for the lazy.
|
|
|
|
fzf # A fuzzy finder that enables fuzzy finding not furry finding, a common misconception.
|
|
|
|
gopass # An improved version of the password manager for hipsters.
|
|
|
|
perl534Packages.vidir # Bulk rename for your organizing needs.
|
|
|
|
zellij # A modern tmux?
|
2021-12-13 07:20:34 +00:00
|
|
|
tealdeer # An easy cop-out for basic help.
|
2021-12-11 05:16:45 +00:00
|
|
|
lf # File manager in the terminal, really.
|
2021-11-29 09:56:24 +00:00
|
|
|
|
2021-12-11 05:16:45 +00:00
|
|
|
# Coreutils replacement.
|
|
|
|
fd # Oh nice, a more reliable `find`.
|
|
|
|
ripgrep # On nice, a more reliable `grep`.
|
|
|
|
exa # Oh nice, a shinier `ls`.
|
|
|
|
bat # dog > bat > cat
|
|
|
|
];
|
|
|
|
})
|
2021-11-29 09:56:24 +00:00
|
|
|
|
2021-12-11 05:16:45 +00:00
|
|
|
(lib.mkIf cfg.shell.enable {
|
2022-05-20 06:47:09 +00:00
|
|
|
programs.atuin.enable = true;
|
2021-12-11 05:16:45 +00:00
|
|
|
programs.direnv = {
|
|
|
|
enable = true;
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
};
|
|
|
|
programs.zoxide.enable = true;
|
2022-02-02 04:25:03 +00:00
|
|
|
|
|
|
|
# Enable Starship prompt.
|
2021-12-11 05:16:45 +00:00
|
|
|
programs.starship = {
|
|
|
|
enable = true;
|
2022-06-09 05:00:07 +00:00
|
|
|
settings = {
|
|
|
|
add_newline = false;
|
|
|
|
hostname = {
|
|
|
|
ssh_only = false;
|
|
|
|
trim_at = "";
|
|
|
|
};
|
|
|
|
};
|
2021-12-11 05:16:45 +00:00
|
|
|
};
|
|
|
|
})
|
2022-02-02 04:25:03 +00:00
|
|
|
|
|
|
|
(lib.mkIf cfg.extras.enable {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
tree-sitter # The modern way of text highlighting.
|
|
|
|
hyperfine # Command-line profiling.
|
2022-04-30 12:30:22 +00:00
|
|
|
github-cli # So you don't have to use much of GitHub on the site, I guess.
|
|
|
|
hut # Easier interfacing with Sourcehut.
|
|
|
|
act # Test your CI without embarrassing yourself pushing into upstream.
|
|
|
|
irssi # Communicate in the terminal like a normal person.
|
2022-06-12 05:48:24 +00:00
|
|
|
treefmt # I like the tagline of this tool: "One CLI for formatting your code tree." (It rhymes somewhat.)
|
2022-02-02 04:25:03 +00:00
|
|
|
];
|
|
|
|
})
|
2021-12-11 05:16:45 +00:00
|
|
|
]);
|
2021-11-29 09:56:24 +00:00
|
|
|
}
|