add some cli tools

This commit is contained in:
Kopatz
2024-06-09 12:25:16 +02:00
parent 087fb3058e
commit cb05d6aa18
8 changed files with 86 additions and 25 deletions

View File

@@ -12,6 +12,7 @@ in
environment.systemPackages = with pkgs; [
wget
pciutils
rippkgs # faster nixpkgs search, init with `rippkgs-index nixpkgs && mv rippkgs-index.sqlite ~/.local/share/`;
nixos-option
btop
git
@@ -45,6 +46,8 @@ in
nvd # nix diff, example: nvd diff /nix/var/nix/profiles/system-389-link /nix/var/nix/profiles/system-390-link
compsize
trashy # move files to trash
fzf # fuzzy finder
bat # fancy cat
];
};
}

View File

@@ -1,19 +1,14 @@
{config, lib, ...}:
{ config, lib, ... }:
with lib;
let
cfg = config.custom.nix.index;
in
{
options.custom.nix.index = {
enable = mkEnableOption "Enables nix index";
};
config = mkIf cfg.enable {
programs.command-not-found.enable = false;
programs.nix-index = {
enable = true;
enableZshIntegration=true;
};
};
}
let cfg = config.custom.nix.index;
in {
options.custom.nix.index = { enable = mkEnableOption "Enables nix index"; };
config = mkIf cfg.enable {
programs.command-not-found.enable = false;
programs.nix-index = {
enable = true;
enableZshIntegration = true;
};
};
}