mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
things
This commit is contained in:
parent
01ce6387da
commit
6d47ea67f0
5 changed files with 29 additions and 26 deletions
7
newinfra/nix/modules/contabo/default.nix
Normal file
7
newinfra/nix/modules/contabo/default.nix
Normal 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"; };
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue