From 3e5f48889a2c5cf692041465cfcf28712ebd3259 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Tue, 18 Apr 2023 19:28:13 +0200 Subject: [PATCH] Disable nix-index service --- hm_modules/nix-index.nix | 44 ++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/hm_modules/nix-index.nix b/hm_modules/nix-index.nix index 8ec6d21..cbf1b23 100644 --- a/hm_modules/nix-index.nix +++ b/hm_modules/nix-index.nix @@ -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" ]; + # }; + # }; }