This commit is contained in:
nora 2024-07-27 00:06:49 +02:00
parent 01ce6387da
commit 6d47ea67f0
5 changed files with 29 additions and 26 deletions

View file

@ -0,0 +1,7 @@
# Default settings for Contabo VPS.
{ ... }: {
boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/sda3"; fsType = "ext4"; };
}

View file

@ -33,6 +33,7 @@ let
localhost.A = [ (a "127.0.0.1") ];
newtest.TXT = [ "uwu it works" ];
# TODO: generate dynamically from IPs...
infra.subdomains = {
inherit dns1;
inherit dns2;

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ pkgs, config, ... }: {
networking.firewall.allowedTCPPorts = [
22
443
@ -10,7 +10,7 @@
(
builtins.readFile ./Caddyfile +
''
vps1.nilstrieb.dev {
${config.networking.hostName}.infra.noratrieb.dev {
root * ${./debugging-page}
file_server
}