prep: setup sops demo for otf
This commit is contained in:
parent
1254657679
commit
3196a30c4d
3 changed files with 18 additions and 3 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue