1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00
nix-darwin/tests/networking-hostname.nix
Daiderd Jordan d4b34322c5
networking: don't set NetBIOSName
This doesn't look like the hostname on my system, it has an extra unique prefix.
2018-01-17 20:09:24 +01:00

13 lines
385 B
Nix

{ config, pkgs, ... }:
{
networking.hostName = "EVE";
test = ''
echo checking hostname in /activate >&2
grep "scutil --set ComputerName 'EVE'" ${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
'';
}