summaryrefslogtreecommitdiff
path: root/hosts/cloud/oldsortug/configuration.nix
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2024-07-21 01:49:04 +0700
committerpolwex <polwex@sortug.com>2024-07-21 01:49:04 +0700
commite64f7a78e01e5fa661471cb518cc71fc33223b5a (patch)
tree691c444cf66e2f9d1ee63e4589ed09ec502baa3b /hosts/cloud/oldsortug/configuration.nix
parent0816d59542658a62928050ef5f08e1460e554959 (diff)
m
Diffstat (limited to 'hosts/cloud/oldsortug/configuration.nix')
-rw-r--r--hosts/cloud/oldsortug/configuration.nix46
1 files changed, 0 insertions, 46 deletions
diff --git a/hosts/cloud/oldsortug/configuration.nix b/hosts/cloud/oldsortug/configuration.nix
deleted file mode 100644
index 1c1866e..0000000
--- a/hosts/cloud/oldsortug/configuration.nix
+++ /dev/null
@@ -1,46 +0,0 @@
-{ modulesPath, lib, ... }:
-{
- imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
- ./hardware-configuration.nix
- ./gitea.nix
- ./nginx.nix
- ./coturn.nix
- ];
- boot = {
- growPartition = true;
- kernelParams = [ "console=ttyS0" "panic=1" "boot.panic_on_fail" ];
- initrd.kernelModules = [ "virtio_scsi" ];
- kernelModules = [ "virtio_pci" "virtio_net" ];
- loader = {
- grub.device = "/dev/sda";
- timeout = 0;
- grub.configurationLimit = 0;
- };
- };
- services.openssh = {
- enable = true;
- passwordAuthentication = false;
- ports = [5522];
- };
- services.do-agent.enable = true;
- networking = {
- hostName = "sortug"; # use Digital Ocean metadata server
- };
- networking.firewall = {
- enable = true;
- allowedTCPPorts = [ 40308 80 443 53 51820 5522 ];
- allowedUDPPorts = [ 40308 80 443 53 51820 5522
- 50000
- 50001
- 50002
- 50003
- 50004
- 50005
- 50006
- 50007
- 50008
- 50009
- 50010
- ];
- };
-}