2017-05-13 23:19:07 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.activate-system.enable = true;
|
|
|
|
|
|
|
|
test = ''
|
|
|
|
echo checking activation service in /Library/LaunchDaemons >&2
|
|
|
|
grep "org.nixos.activate-system" ${config.out}/Library/LaunchDaemons/org.nixos.activate-system.plist
|
|
|
|
|
|
|
|
echo checking activation of /run/current-system >&2
|
2024-08-31 08:27:10 +00:00
|
|
|
script=$(cat ${config.out}/Library/LaunchDaemons/org.nixos.activate-system.plist | awk -F'[< ]' '$6 ~ "^/nix/store/.*" {print $6}')
|
2017-05-13 23:19:07 +00:00
|
|
|
grep "ln -sfn .* /run/current-system" "$script"
|
|
|
|
'';
|
|
|
|
}
|