mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-27 11:21:03 +01:00
feat: static hostname - macOS
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user