From b77283f7ba6a3cc7475526554484808d7684df64 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 20 Feb 2024 17:18:49 -0600 Subject: [PATCH] No registry stuff since I don't understand it --- modules/nixos/common.nix | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix index 77baa35..f9ae477 100644 --- a/modules/nixos/common.nix +++ b/modules/nixos/common.nix @@ -269,37 +269,29 @@ in { # This will add each flake input as a registry # To make nix3 commands consistent with your flake - registry = lib.mapAttrs (_: value: {flake = value;}) inputs; + # registry = lib.mapAttrs (_: value: {flake = value;}) inputs; settings = { trusted-users = ["root" "daniel"]; + experimental-features = lib.mkDefault ["nix-command" "flakes"]; + substituters = [ "https://cache.nixos.org/" "https://helix.cachix.org" "https://nix-community.cachix.org" "https://nix.h.lyte.dev" ]; + trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "h.lyte.dev:HeVWtne31ZG8iMf+c15VY3/Mky/4ufXlfTpT8+4Xbs0=" ]; - auto-optimise-store = true; + + auto-optimise-store = false; }; - - # registry = { - # self.flake = inputs.self; - - # nixpkgs = { - # from = { - # id = "nixpkgs"; - # type = "indirect"; - # }; - # flake = inputs.nixpkgs; - # }; - # }; }; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";