nixfleet/hmModules/nix-index/default.nix
Andrea Ciceri 2d3e4844b7
Start refactoring
- remove emacs
- remove inputs
- trying to speed up evaluation
- update inputs
2024-09-19 14:34:37 +02:00

31 lines
653 B
Nix

{
config,
pkgs,
fleetFlake,
lib,
...
}: {
programs.nix-index.enable = true;
systemd.user.services.nix-index-update = {
Unit = {Description = "Update nix-index";};
Service = {
CPUSchedulingPolicy = "idle";
IOSchedulingClass = "idle";
ExecStart = "${pkgs.nix-index}/bin/nix-index --nixpkgs ${fleetFlake.inputs.nixpkgs}";
};
};
systemd.user.timers.nix-index-update = {
Unit = {Description = "Update nix-index";};
Timer = {
Unit = "nix-index-update.service";
OnCalendar = "monday *-*-* 10:00:00";
Persistent = true;
};
Install = {WantedBy = ["timers.target"];};
};
}