mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
profiles/dev: add coreutils-replacement submodule
This commit is contained in:
parent
37db9a7929
commit
6e10f63911
@ -13,6 +13,7 @@ in {
|
|||||||
shaders.enable = lib.mkEnableOption "tools for developing shaders";
|
shaders.enable = lib.mkEnableOption "tools for developing shaders";
|
||||||
servers.enable = lib.mkEnableOption "toolkit for managing servers from your home";
|
servers.enable = lib.mkEnableOption "toolkit for managing servers from your home";
|
||||||
funsies.enable = lib.mkEnableOption "installation of command-line applications for funsies";
|
funsies.enable = lib.mkEnableOption "installation of command-line applications for funsies";
|
||||||
|
coreutils-replacement.enable = lib.mkEnableOption "replacement of coreutils with sane default options";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
@ -25,10 +26,6 @@ in {
|
|||||||
perlPackages.vidir # Bulk rename for your organizing needs in the terminal.
|
perlPackages.vidir # Bulk rename for your organizing needs in the terminal.
|
||||||
tealdeer # An easy cop-out for basic help.
|
tealdeer # An easy cop-out for basic help.
|
||||||
|
|
||||||
# Coreutils replacement.
|
|
||||||
fd # Oh nice, a more reliable `find`.
|
|
||||||
ripgrep # On nice, a more reliable `grep`.
|
|
||||||
eza # Oh nice, a shinier `ls`.
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Git interface for the lazy who cannot be asked to add hunks properly.
|
# Git interface for the lazy who cannot be asked to add hunks properly.
|
||||||
@ -87,15 +84,6 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# dog > sky dog > cat.
|
|
||||||
programs.bat = {
|
|
||||||
enable = true;
|
|
||||||
config = {
|
|
||||||
pager = "${lib.getBin pkgs.moar}/bin/moar";
|
|
||||||
theme = "base16";
|
|
||||||
style = "plain";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Modern tmux? Yeah, modern tmux! For layout configurations, they are
|
# Modern tmux? Yeah, modern tmux! For layout configurations, they are
|
||||||
# more individualized so just set your home-manager users individually
|
# more individualized so just set your home-manager users individually
|
||||||
@ -151,6 +139,40 @@ in {
|
|||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(lib.mkIf cfg.coreutils-replacement.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
fd # Welp, a reliable find.
|
||||||
|
];
|
||||||
|
|
||||||
|
# dog > sky dog > cat.
|
||||||
|
programs.bat = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
pager = "${lib.getBin pkgs.moar}/bin/moar";
|
||||||
|
theme = "base16";
|
||||||
|
style = "plain";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Your E last to the A.
|
||||||
|
programs.eza = {
|
||||||
|
enable = true;
|
||||||
|
extraOptions = [
|
||||||
|
"--group-directories-first"
|
||||||
|
"--header"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# RIP indeed to grep.
|
||||||
|
programs.ripgrep = {
|
||||||
|
enable = true;
|
||||||
|
arguments = [
|
||||||
|
"--max-columns-preview"
|
||||||
|
"--colors=line:style:bold"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
(lib.mkIf cfg.extras.enable {
|
(lib.mkIf cfg.extras.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
act # Test your CI without embarrassing yourself repeatedly pushing into GitHub repos.
|
act # Test your CI without embarrassing yourself repeatedly pushing into GitHub repos.
|
||||||
|
Loading…
Reference in New Issue
Block a user