diff --git a/modules/system/activation-scripts.nix b/modules/system/activation-scripts.nix index 450d65b..9140163 100644 --- a/modules/system/activation-scripts.nix +++ b/modules/system/activation-scripts.nix @@ -68,6 +68,11 @@ in ${cfg.activationScripts.postActivation.text} + # Ensure /run exists. + if [ ! -e /run ]; then + ln -sfn private/var/run /run + fi + # Make this configuration the current configuration. # The readlink is there to ensure that when $systemConfig = /system # (which is a symlink to the store), /run/current-system is still