From f3527f91c12266615c0e7b96d440b6dbf9c8ebd9 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.dev>
Date: Sat, 16 Nov 2024 15:12:01 +0000
Subject: [PATCH] Add myself as a trusted Nix store user

Allows using Cachix caching in devenv.
---
 lib/nixos/configuration.nix | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/nixos/configuration.nix b/lib/nixos/configuration.nix
index 3d195320..0b816711 100644
--- a/lib/nixos/configuration.nix
+++ b/lib/nixos/configuration.nix
@@ -213,6 +213,10 @@ in
   zramSwap.enable = true;
 
   nix = {
+    extraOptions = ''
+      trusted-users = root ${username}
+    '';
+
     gc = {
       automatic = true;
       dates = "daily";