mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 00:48:27 +02:00
feat(darwin): new host - frieren
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
_:
|
||||
#############################################################
|
||||
#
|
||||
# Fern - MacBook Pro 2022 13-inch M2 16G, mainly for business.
|
||||
# Fern - MacBook Pro 2022 13-inch M2 16G.
|
||||
#
|
||||
#############################################################
|
||||
let
|
||||
|
||||
13
hosts/darwin-frieren/default.nix
Normal file
13
hosts/darwin-frieren/default.nix
Normal 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;
|
||||
}
|
||||
14
hosts/darwin-frieren/home.nix
Normal file
14
hosts/darwin-frieren/home.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user