From 7d376389468f5a92f4ec19c1b73bd23e794bcead Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Fri, 12 Jan 2024 09:07:28 +0100 Subject: [PATCH] Nix-index: remove service and timer --- modules/hm/nix-index.nix | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/modules/hm/nix-index.nix b/modules/hm/nix-index.nix index a433398..61f1fc5 100644 --- a/modules/hm/nix-index.nix +++ b/modules/hm/nix-index.nix @@ -1,31 +1,8 @@ -{ config, lib, ... }: { +{ programs.nix-index = { enable = true; # package = pkgs.unstable_pkgs.nix-index; enableBashIntegration = true; enableZshIntegration = true; }; - - systemd.user = lib.attrsets.optionalAttrs config.programs.nix-index.enable { - 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" ]; - }; - }; }