nix: enable overriding nix.registry.nixpkgs
authorJulien Moutinho <julm+julm-nix@sourcephile.fr>
Sun, 22 May 2022 21:38:07 +0000 (23:38 +0200)
committerJulien Moutinho <julm+julm-nix@sourcephile.fr>
Sat, 28 May 2022 22:52:02 +0000 (00:52 +0200)
flake.nix

index 87134444bafc195dfa41ce0d9db1a2e7c46af84e..a5f183146615203cd8a8df7e896b607b9198b9ca 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -57,7 +57,7 @@ outputs = inputs: let
         inputs.nixpkgs.nixosModules.notDetected
         inputs.home-manager.nixosModules.home-manager
         ({ pkgs, ... }: {
-          nix.registry.nixpkgs.flake = inputs.nixpkgs;
+          nix.registry.nixpkgs = lib.mkDefault { flake = inputs.nixpkgs; };
           nix.package = pkgs.nixFlakes;
           nix.extraOptions = "experimental-features = nix-command flakes";
           #nixpkgs.overlays = import nixpkgs/overlays.nix;