tests
This commit is contained in:
parent
2097c0a290
commit
24a96cd8dc
1 changed files with 54 additions and 22 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ ... }: {
|
{ nixos-unstable, inputs, ... }:
|
||||||
|
{
|
||||||
networking.nat = {
|
networking.nat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
internalInterfaces = [ "ve-+" ];
|
internalInterfaces = [ "ve-+" ];
|
||||||
|
@ -7,31 +8,62 @@
|
||||||
enableIPv6 = true;
|
enableIPv6 = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
containers.webserver = {
|
containers.glitchtip =
|
||||||
|
{
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
privateNetwork = true;
|
privateNetwork = true;
|
||||||
hostAddress = "192.168.100.10";
|
hostAddress = "192.168.100.10";
|
||||||
localAddress = "192.168.100.11";
|
localAddress = "192.168.100.11";
|
||||||
hostAddress6 = "fc00::1";
|
hostAddress6 = "fc00::1";
|
||||||
localAddress6 = "fc00::2";
|
localAddress6 = "fc00::2";
|
||||||
config = { config, pkgs, lib, ... }: {
|
path = (nixos-unstable.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [{
|
||||||
|
boot.isContainer = true;
|
||||||
|
#services.glitchtip = {
|
||||||
|
# enable = true;
|
||||||
|
# listenAddress = "0.0.0.0";
|
||||||
|
# settings = {
|
||||||
|
# GLITCHTIP_DOMAIN = "http://localhost";
|
||||||
|
# };
|
||||||
|
#};
|
||||||
|
#services = {
|
||||||
|
# logrotate.enable = lib.mkForce false;
|
||||||
|
# httpd = {
|
||||||
|
# enable = true;
|
||||||
|
# adminAddr = "admin@example.org";
|
||||||
|
# };
|
||||||
|
#};
|
||||||
|
|
||||||
|
|
||||||
|
# imports = [
|
||||||
|
# #(modulesPath + "/profiles/perlless.nix")
|
||||||
|
# (modulesPath + "/profiles/minimal.nix")
|
||||||
|
# {
|
||||||
|
# environment.defaultPackages = [ ];
|
||||||
|
# boot.kernel.enable = false;
|
||||||
|
# boot.isContainer = true;
|
||||||
|
# nixpkgs.overlays = [ (self: super: { }) ];
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
|
# disabledModules = [
|
||||||
|
# (modulesPath + "/profiles/all-hardware.nix")
|
||||||
|
# (modulesPath + "/profiles/base.nix")
|
||||||
|
# ];
|
||||||
|
|
||||||
services.httpd = {
|
|
||||||
enable = true;
|
|
||||||
adminAddr = "admin@example.org";
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
firewall.allowedTCPPorts = [ 80 ];
|
firewall.allowedTCPPorts = [ 80 ];
|
||||||
|
|
||||||
# Use systemd-resolved inside the container
|
# Use systemd-resolved inside the container
|
||||||
# Workaround for bug https://github.com/NixOS/nixpkgs/issues/162686
|
# Workaround for bug https://github.com/NixOS/nixpkgs/issues/162686
|
||||||
useHostResolvConf = lib.mkForce false;
|
useHostResolvConf = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.resolved.enable = true;
|
services.resolved.enable = true;
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "25.05";
|
||||||
};
|
}];
|
||||||
|
}).outPath;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue