refactor: hosts - darwin

This commit is contained in:
Ryan Yin
2024-01-21 17:17:48 +08:00
parent cba3212896
commit 02e040d294
6 changed files with 5 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
_:
#############################################################
#
# Fern - MacBook Pro 2022 13-inch M2 16G, mainly for business.
#
#############################################################
let
hostname = "fern";
in {
networking.hostName = hostname;
networking.computerName = hostname;
system.defaults.smb.NetBIOSName = hostname;
}
+18
View File
@@ -0,0 +1,18 @@
{
programs.ssh = {
enable = true;
extraConfig = ''
Host github.com
Hostname github.com
# github is controlled by fern~
IdentityFile ~/.ssh/fern
# Specifies that ssh should only use the identity file explicitly configured above
# required to prevent sending default identity files first.
IdentitiesOnly yes
'';
};
modules.editors.emacs = {
enable = true;
};
}