feat: disable nix channel

This commit is contained in:
Ryan Yin
2023-12-13 11:57:59 +08:00
parent 393338a23d
commit ca8f0dc166
3 changed files with 7 additions and 11 deletions

View File

@@ -23,9 +23,7 @@ in
{
# 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"];
nix.channel.enable = false; # disable nix-channel, we use flakes instead.
}
] ++ (if (home-module != null) then [
home-manager.nixosModules.home-manager