mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
15 lines
509 B
Nix
15 lines
509 B
Nix
# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE.
|
|
|
|
{ config, lib, ... }:
|
|
|
|
{
|
|
config.build.activationAfter =
|
|
# TODO: remove when we stop supporting upgrades from <21.11
|
|
# Setups upgraded to 21.11 don't have the /dev/shm directory bootstrapped:
|
|
# https://github.com/t184256/nix-on-droid/issues/162
|
|
lib.mkIf (lib.versionOlder config.system.stateVersion "21.11") {
|
|
createDevShm = ''
|
|
mkdir -p ${config.build.installationDir}/dev/shm
|
|
'';
|
|
};
|
|
}
|