mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
Merge pull request #64 from pjan/fix/47
This commit is contained in:
commit
2c4444ede4
2 changed files with 5 additions and 4 deletions
|
@ -7,10 +7,10 @@ let
|
|||
cfg = config.networking;
|
||||
|
||||
hostName = optionalString (cfg.hostName != null) ''
|
||||
scutil --set ComputerName "${cfg.hostName}"
|
||||
scutil --set LocalHostName "${cfg.hostName}"
|
||||
scutil --set HostName "${cfg.hostName}"
|
||||
defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "${cfg.hostName}"
|
||||
scutil --set ComputerName '${cfg.hostName}'
|
||||
scutil --set LocalHostName '${cfg.hostName}'
|
||||
scutil --set HostName '${cfg.hostName}'
|
||||
defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string '${cfg.hostName}'
|
||||
'';
|
||||
|
||||
in
|
||||
|
|
|
@ -91,6 +91,7 @@ let
|
|||
|
||||
tests.environment-path = makeTest ./tests/environment-path.nix;
|
||||
tests.launchd-setenv = makeTest ./tests/launchd-setenv.nix;
|
||||
tests.networking = makeTest ./tests/networking.nix;
|
||||
tests.services-activate-system = makeTest ./tests/services-activate-system.nix;
|
||||
tests.system-defaults-write = makeTest ./tests/system-defaults-write.nix;
|
||||
tests.system-packages = makeTest ./tests/system-packages.nix;
|
||||
|
|
Loading…
Add table
Reference in a new issue