diff --git a/common/configuration.nix b/common/configuration.nix index 877a596..a749223 100644 --- a/common/configuration.nix +++ b/common/configuration.nix @@ -28,10 +28,23 @@ in inputs.emacs-overlay.overlays.default ]; - nix.nixPath = [ # "/home/benson/.nix-defexpr/channels" - "nixpkgs=${inputs.nixpkgs}" - "nixos-config=${inputs.self}/hosts/${config.networking.hostName}/configuration.nix" - "/nix/var/nix/profiles/per-user/root/channels"]; + nix = { + nixPath = [ # "/home/benson/.nix-defexpr/channels" + "nixpkgs=${inputs.nixpkgs}" + "nixos-config=${inputs.self}/hosts/${config.networking.hostName}/configuration.nix" + "/nix/var/nix/profiles/per-user/root/channels"]; + + # MY GOD, this is what is used for nix develop, nix run, etc. + registry = { + system = { + from = { + type = "indirect"; + id = "system"; + }; + flake = inputs.nixpkgs; + }; + }; + }; nix.settings.experimental-features = "nix-command flakes"; diff --git a/home/users/benson.nix b/home/users/benson.nix index f38ed81..d8188ab 100644 --- a/home/users/benson.nix +++ b/home/users/benson.nix @@ -80,6 +80,8 @@ EDITOR = "emacsclient -n"; }; + nix.registry.nixpkgs.flake = inputs.nixpkgs; + # Let Home Manager install and manage itself. programs = { home-manager.enable = true; diff --git a/home/users/work.nix b/home/users/work.nix index 755c2b0..170b6fc 100644 --- a/home/users/work.nix +++ b/home/users/work.nix @@ -16,6 +16,8 @@ my.bash-config.enable = true; + nix.registry.nixpkgs.flake = inputs.nixpkgs; + # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release # introduces backwards incompatible changes.