base/secrets: add module
This commit is contained in:
@@ -30,6 +30,7 @@ in
|
||||
./grafana-alloy.nix
|
||||
./network.nix
|
||||
./qemu.nix
|
||||
./secrets.nix
|
||||
./spice.nix
|
||||
];
|
||||
|
||||
|
||||
25
base/secrets.nix
Normal file
25
base/secrets.nix
Normal 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 = "";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user