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" ]; + # }; + # }; }