Fix nix-index

This commit is contained in:
Andrea Ciceri 2023-10-22 10:20:39 +02:00
parent 19f999514e
commit 92bf72e40b
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -1,15 +1,19 @@
{ {
config, config,
pkgs, pkgs,
fleetFlake,
lib,
... ...
}: { }: {
programs.nix-index.enable = true;
systemd.user.services.nix-index-update = { systemd.user.services.nix-index-update = {
Unit = {Description = "Update nix-index";}; Unit = {Description = "Update nix-index";};
Service = { Service = {
CPUSchedulingPolicy = "idle"; CPUSchedulingPolicy = "idle";
IOSchedulingClass = "idle"; IOSchedulingClass = "idle";
ExecStart = "${pkgs.nix-index}/bin/nix-index --path ${config.programs.password-store.settings.PASSWORD_STORE_DIR}"; ExecStart = "${pkgs.nix-index}/bin/nix-index --nixpkgs ${fleetFlake.inputs.nixpkgsUnstable}";
}; };
}; };