mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-09-11 12:49:18 +03:00
15 lines
452 B
Nix
15 lines
452 B
Nix
{ 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 'EVE'" ${config.out}/activate
|
||
grep "scutil --set HostName 'EVE'" ${config.out}/activate
|
||
echo checking defaults write in ${config.out}/activate-user >&2
|
||
'';
|
||
}
|