1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 02:37:09 +00:00

include etc in activate-system

Since the etc actiation now includes a content whitelist files might get
replaced automatically after system updates.  So including it in the
activation here should resolve most issues.
This commit is contained in:
Daiderd Jordan 2020-10-25 16:02:23 +01:00
parent 74eb216078
commit 1804b8ecd2
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -25,6 +25,8 @@ in
set -o pipefail
export PATH="${pkgs.gnugrep}/bin:${pkgs.coreutils}/bin:@out@/sw/bin:/usr/bin:/bin:/usr/sbin:/sbin"
systemConfig=$(cat ${config.system.profile}/systemConfig)
# 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
@ -34,6 +36,7 @@ in
# Prevent the current configuration from being garbage-collected.
ln -sfn /run/current-system /nix/var/nix/gcroots/current-system
${config.system.activationScripts.etc.text}
${config.system.activationScripts.keyboard.text}
'';
serviceConfig.RunAtLoad = true;