nixos: nix: flakes: disable flake-registry
This commit is contained in:
parent
ada1f8980e
commit
4dba4df4bd
1 changed files with 11 additions and 1 deletions
|
@ -1,10 +1,20 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
# Enable Flakes
|
# Enable Flakes
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||||
|
|
||||||
# Disable nix-channel
|
# Disable nix-channel
|
||||||
nix.channel.enable = false;
|
nix.channel.enable = false;
|
||||||
|
|
||||||
|
# Disable flake-registry
|
||||||
|
# https://nixos-and-flakes.thiscute.world/best-practices/nix-path-and-flake-registry
|
||||||
|
nix.settings.flake-registry = "";
|
||||||
|
nix.registry.nixpkgs.flake = inputs.nixpkgs;
|
||||||
|
nix.registry.nixpkgs-stable.flake = inputs.nixpkgs-stable;
|
||||||
|
|
||||||
# Install Git
|
# Install Git
|
||||||
environment.systemPackages = [pkgs.git];
|
environment.systemPackages = [pkgs.git];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue