homelab framework module init (everything is a mess)
Some checks failed
Test / tests (push) Has been cancelled
/ OpenTofu (push) Has been cancelled

This commit is contained in:
plasmagoat 2025-07-28 02:05:13 +02:00
parent 0347f4d325
commit bcbcc8b17b
94 changed files with 7289 additions and 436 deletions

42
secrets/default.nix Normal file
View file

@ -0,0 +1,42 @@
{
config,
lib,
pkgs,
...
}: {
# SOPS configuration
sops = {
age.keyFile = "/run/keys/age.key";
defaultSopsFile = ./secrets.yaml;
# Define secrets that all systems need
secrets = {
# SSH keys
# "ssh/plasmagoat_private_key" = {
# owner = "plasmagoat";
# mode = "0600";
# path = "/home/plasmagoat/.ssh/id_rsa";
# };
# # Age key for the system
# "age/system_key" = {
# mode = "0600";
# path = "/run/keys/age.key";
# };
# # Backup credentials
# "backup/restic_password" = {
# path = "/etc/backup/restic-password";
# mode = "0600";
# };
};
};
# Deployment keys for colmena
deployment.keys = {
"age.key" = {
destDir = "/run/keys";
keyFile = "/home/plasmagoat/.config/age/age.key"; # Your local age key
};
};
}