mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
14 lines
506 B
Nix
14 lines
506 B
Nix
{ 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
|
|
script=$(cat ${config.out}/Library/LaunchDaemons/org.nixos.activate-system.plist | awk -F'[< ]' '$3 ~ "^/nix/store/.*" {print $3}')
|
|
grep "ln -sfn .* /run/current-system" "$script"
|
|
'';
|
|
}
|