Compare commits

..

No commits in common. "088ac726326776bea3065f5c549a0e2059e9446c" and "3f7b1c538015b0252d1ce7d438d9ccf3bd8f73d6" have entirely different histories.

2 changed files with 6 additions and 10 deletions

View file

@ -5,6 +5,7 @@ let
deploy-rs
nixpkgs
nixos-anywhere
agenix
;
inherit (nixpkgs) lib;
@ -29,11 +30,11 @@ in
{
apps = rec {
default = deploy;
# secrets = {
# type = "app";
# program = "${agenix.packages.${system}.agenix}/bin/agenix";
# meta.description = "";
# };
secrets = {
type = "app";
program = "${agenix.packages.${system}.agenix}/bin/agenix";
meta.description = "";
};
install = {
type = "app";
program = "${nixos-anywhere.packages.${system}.nixos-anywhere}/bin/nixos-anywhere";

View file

@ -19,10 +19,6 @@ in
};
package = lib.mkPackageOption pkgs "otf" { };
pgPackage = lib.mkPackageOption pkgs "postgresql_16" { };
environmentFile = lib.mkEnableOption {
type = with lib.types; nullOr path;
default = lib.types.null;
};
# this application is configured entirely by environment variables and needs to be exposed
environment = lib.mkOption {
type =
@ -89,7 +85,6 @@ in
WorkingDirectory = cfg.dataDir;
ExecStart = "${cfg.package}/bin/otfd";
Restart = "on-failure";
EnvironmentFile = lib.mkIf (cfg.environment.file != null) cfg.environment.file;
};
};
};