From b7907aa122e4379849acf8f91d436cdb56a2160d Mon Sep 17 00:00:00 2001 From: Constantin Gierczak--Galle Date: Sun, 3 Nov 2024 16:17:02 +0100 Subject: [PATCH] Add nix config --- configuration.nix | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 684fbbe..e4e985d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, pkgs, inputs, ... }: let address = "129.199.146.101"; in @@ -69,5 +69,24 @@ in recommendedGzipSettings = true; }; + nix = { + settings = { + trusted-users = [ "@wheel" "root" "nix-ssh" ]; + auto-optimise-store = true; + }; + #package = pkgs.nixUnstable; + extraOptions = let + empty_registry = builtins.toFile "empty-flake-registry.json" + ''{"flakes":[],"version":2}''; + in '' + experimental-features = nix-command flakes + flake-registry = ${empty_registry} + builders-use-substitutes = true + ''; + registry.nixpkgs.flake = inputs.nixpkgs; + nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; + }; + + system.stateVersion = "24.05"; }