feat: use the same nixpkgs as much as possible

This commit is contained in:
Ryan Yin
2023-08-04 22:37:18 +08:00
parent a946ff7cce
commit 664506b6cb

View File

@@ -14,6 +14,15 @@ in
modules =
nixos-modules
++ [
{
# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
nix.registry.nixpkgs.flake = nixpkgs;
# make `nix repl '<nixpkgs>'` use the same nixpkgs as the one used by this flake.
environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}";
nix.nixPath = ["/etc/nix/inputs"];
}
nixos-generators.nixosModules.all-formats
{
# formatConfigs.iso = {config, ...}: {};