Compare commits
2 commits
3f7b1c5380
...
088ac72632
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
088ac72632 | ||
|
|
a14933388b |
2 changed files with 10 additions and 6 deletions
|
|
@ -5,7 +5,6 @@ let
|
||||||
deploy-rs
|
deploy-rs
|
||||||
nixpkgs
|
nixpkgs
|
||||||
nixos-anywhere
|
nixos-anywhere
|
||||||
agenix
|
|
||||||
;
|
;
|
||||||
inherit (nixpkgs) lib;
|
inherit (nixpkgs) lib;
|
||||||
|
|
||||||
|
|
@ -30,11 +29,11 @@ in
|
||||||
{
|
{
|
||||||
apps = rec {
|
apps = rec {
|
||||||
default = deploy;
|
default = deploy;
|
||||||
secrets = {
|
# secrets = {
|
||||||
type = "app";
|
# type = "app";
|
||||||
program = "${agenix.packages.${system}.agenix}/bin/agenix";
|
# program = "${agenix.packages.${system}.agenix}/bin/agenix";
|
||||||
meta.description = "";
|
# meta.description = "";
|
||||||
};
|
# };
|
||||||
install = {
|
install = {
|
||||||
type = "app";
|
type = "app";
|
||||||
program = "${nixos-anywhere.packages.${system}.nixos-anywhere}/bin/nixos-anywhere";
|
program = "${nixos-anywhere.packages.${system}.nixos-anywhere}/bin/nixos-anywhere";
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,10 @@ in
|
||||||
};
|
};
|
||||||
package = lib.mkPackageOption pkgs "otf" { };
|
package = lib.mkPackageOption pkgs "otf" { };
|
||||||
pgPackage = lib.mkPackageOption pkgs "postgresql_16" { };
|
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
|
# this application is configured entirely by environment variables and needs to be exposed
|
||||||
environment = lib.mkOption {
|
environment = lib.mkOption {
|
||||||
type =
|
type =
|
||||||
|
|
@ -85,6 +89,7 @@ in
|
||||||
WorkingDirectory = cfg.dataDir;
|
WorkingDirectory = cfg.dataDir;
|
||||||
ExecStart = "${cfg.package}/bin/otfd";
|
ExecStart = "${cfg.package}/bin/otfd";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
EnvironmentFile = lib.mkIf (cfg.environment.file != null) cfg.environment.file;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue