diff options
Diffstat (limited to 'layers/nix.nix')
| -rw-r--r-- | layers/nix.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/layers/nix.nix b/layers/nix.nix index 42d4729..02c37ac 100644 --- a/layers/nix.nix +++ b/layers/nix.nix @@ -145,4 +145,18 @@ in } ''); }; + # And the run script has it done via vsock port 1235 when the host's + # nixpkgs checkout changes its commit (with --nixpkgs-cache). + systemd.sockets.fc-drop-caches = { + wantedBy = [ "sockets.target" ]; + socketConfig = { + ListenStream = "vsock::1235"; + Accept = true; + MaxConnections = 1; + }; + }; + systemd.services."fc-drop-caches@" = { + serviceConfig.StandardInput = "socket"; + script = "/run/wrappers/bin/fc-drop-caches"; + }; } |
