Simplify Genesis services
This commit is contained in:
@@ -11,7 +11,6 @@ in
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home-assistant.nix
|
||||
./networking.nix
|
||||
];
|
||||
|
||||
@@ -19,8 +18,6 @@ in
|
||||
home = true;
|
||||
gnome.enable = false;
|
||||
proxies = {
|
||||
"speed.home".target = "http://localhost:${speedtest_port}";
|
||||
"speedtest.thehellings.lan".target = "http://localhost:${speedtest_port}";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -32,7 +29,6 @@ in
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
awscli2
|
||||
create_ssl
|
||||
step-ca
|
||||
];
|
||||
@@ -40,10 +36,5 @@ in
|
||||
networking.hostName = "genesis"; # Define your hostname.
|
||||
|
||||
virtualisation.oci-containers.containers = {
|
||||
speedtest = {
|
||||
image = "ghcr.io/librespeed/speedtest";
|
||||
hostname = "speedtest";
|
||||
ports = [ "${speedtest_port}:80" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -76,28 +76,6 @@ in
|
||||
environment.etc."hosts.d/local".text = extraHosts;
|
||||
|
||||
services = {
|
||||
#########
|
||||
# Blind service proxy behind the walls of the VPN
|
||||
########
|
||||
_3proxy = {
|
||||
enable = true;
|
||||
services = [
|
||||
{
|
||||
type = "socks";
|
||||
auth = [ "strong" ];
|
||||
bindPort = proxyPort;
|
||||
acl = [
|
||||
{
|
||||
rule = "allow";
|
||||
users = [ "greg" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
#usersFile = "/run/agenix/3proxy";
|
||||
denyPrivate = false;
|
||||
};
|
||||
|
||||
kea.dhcp4 = (
|
||||
import ./networking/dhcp.nix {
|
||||
inherit
|
||||
|
||||
Reference in New Issue
Block a user