summaryrefslogtreecommitdiff
path: root/modules/system
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 /modules/system
parent3dfc5da1e7d7a03256ccab1891b2d9ef9e40c299 (diff)
defaults: add option for NetBIOSName
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/defaults-write.nix2
-rw-r--r--modules/system/defaults/smb.nix13
2 files changed, 15 insertions, 0 deletions
diff --git a/modules/system/defaults-write.nix b/modules/system/defaults-write.nix
index e5c2cdd..eca78b6 100644
--- a/modules/system/defaults-write.nix
+++ b/modules/system/defaults-write.nix
@@ -26,6 +26,7 @@ let
LaunchServices = defaultsToList "com.apple.LaunchServices" cfg.LaunchServices;
dock = defaultsToList "com.apple.dock" cfg.dock;
finder = defaultsToList "com.apple.finder" cfg.finder;
+ smb = defaultsToList "/Library/Preferences/SystemConfiguration/com.apple.smb.server" cfg.smb;
trackpad = defaultsToList "com.apple.AppleMultitouchTrackpad" cfg.trackpad;
trackpadBluetooth = defaultsToList "com.apple.driver.AppleBluetoothMultitouch.trackpad" cfg.trackpad;
@@ -45,6 +46,7 @@ in
${concatStringsSep "\n" LaunchServices}
${concatStringsSep "\n" dock}
${concatStringsSep "\n" finder}
+ ${concatStringsSep "\n" smb}
${concatStringsSep "\n" trackpad}
${concatStringsSep "\n" trackpadBluetooth}
'';
diff --git a/modules/system/defaults/smb.nix b/modules/system/defaults/smb.nix
new file mode 100644
index 0000000..edc9d06
--- /dev/null
+++ b/modules/system/defaults/smb.nix
@@ -0,0 +1,13 @@
+{ config, lib, ... }:
+
+with lib;
+
+{
+ options = {
+ system.defaults.smb.NetBIOSName = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ description = "Hostname to use for NetBIOS.";
+ };
+ };
+}