Disable nix-index service

This commit is contained in:
Filippo Berto 2023-04-18 19:28:13 +02:00
parent 8ac3283b81
commit 3e5f48889a
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -1,4 +1,4 @@
{ config, ... }: {
{
programs.nix-index = {
enable = true;
# package = pkgs.unstable_pkgs.nix-index;
@ -6,26 +6,26 @@
enableZshIntegration = true;
};
systemd.user = {
services."nix-index" = {
Unit = {
Description = "Update the nix-locate database";
After = [ "network.target" ];
};
Service = {
Type = "oneshot";
ExecStart = "${config.programs.nix-index.package}/bin/nix-index";
};
};
# systemd.user = {
# services."nix-index" = {
# Unit = {
# Description = "Update the nix-locate database";
# After = [ "network.target" ];
# };
# Service = {
# Type = "oneshot";
# ExecStart = "${config.programs.nix-index.package}/bin/nix-index";
# };
# };
timers."nix-index" = {
Unit.Description = "Daily update the nix-locate database";
Timer = {
OnCalendar = "daily";
Persistent = true;
Unit = "nix-index.service";
};
Install.WantedBy = [ "timers.target" ];
};
};
# timers."nix-index" = {
# Unit.Description = "Daily update the nix-locate database";
# Timer = {
# OnCalendar = "daily";
# Persistent = true;
# Unit = "nix-index.service";
# };
# Install.WantedBy = [ "timers.target" ];
# };
# };
}