Fix nix-locate update timer
This commit is contained in:
parent
36757064d7
commit
421aed8c29
1 changed files with 2 additions and 6 deletions
|
|
@ -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";};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue