Fix nix-locate update timer

This commit is contained in:
Filippo Berto 2022-05-16 10:53:20 +02:00
parent 36757064d7
commit 421aed8c29

View file

@ -12,9 +12,6 @@
Description = "Update the nix-locate database";
After = [ "network.target" ];
};
Install = {
WantedBy = [ "default.target" ];
};
Service = {
Type = "oneshot";
ExecStart = "${pkgs.nix-index}/bin/nix-index";
@ -22,9 +19,8 @@
};
timers."nix-index" = {
Unit.Description = "Update the nix-locate database";
Time = { OnCalendar = "weekly"; Persistent = true; };
Install.WantedBy = [ "timers.target" ];
Unit.Description = "Daily update the nix-locate database";
Timer = { OnCalendar = "daily"; Persistent = true; Unit = "nix-index.service";};
};
};
}