mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-25 14:41:44 +00:00
adding ssh keys
This commit is contained in:
@@ -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";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user