mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-22 01:19:45 +01:00
feat: use the same nixpkgs as much as possible
This commit is contained in:
@@ -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, ...}: {};
|
||||
|
||||
Reference in New Issue
Block a user