Use nix-index for command-not-found

This commit is contained in:
Charlotte Van Petegem 2020-05-08 13:44:37 +02:00
parent 7e1ef25ec6
commit 771ffc489a
2 changed files with 25 additions and 3 deletions

View file

@ -44,12 +44,36 @@
htop
inotify-tools
ncdu
nix-index
(import ../../programs/pass/default.nix { inherit pkgs; })
(import ../../programs/ssh/default.nix { inherit pkgs; })
ripgrep
unzip
youtube-dl
];
systemd.user = {
services.nix-index = {
Unit = {
Description = "Service to run nix-index";
};
Service = {
Type = "oneshot";
ExecStart = "${pkgs.nix-index}/bin/nix-index";
};
};
timers.nix-index = {
Unit = {
Description = "Timer that starts nix-index every two hours";
PartOf = [ "nix-index.service" ];
};
Timer = {
OnCalendar = "00/2:30";
};
Install = {
WantedBy = [ "default.target" ];
};
};
};
};
services = {