1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 16:27:03 +00:00
nix-darwin/tests/networking-hostname.nix

15 lines
452 B
Nix
Raw Normal View History

2018-01-05 00:15:11 +01:00
{ config, pkgs, ... }:
{
networking.hostName = "EVE";
networking.computerName = "EVEs MacBook Pro";
2018-01-05 00:15:11 +01:00
test = ''
echo checking hostname in /activate >&2
grep "scutil --set ComputerName 'EVEs MacBook Pro'" ${config.out}/activate
2018-01-05 00:15:11 +01:00
grep "scutil --set LocalHostName 'EVE'" ${config.out}/activate
grep "scutil --set HostName 'EVE'" ${config.out}/activate
echo checking defaults write in ${config.out}/activate-user >&2
'';
}