From 774000a0da2cd4f4e7cadda40fe39cba9ffee6c2 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 9 Jun 2024 21:30:54 +0200 Subject: nixos: nix: better way to not overwrite registry --- modules/nixos/personal/nix.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'modules/nixos/personal/nix.nix') diff --git a/modules/nixos/personal/nix.nix b/modules/nixos/personal/nix.nix index b51cc25..a79e35b 100644 --- a/modules/nixos/personal/nix.nix +++ b/modules/nixos/personal/nix.nix @@ -17,10 +17,7 @@ in { }; config = lib.mkIf cfg.enable { - nixpkgs.config = {allowUnfree = true;}; - environment.etc."nix/registry.json".text = lib.mkForce (builtins.toJSON { - version = 2; - }); + nixpkgs = {config.allowUnfree = true; flake = lib.mkDefault { setNixPath = false; setFlakeRegistry = false;};}; nix = { package = lib.getAttr ( -- cgit v1.2.3