mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 01:38:28 +02:00
feat: modular ssh config
This commit is contained in:
@@ -9,4 +9,17 @@
|
||||
modules.desktop.i3 = {
|
||||
nvidia = false;
|
||||
};
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
Host github.com
|
||||
Hostname github.com
|
||||
# github is controlled by shoukei~
|
||||
IdentityFile ~/.ssh/shoukei
|
||||
# Specifies that ssh should only use the identity file explicitly configured above
|
||||
# required to prevent sending default identity files first.
|
||||
IdentitiesOnly yes
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
1. `nozomi`: Lichee Pi 4A, TH1520(4xC910@2.0G), 8GB RAM + 32G eMMC + 64G SD Card.
|
||||
2. `yukina`: Lichee Pi 4A(Internal Test Version), TH1520(4xC910@2.0G), 8GB RAM + 8G eMMC + 128G SD Card.
|
||||
3. `chiaya`: Milk-V Mars, JH7110(4xU74@1.5 GHz), 4G RAM + No eMMC + 64G SD Card.
|
||||
4. `12kingdoms`: Currently only one aarch64 host
|
||||
4. `12kingdoms`:
|
||||
1. `shoukei`: NixOS
|
||||
1. `suzu`: Orange Pi 5, RK3588s(4xA76 + 4xA55), GPU(4Cores, Mail-G610), NPU(6Tops@int8), 8G RAM + 256G SSD.
|
||||
|
||||
|
||||
|
||||
14
hosts/fern/home.nix
Normal file
14
hosts/fern/home.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
_: {
|
||||
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
|
||||
'';
|
||||
};
|
||||
}
|
||||
14
hosts/harmonica/home.nix
Normal file
14
hosts/harmonica/home.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
_: {
|
||||
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
|
||||
'';
|
||||
};
|
||||
}
|
||||
24
hosts/idols/ai/home.nix
Normal file
24
hosts/idols/ai/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
modules.desktop.hyprland = {
|
||||
nvidia = false;
|
||||
# settings = {
|
||||
# monitor = "";
|
||||
# };
|
||||
};
|
||||
|
||||
modules.desktop.i3 = {
|
||||
nvidia = false;
|
||||
};
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
Host github.com
|
||||
# github is controlled by gluttony~
|
||||
IdentityFile ~/.ssh/gluttony
|
||||
# Specifies that ssh should only use the identity file explicitly configured above
|
||||
# required to prevent sending default identity files first.
|
||||
IdentitiesOnly yes
|
||||
'';
|
||||
};
|
||||
}
|
||||
2
hosts/idols/aquamarine/home.nix
Normal file
2
hosts/idols/aquamarine/home.nix
Normal file
@@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
||||
2
hosts/idols/kana/home.nix
Normal file
2
hosts/idols/kana/home.nix
Normal file
@@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
||||
2
hosts/idols/ruby/home.nix
Normal file
2
hosts/idols/ruby/home.nix
Normal file
@@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user