mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
15 lines
580 B
Nix
15 lines
580 B
Nix
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
networking.computerName = "\"Quotey McQuote's Macbook Pro\"";
|
|
networking.hostName = "\"Quotey-McQuote's-Macbook-Pro\"";
|
|
|
|
test = ''
|
|
echo checking hostname in /activate >&2
|
|
grep "scutil --set ComputerName '"\""Quotey McQuote's Macbook Pro"\""'" ${config.out}/activate
|
|
grep "scutil --set LocalHostName '"\""Quotey-McQuote's-Macbook-Pro"\""'" ${config.out}/activate
|
|
grep "scutil --set HostName "'"\""Quotey-McQuote's-Macbook-Pro"\""'" ${config.out}/activate
|
|
echo checking defaults write in ${config.out}/activate-user >&2
|
|
'';
|
|
}
|