feat(darwin): new host - frieren

This commit is contained in:
Ryan Yin
2025-05-13 12:50:26 +08:00
parent 65e1ea4fc5
commit e13079f7a8
9 changed files with 87 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
_:
#############################################################
#
# Fern - MacBook Pro 2022 13-inch M2 16G, mainly for business.
# Fern - MacBook Pro 2022 13-inch M2 16G.
#
#############################################################
let

View File

@@ -0,0 +1,13 @@
_:
#############################################################
#
# Fern - MacBook Pro 2024 14-inch M4 Pro 48G, mainly for business.
#
#############################################################
let
hostname = "frieren";
in {
networking.hostName = hostname;
networking.computerName = hostname;
system.defaults.smb.NetBIOSName = hostname;
}

View File

@@ -0,0 +1,14 @@
{
programs.ssh = {
enable = true;
extraConfig = ''
Host github.com
Hostname github.com
# github is controlled by frieren~
IdentityFile ~/.ssh/frieren
# Specifies that ssh should only use the identity file explicitly configured above
# required to prevent sending default identity files first.
IdentitiesOnly yes
'';
};
}