mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 22:29:06 +01:00
Compare commits
No commits in common. "edfc766b46119d0630d5e5696ee54f18fadceb96" and "cfa3792d934a77158b240352ccdaeab78d601365" have entirely different histories.
edfc766b46
...
cfa3792d93
2 changed files with 1 additions and 33 deletions
|
|
@ -71,12 +71,7 @@
|
|||
|
||||
it-tools = {
|
||||
enable = true;
|
||||
domain = "it-tools.${sproutedDomain}";
|
||||
};
|
||||
|
||||
networking-toolbox = {
|
||||
enable = true;
|
||||
domain = "net-tools.${sproutedDomain}";
|
||||
domain = "tools.${sproutedDomain}";
|
||||
};
|
||||
|
||||
privatebin = {
|
||||
|
|
|
|||
|
|
@ -1,27 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.custom.web-services.networking-toolbox;
|
||||
in
|
||||
{
|
||||
options.custom.web-services.networking-toolbox = {
|
||||
enable = lib.mkEnableOption "";
|
||||
domain = lib.mkOption {
|
||||
type = lib.types.nonEmptyStr;
|
||||
default = "";
|
||||
};
|
||||
port = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
default = 4479;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
virtualisation.oci-containers.containers.networking-toolbox = {
|
||||
image = "lissy93/networking-toolbox";
|
||||
ports = [ "127.0.0.1:${toString cfg.port}:3000" ];
|
||||
pull = "newer";
|
||||
};
|
||||
|
||||
custom.services.caddy.virtualHosts.${cfg.domain}.port = cfg.port;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue