diff --git a/quinn/etc/nixos/configuration.nix b/quinn/etc/nixos/configuration.nix index af9b8d1..fccd637 100644 --- a/quinn/etc/nixos/configuration.nix +++ b/quinn/etc/nixos/configuration.nix @@ -94,6 +94,7 @@ htop lsof #mongodb + ndisc6 neovim nginx poetry @@ -113,6 +114,19 @@ "unifi-controller" ]; + # Enable the helpful "command-not-found" that tells which packages may have the command in question. + # This makes system configuration troubleshooting much faster since I can attempt a basic command 'foo' + # and if 'foo' isn't installed it suggests an installation target. + # If you run 'command-not-found' and it complains about + # DBI connect('dbname=/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite','',...) failed: unable to open database file at /run/current-system/sw/bin/command-not-found line 13. + # cannot open database `/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite' at /run/current-system/sw/bin/command-not-found line 13. + # + # Then you can recreate the SQLite DB with 'sudo nix-channel --list' and making sure a channel like 'nixos https://nixos.org/channels/nixos-24.05' is present. + # Anything that ends in 'nixos-...' should work. + # Then run 'sudo nix-channel --update' + # See https://discourse.nixos.org/t/command-not-found-unable-to-open-database/3807/7 + programs.command-not-found.enable = true; + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; @@ -276,7 +290,7 @@ } { addressConfig = { Address="::/0"; - Scope="global"; + Scope="global"; }; }];