mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
# Licensed under GNU Lesser General Public License v3 or later, see COPYING.
|
|
# Copyright (c) 2019 Alexander Sosedkin and other contributors, see AUTHORS.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
build = {
|
|
arch = mkOption {
|
|
type = types.enum [ "aarch64" "i686" ];
|
|
default = if pkgs.stdenv.isAarch64 then "aarch64" else "i686";
|
|
internal = true;
|
|
description = "Destination arch.";
|
|
};
|
|
|
|
initialBuild = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
internal = true;
|
|
description = ''
|
|
Whether this is the initial build for the bootstrap zip ball.
|
|
Should not be enabled manually, see
|
|
<filename>initial-build.nix</filename>.
|
|
'';
|
|
};
|
|
|
|
installationDir = mkOption {
|
|
type = types.path;
|
|
internal = true;
|
|
readOnly = true;
|
|
description = "Path to installation directory.";
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = {
|
|
|
|
build.installationDir = "/data/data/com.termux.nix/files/usr";
|
|
|
|
};
|
|
|
|
}
|