common: nix-options: directly set flake-registry

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-08-22 16:01:31 +02:00
parent 1f851ab8b9
commit 92ff9a23cf
Signed by: c8h4
GPG key ID: 1538094429952F86

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
documentation = {
@ -22,8 +22,7 @@
log-lines = 32;
# basically pwn-as-a-service
accept-flake-config = false;
# set by `nix.registry.nixpkgs.flake`
flake-registry = "/etc/nix/registry.json";
flake-registry = config.nix.registry.nixpkgs.flake;
};
# Let <nixpkgs> be the used system packages, such that `nix-shell` can pick them up