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,11 +28,24 @@ in
inputs.emacs-overlay.overlays.default
];
nix.nixPath = [ # "/home/benson/.nix-defexpr/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";
# Enable networking

View file

@ -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;

View file

@ -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.