[SSH] Add GitHub key

This commit is contained in:
Tibo De Peuter 2023-09-11 12:49:47 +02:00
parent 5897150ea6
commit dd0aa22793
3 changed files with 43 additions and 1 deletions

View file

@ -14,7 +14,7 @@
# Use an age key that is expected to already be in the filesystem
keyFile = "/var/lib/sops-nix/key.txt";
# Generate new keys if the key specified above does not exist
generateKey = true;
# generateKey = true;
};
secrets = {
"H4G0/ssh" = {
@ -22,6 +22,11 @@
sopsFile = ../../../secrets/H4G0.yaml;
owner = config.users.users.tdpeuter.name;
};
"GitHub/ssh" = {
format = "yaml";
sopsFile = ../../../secrets/GitHub.yaml;
owner = config.users.users.tdpeuter.name;
};
};
};
}

View file

@ -16,6 +16,12 @@
identityFile = "/run/secrets/H4G0/ssh";
user = "admin";
};
"github.com" = {
hostname = "github.com";
identitiesOnly = true;
identityFile = "/run/secrets/GitHub/ssh";
user = "tdpeuter";
};
};
};
};