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-05-22 08:40:01 -07:00
2019-04-18 23:07:14 -04:00
2018-11-16 11:43:42 +01:00
2018-09-28 22:28:26 +08:00
2019-05-26 22:02:43 +03:00
2018-04-14 11:02:24 +01:00
2018-11-03 00:56:39 -05:00