fixed a glaring vulnerability, thank god i caught this -e
Some checks failed
/ Check formatting (push) Failing after 2s
Some checks failed
/ Check formatting (push) Failing after 2s
This commit is contained in:
parent
806a34cf0e
commit
80e93f98b3
2 changed files with 13 additions and 4 deletions
|
@ -8,14 +8,18 @@
|
||||||
];
|
];
|
||||||
sucrose.modules = [
|
sucrose.modules = [
|
||||||
(
|
(
|
||||||
{pkgs, config, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
environment.systemPackages = [pkgs.podman-compose];
|
environment.systemPackages = [pkgs.podman-compose];
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
containers.enable = true;
|
containers.enable = true;
|
||||||
podman = {
|
podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dockerCompat = false;
|
dockerCompat = false;
|
||||||
defaultNetwork.settings.dns_enabled = (config.networking.hostName == "glucose"); # TODO: fix this stupid shit ssometime -e
|
defaultNetwork.settings.dns_enabled = config.networking.hostName == "glucose"; # TODO: fix this stupid shit ssometime -e
|
||||||
};
|
};
|
||||||
oci-containers.backend = "podman";
|
oci-containers.backend = "podman";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
{
|
{
|
||||||
universal.modules = [
|
universal.modules = [
|
||||||
{
|
({
|
||||||
networking.firewall.enable = true;
|
networking.firewall.enable = true;
|
||||||
networking.nftables.enable = true;
|
networking.nftables.enable = true;
|
||||||
|
})
|
||||||
|
({lib, config, ...}: lib.mkIf (
|
||||||
|
config.networking.hostName != "aspartame" # open ports for data collection on everything EXCEPT aspartame, as that would be stupid, considering it is literally public facing. TODO: set up prometheus authentication, perhaps with a certificate. -e
|
||||||
|
)
|
||||||
|
{
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
6703
|
6703
|
||||||
|
@ -11,7 +16,7 @@
|
||||||
6703
|
6703
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
fructose.modules = [
|
fructose.modules = [
|
||||||
|
|
Loading…
Reference in a new issue