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

View File

@@ -0,0 +1,13 @@
_:
#############################################################
#
# Harmonica - MacBook Pro 2020 13-inch i5 16G, mainly for personal use
#
#############################################################
let
hostname = "harmonica";
in {
networking.hostName = hostname;
networking.computerName = hostname;
system.defaults.smb.NetBIOSName = hostname;
}

View File

@@ -0,0 +1,17 @@
_: {
programs.ssh = {
enable = true;
extraConfig = ''
Host github.com
Hostname github.com
# github is controlled by harmonica~
IdentityFile ~/.ssh/harmonica
# 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;
};
}