Add secrets

This commit is contained in:
Martin Pander
2026-02-07 16:11:52 +01:00
parent 61bb1578e0
commit 3bdd7e1c50
4 changed files with 29 additions and 7 deletions

View File

@@ -10,7 +10,6 @@
defaultSopsFormat = "yaml";
age = {
# This is the default location for the age key
keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
};
};

View File

@@ -10,12 +10,9 @@
defaultSopsFormat = "yaml";
age = {
# This will automatically import the SSH keys as age keys
sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
# This is where the age key for sops-nix is stored
keyFile = "/var/lib/sops-nix/key.txt";
# This will generate a new age key from the SSH key if it doesn't exist
generateKey = true;
# keyFile = "/var/lib/sops-nix/key.txt";
# generateKey = true;
};
};
}