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:
parent
74eb216078
commit
1804b8ecd2
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue