about summary refs log tree commit diff
path: root/nixos/modules/programs/command-not-found/command-not-found.pl
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-04-17 01:49:57 +0200
committermakefu <github@syntax-fehler.de>2017-04-17 16:48:47 +0200
commit5a5db609e5bd83bc589f36eef394f3ad172d6648 (patch)
tree821cb525ebe9bfb5fca3dc2f8d52a46a73752cff /nixos/modules/programs/command-not-found/command-not-found.pl
parentf0fac3b578086066b47360de17618448d066b30e (diff)
command-not-found: add options
add option to disable command-not-found as well as option to define dbPath.
Disabling this may remove the perl dependency for bash/zsh prompts
Diffstat (limited to 'nixos/modules/programs/command-not-found/command-not-found.pl')
-rw-r--r--nixos/modules/programs/command-not-found/command-not-found.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/programs/command-not-found/command-not-found.pl b/nixos/modules/programs/command-not-found/command-not-found.pl
index 5bdda26592e62..ab7aa204653cd 100644
--- a/nixos/modules/programs/command-not-found/command-not-found.pl
+++ b/nixos/modules/programs/command-not-found/command-not-found.pl
@@ -8,7 +8,7 @@ use Config;
 
 my $program = $ARGV[0];
 
-my $dbPath = "/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite";
+my $dbPath = "@dbPath@";
 
 my $dbh = DBI->connect("dbi:SQLite:dbname=$dbPath", "", "")
     or die "cannot open database `$dbPath'";