summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-01-05 00:15:11 +0100
committerDaiderd Jordan <daiderd@gmail.com>2018-01-05 00:16:09 +0100
commit7eb4e21075843a85ce9d31bbcaefe23d688e8f7d (patch)
treefcc445e216dddf66df2f4b57d128241955ef9be4 /tests
parent3dfc5da1e7d7a03256ccab1891b2d9ef9e40c299 (diff)
defaults: add option for NetBIOSName
Diffstat (limited to 'tests')
-rw-r--r--tests/networking.nix14
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
+ '';
+}