mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
module/nix: Add backward compat with nixos for binary caches
This commit is contained in:
parent
c1b61fc340
commit
07c4406897
1 changed files with 7 additions and 0 deletions
|
|
@ -6,9 +6,16 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nix;
|
cfg = config.nix;
|
||||||
|
renameNixOpt = old: new:
|
||||||
|
(mkRenamedOptionModule [ "nix" old ] [ "nix" new ]);
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
# Backward-compatibility with the NixOS options.
|
||||||
|
imports = [
|
||||||
|
(renameNixOpt "binaryCaches" "substituters")
|
||||||
|
(renameNixOpt "binaryCachePublicKeys" "trustedPublicKeys")
|
||||||
|
];
|
||||||
|
|
||||||
###### interface
|
###### interface
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue