base/secrets: add module

This commit is contained in:
2025-08-20 22:38:49 -07:00
parent 22590cd1cd
commit 44089168bf
2 changed files with 26 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ in
./grafana-alloy.nix
./network.nix
./qemu.nix
./secrets.nix
./spice.nix
];

25
base/secrets.nix Normal file
View File

@@ -0,0 +1,25 @@
{
config,
lib,
pkgs,
pkgsUnstable,
inputs,
...
}:
with lib;
let
cfg = config.secrets;
in
{
options.spice = {
enable = mkEnableOption "Enable SPICE guest setup";
};
config = {
sops.defaultSopsFile = ./secrets/secrets.yaml;
sops.defaultSopsFormat = "yaml";
sops.age.keyFile = "";
};
}