mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-19 23:03:11 +00:00
15 lines
429 B
Nix
15 lines
429 B
Nix
|
{ config, ... }:
|
||
|
|
||
|
{
|
||
|
nix.enable = false;
|
||
|
nix.package = throw "`nix.package` used when `nix.enable` is turned off";
|
||
|
|
||
|
test = ''
|
||
|
printf >&2 'checking for unexpected Nix binary in /sw/bin\n'
|
||
|
[[ -e ${config.out}/sw/bin/nix-env ]] && exit 1
|
||
|
|
||
|
printf >&2 'checking for unexpected nix-daemon plist in /Library/LaunchDaemons\n'
|
||
|
[[ -e ${config.out}/Library/LaunchDaemons/org.nixos.nix-daemon.plist ]] && exit 1
|
||
|
'';
|
||
|
}
|