adding ssh keys

This commit is contained in:
2023-03-09 14:49:25 +00:00
parent dea10b0752
commit aa6ce0d50d
2 changed files with 41 additions and 7 deletions

View File

@@ -17,11 +17,33 @@
sops = {
age.sshKeyPaths = [ "/home/sstent/.ssh/id_ed25519" ];
defaultSopsFile = "${config._secretstore}/user-secrets.yaml";
secrets.mrconfig = {
sopsFile = "${config._secretstore}/user_dotfiles/mrconfig"; # optionally define per-secret files
format = "binary";
path = "${config.home.homeDirectory}/.mrconfig";
# path = "${config.home.homeDirectory}/${getEnv_name}";
secrets = {
mrconfig = {
sopsFile = "${config._secretstore}/user_dotfiles/mrconfig"; # optionally define per-secret files
format = "binary";
path = "${config.home.homeDirectory}/.mrconfig";
# path = "${config.home.homeDirectory}/${getEnv_name}";
};
"ssh/id_rsa" = {
# owner = "${config.home.username}";
mode = "0600";
path = "${config.home.homeDirectory}/.ssh/id_rsa";
};
"ssh/id_rsa_pub" = {
# owner = "${config.home.username}";
mode = "0644";
path = "${config.home.homeDirectory}/.ssh/id_rsa.pub";
};
"ssh/id_rsa_git" = {
# owner = "${config.home.username}";
mode = "0600";
path = "${config.home.homeDirectory}/.ssh/id_rsa_git";
};
"ssh/id_rsa_git_pub" = {
# owner = "${config.home.username}";
mode = "0644";
path = "${config.home.homeDirectory}/.ssh/id_rsa_git.pub";
};
};
};
@@ -104,6 +126,13 @@ programs = {
ssh = {
enable = true;
matchBlocks = {
"*" = {
identityFile = "~/.ssh/id_rsa";
};
"github.com" = {
user = "git";
identityFile = "~/.ssh/id_rsa";
};
"odroid*" = {
user = "root";
};