Files
Nixos/main/sops.nix
T
2025-07-26 14:35:38 +02:00

23 lines
603 B
Nix

{ config, lib, pkgs, ... }:
{
sops = {
defaultSopsFile = ./secrets/secrets.yaml;
age = {
# This will automatically import SSH keys as age keys
sshKeyPaths = [
"/etc/ssh/ssh_host_ed25519_key"
];
# This is using an age key that is expected to already be in the filesystem
keyFile = "/var/lib/sops-nix/key.txt";
# This will generate a new key if the key specified above does not exist
generateKey = true;
# This is the actual specification of the secrets.
};
secrets."user_password" = {
neededForUsers = true;
};
};
}