summaryrefslogtreecommitdiff
path: root/Biz/Devalloc/Host.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-12-06 15:12:48 -0500
committerBen Sima <ben@bsima.me>2020-12-06 15:12:48 -0500
commit2642499df1795c8024992b3cfd8891c8fc576ed8 (patch)
tree84af13edcad80baf2207187c00ca92535474de37 /Biz/Devalloc/Host.nix
parent183d16c1793c14769881536dcd0bb5f9a9f760ce (diff)
De-nest Devalloc and a few other cleanups
Diffstat (limited to 'Biz/Devalloc/Host.nix')
-rw-r--r--Biz/Devalloc/Host.nix46
1 files changed, 0 insertions, 46 deletions
diff --git a/Biz/Devalloc/Host.nix b/Biz/Devalloc/Host.nix
deleted file mode 100644
index 51aa85d..0000000
--- a/Biz/Devalloc/Host.nix
+++ /dev/null
@@ -1,46 +0,0 @@
-{ options
-, lib
-, config
-, pkgs
-, modulesPath
-}:
-
-let
- cfg = config.services.devalloc-host;
-in
-{
- options.services.devalloc-host = {
- enable = lib.mkEnableOption "Enable the devalloc-host service";
- port = lib.mkOption {
- type = lib.types.int;
- default = 3000;
- description = ''
- The port on which devalloc-host will listen for
- incoming HTTP traffic.
- '';
- };
- package = lib.mkOption {
- type = lib.types.package;
- description = "devalloc-host package to use";
- };
- };
- config = lib.mkIf cfg.enable {
- systemd.services.devalloc-host = {
- path = [ cfg.package ];
- wantedBy = [ "multi-user.target" ];
- script = ''
- ${cfg.package}/bin/devalloc-host
- '';
- description = ''
- Devalloc.Host
- '';
- serviceConfig = {
- Environment = ["PORT=${toString cfg.port}"];
- KillSignal = "INT";
- Type = "simple";
- Restart = "on-abort";
- RestartSec = "1";
- };
- };
- };
-}