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:
parent
10f1bd3878
commit
f646a62be7
@ -24,7 +24,7 @@
|
||||
};
|
||||
|
||||
# enable deamon to generate nix-index-db
|
||||
nix-index-db-update.enable = false;
|
||||
nix-index-db-update.enable = true;
|
||||
|
||||
# add TUD vpn
|
||||
openvpn.enable = true;
|
||||
|
||||
@ -23,13 +23,13 @@ with lib; {
|
||||
serviceConfig = {
|
||||
CPUSchedulingPolicy = "idle";
|
||||
IOSchedulingClass = "idle";
|
||||
ExecStartPre = ''
|
||||
+${pkgs.coreutils}/bin/mkdir -p /var/db/nix-index/
|
||||
+${pkgs.coreutils}/bin/chown nobody:nobody /var/db/nix-index/
|
||||
'';
|
||||
ExecStartPre = [
|
||||
"+${pkgs.coreutils}/bin/mkdir -p /var/db/nix-index/"
|
||||
"+${pkgs.coreutils}/bin/chown nobody:nobody /var/db/nix-index/"
|
||||
];
|
||||
ExecStart = toString nix-index-db-update;
|
||||
User = nobody;
|
||||
Group = nobody;
|
||||
User = "nobody";
|
||||
Group = "nobody";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user