mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-23 09:18:35 +02:00
refactor: hosts - darwin
This commit is contained in:
13
hosts/darwin_harmonica/default.nix
Normal file
13
hosts/darwin_harmonica/default.nix
Normal 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;
|
||||
}
|
||||
17
hosts/darwin_harmonica/home.nix
Normal file
17
hosts/darwin_harmonica/home.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user