From 92ff9a23cfa63ce84601660da4a84102ecc2e9ca Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Thu, 22 Aug 2024 16:01:31 +0200 Subject: [PATCH] common: nix-options: directly set `flake-registry` Signed-off-by: Christoph Heiss --- common/nix-options.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/nix-options.nix b/common/nix-options.nix index dbcad26..11adb91 100644 --- a/common/nix-options.nix +++ b/common/nix-options.nix @@ -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 be the used system packages, such that `nix-shell` can pick them up