Skip to content

Commit

Permalink
fix: disable channels (#161)
Browse files Browse the repository at this point in the history
On machines that have channels enabled but do not have them
properly initialized (such as the recent tuffy machine, but I've
had the same problem on my laptop elmira before), running any nix
command throws up a lot of warnings.

Since I prefer using new-style nix commands with the local flake
registry (as configured in this same file), I can disable channels
across the system. This will resolve this warning with no adverse
effects.
  • Loading branch information
NoRePercussions authored Dec 25, 2024
1 parent 716c00f commit ee3e738
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hosts/common/core/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
flake = inputs.nixpkgs;
};
};

# Since we are using flakes for most everything,
# remove channels to prevent heaps of warnings
# on systems without initialized channels
channel.enable = false;
};

nixpkgs = {
Expand Down

0 comments on commit ee3e738

Please sign in to comment.