1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Fix nix index db update

This commit is contained in:
Stefan Ellmauthaler 2022-06-09 13:53:57 +02:00
parent 10f1bd3878
commit f646a62be7
Failed to extract signature
2 changed files with 7 additions and 7 deletions

View File

@ -24,7 +24,7 @@
}; };
# enable deamon to generate nix-index-db # enable deamon to generate nix-index-db
nix-index-db-update.enable = false; nix-index-db-update.enable = true;
# add TUD vpn # add TUD vpn
openvpn.enable = true; openvpn.enable = true;

View File

@ -23,13 +23,13 @@ with lib; {
serviceConfig = { serviceConfig = {
CPUSchedulingPolicy = "idle"; CPUSchedulingPolicy = "idle";
IOSchedulingClass = "idle"; IOSchedulingClass = "idle";
ExecStartPre = '' ExecStartPre = [
+${pkgs.coreutils}/bin/mkdir -p /var/db/nix-index/ "+${pkgs.coreutils}/bin/mkdir -p /var/db/nix-index/"
+${pkgs.coreutils}/bin/chown nobody:nobody /var/db/nix-index/ "+${pkgs.coreutils}/bin/chown nobody:nobody /var/db/nix-index/"
''; ];
ExecStart = toString nix-index-db-update; ExecStart = toString nix-index-db-update;
User = nobody; User = "nobody";
Group = nobody; Group = "nobody";
}; };
}; };