From 78e101f434e8290a60ab66c18ff265fc1ea686d4 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sun, 4 Aug 2024 13:55:35 -0400 Subject: [PATCH] Prevent nix.conf in $HOME (cachix being offender) Caches are managed globally --- home/nix.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/nix.nix b/home/nix.nix index 95b25bd..43a1a93 100644 --- a/home/nix.nix +++ b/home/nix.nix @@ -1,4 +1,8 @@ { # Garbage collect automatically every week nix.gc.automatic = true; + + # Nix configuration is managed globally by nix-darwin. + # Prevent $HOME nix.conf from disrespecting it. + home.file."~/.config/nix/nix.conf".text = ""; }