prep: setup sops demo for otf

This commit is contained in:
Jermeiah S 2025-06-14 14:35:19 -04:00
parent 1254657679
commit 3196a30c4d
No known key found for this signature in database
3 changed files with 18 additions and 3 deletions

View file

@ -19,7 +19,7 @@ in
};
package = lib.mkPackageOption pkgs "otf" { };
pgPackage = lib.mkPackageOption pkgs "postgresql_16" { };
environmentFile = lib.mkEnableOption {
environmentFile = lib.mkOption {
type = with lib.types; nullOr path;
default = lib.types.null;
};

View file

@ -9,5 +9,14 @@
imports = [
flake.inputs.sops-nix.nixosModules.sops
];
sops.defaultSopsFile = ../../../secrets.yaml;
sops = {
defaultSopsFile = ../../../secrets.yaml;
secrets = {
otfenv = {
owner = "otf";
group = "otf";
mode = "0440";
};
};
};
}