Disable nix-index service
This commit is contained in:
parent
8ac3283b81
commit
3e5f48889a
1 changed files with 22 additions and 22 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, ... }: {
|
{
|
||||||
programs.nix-index = {
|
programs.nix-index = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# package = pkgs.unstable_pkgs.nix-index;
|
# package = pkgs.unstable_pkgs.nix-index;
|
||||||
|
|
@ -6,26 +6,26 @@
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user = {
|
# systemd.user = {
|
||||||
services."nix-index" = {
|
# services."nix-index" = {
|
||||||
Unit = {
|
# Unit = {
|
||||||
Description = "Update the nix-locate database";
|
# Description = "Update the nix-locate database";
|
||||||
After = [ "network.target" ];
|
# After = [ "network.target" ];
|
||||||
};
|
# };
|
||||||
Service = {
|
# Service = {
|
||||||
Type = "oneshot";
|
# Type = "oneshot";
|
||||||
ExecStart = "${config.programs.nix-index.package}/bin/nix-index";
|
# ExecStart = "${config.programs.nix-index.package}/bin/nix-index";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
timers."nix-index" = {
|
# timers."nix-index" = {
|
||||||
Unit.Description = "Daily update the nix-locate database";
|
# Unit.Description = "Daily update the nix-locate database";
|
||||||
Timer = {
|
# Timer = {
|
||||||
OnCalendar = "daily";
|
# OnCalendar = "daily";
|
||||||
Persistent = true;
|
# Persistent = true;
|
||||||
Unit = "nix-index.service";
|
# Unit = "nix-index.service";
|
||||||
};
|
# };
|
||||||
Install.WantedBy = [ "timers.target" ];
|
# Install.WantedBy = [ "timers.target" ];
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue