From 98778d9fdf6777f474650b34a9c2db6f1fe04e9c Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 15 May 2024 16:59:17 +0300 Subject: [PATCH] Add flake nixConfig to nix's config --- modules/nix.nix | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/nix.nix b/modules/nix.nix index 9f030d2..4f338c0 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -1,4 +1,4 @@ -{ inputs, lib, pkgs, ... }: with lib; merge +{ self, inputs, lib, pkgs, ... }: with lib; merge (systemConfiguration { environment.etc."flakes.json".text = strings.toJSON inputs; @@ -21,17 +21,17 @@ flake = value; }) inputs; - settings.experimental-features = [ - "auto-allocate-uids" - "ca-derivations" - "cgroups" - "flakes" - "nix-command" - "recursive-nix" - "repl-flake" - ]; - settings = { + experimental-features = [ + "auto-allocate-uids" + "ca-derivations" + "cgroups" + "flakes" + "nix-command" + "recursive-nix" + "repl-flake" + ]; + accept-flake-config = true; builders-use-substitutes = true; flake-registry = ""; # I DON'T WANT THE GLOBAL REGISTRY!!! @@ -40,7 +40,7 @@ trusted-users = [ "root" "@wheel" ]; use-cgroups = true; warn-dirty = false; - }; + } // (import (self + /flake.nix)).nixConfig; }; programs.nix-ld = enabled;