UGH, registries, yet another thing

This commit is contained in:
Benson Chu 2024-08-04 14:23:42 -05:00
parent 14484714cb
commit 9e4cb88d75
3 changed files with 21 additions and 4 deletions

View file

@ -28,10 +28,23 @@ in
inputs.emacs-overlay.overlays.default inputs.emacs-overlay.overlays.default
]; ];
nix.nixPath = [ # "/home/benson/.nix-defexpr/channels" nix = {
"nixpkgs=${inputs.nixpkgs}" nixPath = [ # "/home/benson/.nix-defexpr/channels"
"nixos-config=${inputs.self}/hosts/${config.networking.hostName}/configuration.nix" "nixpkgs=${inputs.nixpkgs}"
"/nix/var/nix/profiles/per-user/root/channels"]; "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"; nix.settings.experimental-features = "nix-command flakes";

View file

@ -80,6 +80,8 @@
EDITOR = "emacsclient -n"; EDITOR = "emacsclient -n";
}; };
nix.registry.nixpkgs.flake = inputs.nixpkgs;
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;

View file

@ -16,6 +16,8 @@
my.bash-config.enable = true; my.bash-config.enable = true;
nix.registry.nixpkgs.flake = inputs.nixpkgs;
# This value determines the Home Manager release that your configuration is # This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release # compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes. # introduces backwards incompatible changes.