Testing
This commit is contained in:
parent
472300ded4
commit
f8ba23384d
6 changed files with 1137 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
./wireguard.nix
|
||||
./cron.nix
|
||||
./firewall.nix
|
||||
./docker
|
||||
];
|
||||
|
||||
environment.systemPackages = [
|
||||
|
|
6
nixos/hosts/framework-server/docker/default.nix
Normal file
6
nixos/hosts/framework-server/docker/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{}: {
|
||||
import = [
|
||||
./internal
|
||||
./external
|
||||
];
|
||||
}
|
5
nixos/hosts/framework-server/docker/external/default.nix
vendored
Normal file
5
nixos/hosts/framework-server/docker/external/default.nix
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{}: {
|
||||
imports = [
|
||||
|
||||
];
|
||||
}
|
5
nixos/hosts/framework-server/docker/internal/default.nix
Normal file
5
nixos/hosts/framework-server/docker/internal/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{}: {
|
||||
imports = [
|
||||
./it-tools.nix
|
||||
];
|
||||
}
|
37
nixos/hosts/framework-server/docker/internal/it-tools.nix
Normal file
37
nixos/hosts/framework-server/docker/internal/it-tools.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ ... }: {
|
||||
virtualisation.oci-containers.containers."it-tools" = {
|
||||
image = "docker.io/fredliang/derper";
|
||||
container_name = "it-tools";
|
||||
log-driver = "journald";
|
||||
restart = "always";
|
||||
depends_on = [
|
||||
"promtail"
|
||||
"traefik-int"
|
||||
];
|
||||
labels = {
|
||||
type = "internal";
|
||||
traefik = {
|
||||
enable = true;
|
||||
docker.network = "sysctlio_default";
|
||||
http = {
|
||||
routers.it-tools = {
|
||||
tls.enable = "true";
|
||||
tls.certresolver = "letsencrypt-int";
|
||||
entrypoints = "web-secure-int";
|
||||
rule = "Host(`sysctl.io`)";
|
||||
};
|
||||
services.it-tools = {
|
||||
loadbalancer.server.port = 80;
|
||||
};
|
||||
};
|
||||
};
|
||||
# Flame Configs
|
||||
flame = {
|
||||
icon = "home";
|
||||
type = "app";
|
||||
url = "https://sysctl.io";
|
||||
name = "Cyberchef";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue