added secrets to both vms.

This commit is contained in:
Gabe Venberg 2024-06-03 16:38:29 -05:00
parent 6ae38b1d2f
commit 3cddd823c1
6 changed files with 40 additions and 13 deletions

17
configs/nixos/secrets.nix Normal file
View file

@ -0,0 +1,17 @@
{
inputs,
config,
lib,
pkgs,
...
}: let
secretsDirectory = builtins.toString inputs.nix-secrets;
in {
imports = [
inputs.sops-nix.nixosModules.sops
];
sops = {
defaultSopsFile = "${secretsDirectory}/common.yaml";
validateSopsFiles = false;
};
}