nix: Rename extraConfig to extraOptions

This commit is contained in:
Zhong Jianxin 2022-04-11 10:44:25 +08:00
parent 6c59137a11
commit 2ad1fd7f68

View file

@ -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 {