feat: disable nix channel

This commit is contained in:
Ryan Yin 2023-12-13 11:59:41 +08:00
parent d0ce0ffafd
commit 696f57b353
2 changed files with 2 additions and 0 deletions

View file

@ -29,6 +29,7 @@ In your NixOS configuration, adding the following module will achieve the mentio
{
# Make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
nix.registry.nixpkgs.flake = nixpkgs;
nix.channel.enable = false; # disable nix-channel, we use flakes instead.
# Make `nix repl '<nixpkgs>'` use the same nixpkgs as the one used by this flake.
environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}";

View file

@ -30,6 +30,7 @@ Flake Registry 是一个 Flake 注册中心,它可以帮助我们在使用 `ni
{
# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
nix.registry.nixpkgs.flake = nixpkgs;
nix.channel.enable = false; # disable nix-channel, we use flakes instead.
# make `nix repl '<nixpkgs>'` use the same nixpkgs as the one used by this flake.
environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}";