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
|
# 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;
|
||||||
|
|||||||
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user