Peter Hoeg 897834f015 nixos/nix-optimise: be smarter about when we run the store optimiser
We might be inside a NixOS container on a non-NixOS host, so instead of not
running at all inside a container, check if the nix-daemon socket is writable as
it will tell us if the store is managed from here or outside.

Fixes #63578
2019-07-03 09:37:14 +08:00
..
2019-06-17 13:25:50 +02:00
2018-11-29 20:27:45 -06:00
2019-04-29 14:05:50 +02:00
2019-04-29 14:05:50 +02:00
2019-05-01 17:20:26 -04:00
2019-06-17 13:25:50 +02:00
2018-07-03 13:55:27 +01:00
2018-09-16 21:48:18 +02:00
2019-03-20 00:02:45 +01:00
2018-07-20 18:48:37 +00:00
2019-05-05 22:14:24 +00:00
2019-05-30 18:10:29 +02:00
2019-05-08 09:26:32 +02:00
2019-04-23 20:19:33 -07:00
2018-10-16 10:38:45 +08:00
2019-02-03 20:10:13 +00:00
2019-03-20 00:02:45 +01:00
2019-02-06 22:35:58 -05:00