NixOS/home/secrets.nix

15 lines
319 B
Nix

{ config, ... }:
{
sops = {
defaultSopsFile = ../secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age.keyFile = "/home/${config.home.username}/.config/sops/age/keys.txt";
secrets = {
"docker/config" = {
path = "${config.home.homeDirectory}/.docker/config.json";
};
};
};
}