remove nix registry if nix is disabled
Some checks reported errors
Hydra nixosConfigurations.not522 Hydra build #25196 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.not522-installer Hydra build #25197 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #25193 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #25194 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.rainbow-resort Hydra build #25199 of nixos-config:pr618:nixosConfigurations.rainbow-resort
Hydra packages.x86_64-linux.package-updater Hydra build #25203 of nixos-config:pr618:packages.x86_64-linux.package-updater
Hydra packages.aarch64-linux.package-updater Hydra build #25201 of nixos-config:pr618:packages.aarch64-linux.package-updater
Hydra packages.riscv64-linux.package-updater Hydra build #25202 of nixos-config:pr618:packages.riscv64-linux.package-updater
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #25195 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.thinkrac Hydra build #25200 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra nixosConfigurations.pc-installer Hydra build #25198 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra checks.x86_64-linux.containers-default Hydra build #25192 of nixos-config:pr618:checks.x86_64-linux.containers-default

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-11 10:28:36 +01:00
parent 24f25ca3bb
commit eaaa6c9546

View file

@ -1,6 +1,7 @@
{ {
lib, lib,
pureInputs, pureInputs,
config,
... ...
}: }:
let let
@ -15,7 +16,7 @@ in
nix.registry = nixRegistry; nix.registry = nixRegistry;
environment.etc = mapAttrs' (name: value: { environment.etc = mapAttrs' (name: value: {
name = "nix/inputs/${name}"; name = "nix/inputs/${name}";
value = { value = lib.mkIf config.nix.enable {
source = value.outPath; source = value.outPath;
}; };
}) flakes; }) flakes;