nix-dotfiles/modules/secrets/sops-nix/default.nix

12 lines
262 B
Nix
Raw Normal View History

2024-04-07 00:33:49 -07:00
{ inputs, pkgs, lib, ... }:
let rootPath = ./.; in
{
imports = [ inputs.sops-nix.nixosModules.sops ];
sops = {
defaultSopsFile = rootPath + "secrets.yaml";
defaultSopsFormat = "yaml";
age.keyFile = "/home/pan/.config/sops/age/keys.txt";
};
}