diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/networking.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/networking.nix b/tests/networking.nix new file mode 100644 index 0000000..f89277a --- /dev/null +++ b/tests/networking.nix @@ -0,0 +1,14 @@ +{ 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 + grep "defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server 'NetBIOSName' -string 'EVE'" ${config.out}/activate-user + ''; +} |
