From cca05de49be809b1a2d76a68f31a88e4befa0c04 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 15 Jul 2023 19:43:41 +0800 Subject: [PATCH] feat: static hostname - macOS --- hosts/harmonica/default.nix | 7 +++++++ modules/darwin/apps.nix | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hosts/harmonica/default.nix b/hosts/harmonica/default.nix index 8ebd2365..e18a09b9 100644 --- a/hosts/harmonica/default.nix +++ b/hosts/harmonica/default.nix @@ -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; } diff --git a/modules/darwin/apps.nix b/modules/darwin/apps.nix index ca5eed3f..481d5cbb 100644 --- a/modules/darwin/apps.nix +++ b/modules/darwin/apps.nix @@ -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 };