blob: 9e8c6fddc17dc851a60ff5d225a6e7b94d910371 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{ lib, config, pkgs, ... }:
{
networking.hostName = "EVE";
networking.computerName = "EVE’s MacBook Pro";
test = ''
echo checking hostname in /activate >&2
grep "scutil --set ComputerName 'EVE’s MacBook Pro'" ${config.out}/activate
grep "scutil --set LocalHostName ${lib.escapeShellArg "EVE"}" ${config.out}/activate
grep "scutil --set HostName ${lib.escapeShellArg "EVE"}" ${config.out}/activate
echo checking defaults write in ${config.out}/activate-user >&2
'';
}
|