2024-09-10 21:10:38 +00:00
|
|
|
|
{ lib, config, pkgs, ... }:
|
2018-01-04 23:15:11 +00:00
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
networking.hostName = "EVE";
|
2020-09-01 01:01:41 +00:00
|
|
|
|
networking.computerName = "EVE’s MacBook Pro";
|
2018-01-04 23:15:11 +00:00
|
|
|
|
|
|
|
|
|
test = ''
|
|
|
|
|
echo checking hostname in /activate >&2
|
2020-09-01 01:01:41 +00:00
|
|
|
|
grep "scutil --set ComputerName 'EVE’s MacBook Pro'" ${config.out}/activate
|
2024-09-10 21:10:38 +00:00
|
|
|
|
grep "scutil --set LocalHostName ${lib.escapeShellArg "EVE"}" ${config.out}/activate
|
|
|
|
|
grep "scutil --set HostName ${lib.escapeShellArg "EVE"}" ${config.out}/activate
|
2018-01-04 23:15:11 +00:00
|
|
|
|
echo checking defaults write in ${config.out}/activate-user >&2
|
|
|
|
|
'';
|
|
|
|
|
}
|