nixos-config/modules/home-manager/profiles/dev.nix
2022-02-02 12:27:32 +08:00

57 lines
1.8 KiB
Nix

# Arsenal for development (which is rare nowadays). ;p
# If you're looking for text editors, go to `./editors.nix`.
{ config, options, lib, pkgs, ... }:
let cfg = config.profiles.dev;
in {
options.profiles.dev = {
enable =
lib.mkEnableOption "foo-dogsquared's user-specific development setup";
shell.enable =
lib.mkEnableOption "configuration of foo-dogsquared's shell of choice";
extras.enable = lib.mkEnableOption "additional tools for development stuff";
};
config = lib.mkIf cfg.enable (lib.mkMerge [
({
home.packages = with pkgs; [
lazygit # Git interface for the lazy.
github-cli # So you don't have to use much of GitHub on the site, I guess.
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?
tealdeer # An easy cop-out for basic help.
lf # File manager in the terminal, really.
# 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
];
})
(lib.mkIf cfg.shell.enable {
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
programs.zoxide.enable = true;
# Enable Starship prompt.
programs.starship = {
enable = true;
settings = { add_newline = false; };
};
})
(lib.mkIf cfg.extras.enable {
home.packages = with pkgs; [
tree-sitter # The modern way of text highlighting.
hyperfine # Command-line profiling.
];
})
]);
}