nix-on-droid/modules/build/initial-build.nix
Tobias Happ 90e5fb2f49 Fix issues of lazy install of login-inner
If initalisation is done, a new session would result in a reinit as
login-inner is not installed. The file /etc/UNINTIALISED helps to
prevent this from happening.

The same applies to any logic like home-manager sourcing which would
only take effect after restarting the app.
2020-01-04 00:54:01 +01:00

47 lines
979 B
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.channel = {
nixpkgs = mkOption {
type = types.str;
default = "https://nixos.org/channels/nixos-19.09";
description = "Channel URL for nixpkgs.";
};
nix-on-droid = mkOption {
type = types.str;
default = "https://github.com/t184256/nix-on-droid-bootstrap/archive/master.tar.gz";
description = "Channel URL for nix-on-droid.";
};
};
};
###### implementation
config = {
build.initialBuild = true;
# /etc/group and /etc/passwd need to be build on target machine because
# uid and gid need to be determined.
environment.etc = {
"group".enable = false;
"passwd".enable = false;
"UNINTIALISED".text = "";
};
};
}