1
0
mirror of http://code.capytal.cc/dot013/spacestation.git synced 2026-01-15 23:46:13 -03:00
Files
spacestation/secrets.nix

92 lines
1.9 KiB
Nix
Raw Normal View History

{
config,
inputs,
lib,
pkgs,
...
2025-09-13 11:29:15 -03:00
}:
with lib; {
imports = [
inputs.sops-nix.nixosModules.sops
];
2025-09-13 11:29:15 -03:00
environment.systemPackages = with pkgs; [
sops
];
2025-09-13 11:29:15 -03:00
sops.defaultSopsFile = ./secrets.yaml;
sops.defaultSopsFormat = "yaml";
sops.secrets =
concatMapAttrs (owner: secrets:
listToAttrs (map (s: {
name = s;
value = optionalAttrs (owner != "") {inherit owner;};
})
secrets))
{
"" = [
# Cloudflared
"cloudflared/tunnel_env"
];
2025-04-01 10:07:35 -03:00
# Anubis
${config.services.anubis.defaultOptions.user} = [
"anubis/gitea/hex_file"
"anubis/peertube/hex_file"
"anubis/medama/hex_file"
];
2025-04-05 17:22:44 -03:00
# Garage
"garage" = [
"garage/admin_key"
"garage/admin_secret"
"garage/admin_token"
"garage/metrics_token"
"garage/rpc_secret"
];
# Gitea
${config.services.gitea.user} = [
"gitea/actions/token"
"gitea/oauth2/jwt_secret"
"gitea/security/internal_token"
"gitea/security/secret_key"
"gitea/server/lfs_jwt_secret"
"gitea/storage/access_key_id"
"gitea/storage/secret_access_key"
];
# keikos.work
${config.services.keikos.web.user} = [
"keiko/env_file"
];
2025-09-16 16:18:06 -03:00
# Peertube
${config.services.peertube.user} = [
"peertube/database/password"
"peertube/environment"
"peertube/secretsFile"
];
# PostgreSQL
${config.users.users.postgres.name} = [
"postgresql/initialScript"
];
# Nextcloud
${config.services.phpfpm.pools.nextcloud.user} = [
"nextcloud/adminpass"
"nextcloud/s3/secret"
"nextcloud/s3/sseC"
];
2025-09-16 16:18:06 -03:00
# Users
${config.users.users."guz".name} = [
"guz/password"
];
2025-09-13 11:29:15 -03:00
};
sops.age.keyFile = "/home/guz/.config/sops/age/keys.txt";
}