mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-17 04:51:31 +03:00
826315aa11
For now, device-name... but see following commit.
21 lines
427 B
Nix
21 lines
427 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
inherit (lib) mkIf;
|
|
|
|
deviceName = config.mobile.device.name;
|
|
in
|
|
{
|
|
config = mkIf (!config.mobile.rootfs.shared.enabled) {
|
|
system.extraSystemBuilderCmds = ''
|
|
echo ":: Adding Mobile NixOS information to the build..."
|
|
(
|
|
PS4=" $ "; set -x
|
|
mkdir -p $out/mobile-nixos
|
|
cd $out/mobile-nixos
|
|
echo "${deviceName}" > device-name
|
|
)
|
|
'';
|
|
};
|
|
}
|