feat(ssh): Add Nextcloud secrets

This commit is contained in:
Tibo De Peuter 2024-10-19 14:46:21 +02:00
parent 0fa8782abb
commit d1379cdf99
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
5 changed files with 57 additions and 43 deletions

View file

@ -7,9 +7,14 @@ in {
config = lib.mkIf cfg.enable {
sops.secrets = lib.mkIf config.sisyphus.programs.sops.enable (
let
Hugo = {
HomeLab = {
format = "yaml";
sopsFile = ../../secrets/Hugo.yaml;
sopsFile = ../../secrets/HomeLab.yaml;
owner = user;
};
personal = {
format = "yaml";
sopsFile = ../../secrets/personal.yaml;
owner = user;
};
UGent = {
@ -18,17 +23,17 @@ in {
owner = user;
};
in {
"Hugo/ssh" = Hugo;
"UGent/HPC/ssh" = UGent;
"GitHub/ssh" = {
format = "yaml";
sopsFile = ../../secrets/GitHub.yaml;
owner = user;
};
"Hugo/Gitea/ssh" = Hugo;
# Git authentication
"Gitea/ssh" = personal;
"GitHub/ssh" = personal;
"UGent/GitHub/ssh" = UGent;
"UGent/SubGit/ssh" = UGent;
# HomeLab
"HomeLab/Hugo/ssh" = HomeLab;
"HomeLab/Nextcloud/ssh" = HomeLab;
});
};
}