Simplify Genesis services
This commit is contained in:
@@ -11,7 +11,6 @@ in
|
|||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./home-assistant.nix
|
|
||||||
./networking.nix
|
./networking.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -19,8 +18,6 @@ in
|
|||||||
home = true;
|
home = true;
|
||||||
gnome.enable = false;
|
gnome.enable = false;
|
||||||
proxies = {
|
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; [
|
environment.systemPackages = with pkgs; [
|
||||||
awscli2
|
|
||||||
create_ssl
|
create_ssl
|
||||||
step-ca
|
step-ca
|
||||||
];
|
];
|
||||||
@@ -40,10 +36,5 @@ in
|
|||||||
networking.hostName = "genesis"; # Define your hostname.
|
networking.hostName = "genesis"; # Define your hostname.
|
||||||
|
|
||||||
virtualisation.oci-containers.containers = {
|
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;
|
environment.etc."hosts.d/local".text = extraHosts;
|
||||||
|
|
||||||
services = {
|
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 = (
|
kea.dhcp4 = (
|
||||||
import ./networking/dhcp.nix {
|
import ./networking/dhcp.nix {
|
||||||
inherit
|
inherit
|
||||||
|
|||||||
Reference in New Issue
Block a user