From 2ad1fd7f68313d2d4969c18fced30cf69fccffe2 Mon Sep 17 00:00:00 2001 From: Zhong Jianxin Date: Mon, 11 Apr 2022 10:44:25 +0800 Subject: [PATCH] nix: Rename extraConfig to extraOptions --- modules/environment/nix.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/environment/nix.nix b/modules/environment/nix.nix index 48cc44a..36ccf77 100644 --- a/modules/environment/nix.nix +++ b/modules/environment/nix.nix @@ -20,6 +20,7 @@ in imports = [ (renameNixOpt "binaryCaches" "substituters") (renameNixOpt "binaryCachePublicKeys" "trustedPublicKeys") + (renameNixOpt "extraConfig" "extraOptions") ]; ###### interface @@ -124,7 +125,7 @@ in ''; }; - extraConfig = mkOption { + extraOptions = mkOption { type = types.lines; default = ""; description = "Extra config to be appended to /etc/nix/nix.conf."; @@ -143,7 +144,7 @@ in sandbox = false substituters = ${concatStringsSep " " cfg.substituters} trusted-public-keys = ${concatStringsSep " " cfg.trustedPublicKeys} - ${cfg.extraConfig} + ${cfg.extraOptions} ''; "nix/registry.json".text = builtins.toJSON {