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 = [
../../modules/darwin/core.nix
@@ -13,4 +16,8 @@
../../secrets/darwin.nix
];
networking.hostName = name;
networking.computerName = name;
smb.NetBIOSName = name;
}

View File

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