From e8a037879012197b087c4e1dab31d33bcc48a17b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 2 Jan 2018 12:36:20 -0800 Subject: Allow for postActivation scripts, that happen last --- modules/system/activation-scripts.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/system') diff --git a/modules/system/activation-scripts.nix b/modules/system/activation-scripts.nix index 8e8c4f3..c1b506c 100644 --- a/modules/system/activation-scripts.nix +++ b/modules/system/activation-scripts.nix @@ -59,6 +59,8 @@ in ${cfg.activationScripts.time.text} ${cfg.activationScripts.networking.text} + ${cfg.activationScripts.extraPostActivation.text} + # 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 @@ -92,13 +94,17 @@ in ${cfg.activationScripts.defaults.text} ${cfg.activationScripts.userLaunchd.text} + ${cfg.activationScripts.extraUserPostActivation.text} + exit $_status ''; # Extra activation scripts, that can be customized by users # don't use this unless you know what you are doing. system.activationScripts.extraActivation.text = mkDefault ""; + system.activationScripts.extraPostActivation.text = mkDefault ""; system.activationScripts.extraUserActivation.text = mkDefault ""; + system.activationScripts.extraUserPostActivation.text = mkDefault ""; }; } -- cgit v1.2.3