blob: 02eaf3cbdf49f7c1a4f0363c73310e6aeb3b8d27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{ 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"
'';
}
|