nix-on-droid/modules/upgrade.nix
2021-12-17 12:46:55 +01:00

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
'';
};
}