13 lines
427 B
Nix
13 lines
427 B
Nix
{ lib, config, ... }:
|
||
|
||
{
|
||
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
|
||
'';
|
||
}
|