config: replace command-not-found with nix-index

This commit is contained in:
Gabriel Arazas 2023-11-04 23:22:54 +08:00
parent 4490214c61
commit 16fa8cb64f
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 16 additions and 6 deletions

View File

@ -162,6 +162,11 @@
inputs.nix-index-database.nixosModules.nix-index inputs.nix-index-database.nixosModules.nix-index
]; ];
# Find Nix files with these! Even if nix-index is already enabled, it
# is better to make it explicit.
programs.command-not-found.enable = false;
programs.nix-index.enable = true;
# BOOOOOOOOOOOOO! Somebody give me a tomato! # BOOOOOOOOOOOOO! Somebody give me a tomato!
services.xserver.excludePackages = with pkgs; [ xterm ]; services.xserver.excludePackages = with pkgs; [ xterm ];
@ -293,6 +298,11 @@
# again. # again.
nix.package = pkgs.nixUnstable; nix.package = pkgs.nixUnstable;
# Find Nix files with these! Even if nix-index is already enabled, it
# is better to make it explicit.
programs.command-not-found.enable = false;
programs.nix-index.enable = true;
# Set the configurations for the package manager. # Set the configurations for the package manager.
nix.settings = nix.settings =
let let

View File

@ -73,10 +73,6 @@ in {
# Convenience! # Convenience!
environment.localBinInPath = true; environment.localBinInPath = true;
# Find Nix files with these!
programs.command-not-found.enable = false;
programs.nix-index.enable = true;
# Additional settings for developing with nix. # Additional settings for developing with nix.
nix.settings = { nix.settings = {
keep-outputs = true; keep-outputs = true;
@ -90,7 +86,7 @@ in {
cachix # Compile no more by using someone's binary cache! cachix # Compile no more by using someone's binary cache!
curl # Our favorite network client. curl # Our favorite network client.
cmake # The poster boy for the hated build system. cmake # The poster boy for the hated build system.
diffoscope # Oversized caffeine grinder. #diffoscope # Oversized caffeine grinder.
direnv # The power of local development environment. direnv # The power of local development environment.
ipcalc # Calculate your IP without going to the web. ipcalc # Calculate your IP without going to the web.
gcc # The usual toolchain. gcc # The usual toolchain.
@ -128,9 +124,11 @@ in {
(lib.mkIf cfg.shell.enable { (lib.mkIf cfg.shell.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
bandwhich # Sniffing your packets. bandwhich # Sniffing your packets.
dt # Get that functional gawk.
lazygit # Git interface for the lazy. lazygit # Git interface for the lazy.
lazydocker # Git interface for the lazy. lazydocker # Git interface for the lazy.
fd # Oh nice, a more reliable `find`. fd # Oh nice, a more reliable `find`.
recode # Convert between different encodings.
ripgrep # On nice, a more reliable `grep`. ripgrep # On nice, a more reliable `grep`.
eza # Oh nice, a shinier `ls`. eza # Oh nice, a shinier `ls`.
bat # dog > sky dog > cat bat # dog > sky dog > cat
@ -138,6 +136,9 @@ in {
gopass # An improved version of the password manager for hipsters. gopass # An improved version of the password manager for hipsters.
zoxide # Gain teleportation abilities! zoxide # Gain teleportation abilities!
]; ];
# A modern version of the SSH.
programs.mosh.enable = true;
}) })
# !!! Please add your user to the "libvirtd" group. # !!! Please add your user to the "libvirtd" group.
@ -187,7 +188,6 @@ in {
# foreign environments. # foreign environments.
virtualisation.libvirtd = { virtualisation.libvirtd = {
enable = true; enable = true;
qemu.package = pkgs.qemu_full;
qemu.ovmf.enable = true; qemu.ovmf.enable = true;
}; };
}) })