diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2024-06-09 21:30:54 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2024-06-09 21:42:36 +0200 |
| commit | 774000a0da2cd4f4e7cadda40fe39cba9ffee6c2 (patch) | |
| tree | c42cf7f91fc3f55507dbd2047863da2f7302cf0e /modules/nixos | |
| parent | 47fa8979557e642d81bb87089b2f667b7d4eada0 (diff) | |
nixos: nix: better way to not overwrite registry
Diffstat (limited to 'modules/nixos')
| -rw-r--r-- | modules/nixos/personal/nix.nix | 5 |
1 files changed, 1 insertions, 4 deletions
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 ( |
