mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-13 16:12:40 +02:00
feat: sshkey romantic, and yazi theme
This commit is contained in:
Generated
+3
-3
@@ -481,10 +481,10 @@
|
|||||||
"mysecrets": {
|
"mysecrets": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703047359,
|
"lastModified": 1703697935,
|
||||||
"narHash": "sha256-Wx4rpa+oTPMRgUcUkhUq4oKBvvPZR+4U1YMnRB6rAQU=",
|
"narHash": "sha256-tRwFFk6ICMlVAv8Ko4MV7FObX/cSeiZis2FcIFlw8uQ=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "4126e1894fbc8a2ce260def885dcc6ad558a52ca",
|
"rev": "a5143705420a687ad535fdcff4765ee409d6e494",
|
||||||
"shallow": true,
|
"shallow": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://git@github.com/ryan4yin/nix-secrets.git"
|
"url": "ssh://git@github.com/ryan4yin/nix-secrets.git"
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
_: {
|
{mysecrets, ...}: {
|
||||||
|
home.file.".ssh/romantic.pub".source = "${mysecrets}/public/romantic.pub";
|
||||||
|
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
@@ -18,7 +20,7 @@ _: {
|
|||||||
# It has the same effect as adding cli option `ssh -A user@host`
|
# It has the same effect as adding cli option `ssh -A user@host`
|
||||||
ForwardAgent yes
|
ForwardAgent yes
|
||||||
# romantic holds my homelab~
|
# romantic holds my homelab~
|
||||||
IdentityFile ~/.ssh/romantic
|
IdentityFile /etc/agenix/ssh-key-romantic
|
||||||
# Specifies that ssh should only use the identity file explicitly configured above
|
# Specifies that ssh should only use the identity file explicitly configured above
|
||||||
# required to prevent sending default identity files first.
|
# required to prevent sending default identity files first.
|
||||||
IdentitiesOnly yes
|
IdentitiesOnly yes
|
||||||
@@ -38,20 +40,14 @@ _: {
|
|||||||
Host k8s-main
|
Host k8s-main
|
||||||
HostName 192.168.5.181
|
HostName 192.168.5.181
|
||||||
ForwardAgent yes
|
ForwardAgent yes
|
||||||
IdentityFile ~/.ssh/romantic
|
|
||||||
IdentitiesOnly yes
|
|
||||||
|
|
||||||
Host k8s-data1
|
Host k8s-data1
|
||||||
HostName 192.168.5.182
|
HostName 192.168.5.182
|
||||||
ForwardAgent yes
|
ForwardAgent yes
|
||||||
IdentityFile ~/.ssh/romantic
|
|
||||||
IdentitiesOnly yes
|
|
||||||
|
|
||||||
Host k8s-data2
|
Host k8s-data2
|
||||||
HostName 192.168.5.183
|
HostName 192.168.5.183
|
||||||
ForwardAgent yes
|
ForwardAgent yes
|
||||||
IdentityFile ~/.ssh/romantic
|
|
||||||
IdentitiesOnly yes
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,12 @@
|
|||||||
owner = username;
|
owner = username;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"ssh-key-romantic" = {
|
||||||
|
file = "${mysecrets}/ssh-key-romantic.age";
|
||||||
|
mode = "0600";
|
||||||
|
owner = username;
|
||||||
|
};
|
||||||
|
|
||||||
# alias-for-work
|
# alias-for-work
|
||||||
"alias-for-work.nushell" = {
|
"alias-for-work.nushell" = {
|
||||||
file = "${mysecrets}/alias-for-work.nushell.age";
|
file = "${mysecrets}/alias-for-work.nushell.age";
|
||||||
@@ -52,6 +58,10 @@
|
|||||||
source = config.age.secrets."wg-business.conf".path;
|
source = config.age.secrets."wg-business.conf".path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"agenix/ssh-key-romantic" = {
|
||||||
|
source = config.age.secrets."ssh-key-romantic".path;
|
||||||
|
};
|
||||||
|
|
||||||
# The following secrets are used by home-manager modules
|
# The following secrets are used by home-manager modules
|
||||||
# But nix-darwin doesn't support environment.etc.<name>.mode
|
# But nix-darwin doesn't support environment.etc.<name>.mode
|
||||||
# So we need to change its mode manually
|
# So we need to change its mode manually
|
||||||
|
|||||||
@@ -34,6 +34,12 @@
|
|||||||
owner = username;
|
owner = username;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"ssh-key-romantic" = {
|
||||||
|
file = "${mysecrets}/ssh-key-romantic.age";
|
||||||
|
mode = "0600";
|
||||||
|
owner = username;
|
||||||
|
};
|
||||||
|
|
||||||
# alias-for-work
|
# alias-for-work
|
||||||
"alias-for-work.nushell" = {
|
"alias-for-work.nushell" = {
|
||||||
file = "${mysecrets}/alias-for-work.nushell.age";
|
file = "${mysecrets}/alias-for-work.nushell.age";
|
||||||
@@ -60,6 +66,12 @@
|
|||||||
source = config.age.secrets."wg-business.conf".path;
|
source = config.age.secrets."wg-business.conf".path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"agenix/ssh-key-romantic" = {
|
||||||
|
source = config.age.secrets."ssh-key-romantic".path;
|
||||||
|
mode = "0600";
|
||||||
|
user = username;
|
||||||
|
};
|
||||||
|
|
||||||
# The following secrets are used by home-manager modules
|
# The following secrets are used by home-manager modules
|
||||||
# So we need to make then readable by the user
|
# So we need to make then readable by the user
|
||||||
"agenix/alias-for-work.nushell" = {
|
"agenix/alias-for-work.nushell" = {
|
||||||
|
|||||||
Reference in New Issue
Block a user