feat: static hostname - macOS

This commit is contained in:
Ryan Yin
2023-07-15 19:43:41 +08:00
parent fa9f23751c
commit cca05de49b
2 changed files with 11 additions and 2 deletions

View File

@@ -6,6 +6,9 @@
# #
############################################################# #############################################################
let
name = "harnomica";
in
{ {
imports = [ imports = [
../../modules/darwin/core.nix ../../modules/darwin/core.nix
@@ -13,4 +16,8 @@
../../secrets/darwin.nix ../../secrets/darwin.nix
]; ];
networking.hostName = name;
networking.computerName = name;
smb.NetBIOSName = name;
} }

View File

@@ -19,6 +19,8 @@
''; '';
defaults = { defaults = {
menuExtraClock.Show24Hour = true; # show 24 hour clock
# customize dock # customize dock
dock = { dock = {
autohide = true; autohide = true;
@@ -43,8 +45,8 @@
# customize trackpad # customize trackpad
trackpad = { trackpad = {
Clicking = true; # enable tap to click # tap - 轻触触摸板, click - 点击触摸板
Dragging = true; # enable tap to drag Clicking = true; # enable tap to click(轻触触摸板相当于点击)
TrackpadRightClick = true; # enable two finger right click TrackpadRightClick = true; # enable two finger right click
TrackpadThreeFingerDrag = true; # enable three finger drag TrackpadThreeFingerDrag = true; # enable three finger drag
}; };