diff --git a/hosts/vps2/default.nix b/hosts/vps2/default.nix deleted file mode 100644 index b137c4d..0000000 --- a/hosts/vps2/default.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ - inputs, - ... -}: - -{ - imports = [ - inputs.disko.nixosModules.disko - ./hardware-configuration.nix - ./disko-config.nix - ../server.nix - ]; - - nixpkgs = { - hostPlatform = "x86_64-linux"; - }; - - age.rekey.hostPubkey = ./ssh_host_ed25519_key.pub; - - networking = { - hostId = "60de4af8"; - firewall = { - enable = true; - allowedTCPPorts = [ - 22 # SSH - ]; - }; - }; - - modules.services.tailscale.isExitNode = true; - - system.stateVersion = "25.05"; -} diff --git a/hosts/vps2/disko-config.nix b/hosts/vps2/disko-config.nix deleted file mode 100644 index f5c34d8..0000000 --- a/hosts/vps2/disko-config.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ lib, ... }: -{ - disko.devices = { - disk.disk1 = { - device = lib.mkDefault "/dev/sda"; - type = "disk"; - content = { - type = "gpt"; - partitions = { - boot = { - name = "boot"; - size = "2M"; - type = "EF02"; - }; - esp = { - name = "ESP"; - size = "300M"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - }; - root = { - name = "root"; - size = "100%"; - content = { - type = "lvm_pv"; - vg = "pool"; - }; - }; - }; - }; - }; - lvm_vg = { - pool = { - type = "lvm_vg"; - lvs = { - root = { - size = "100%FREE"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - mountOptions = [ - "defaults" - ]; - }; - }; - }; - }; - }; - }; -} diff --git a/hosts/vps2/hardware-configuration.nix b/hosts/vps2/hardware-configuration.nix deleted file mode 100644 index 3a85961..0000000 --- a/hosts/vps2/hardware-configuration.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ - modulesPath, - ... -}: - -{ - imports = [ - (modulesPath + "/profiles/qemu-guest.nix") - ]; - - boot = { - initrd = { - availableKernelModules = [ - "ata_piix" - "uhci_hcd" - "xen_blkfront" - "vmw_pvscsi" - ]; - kernelModules = [ "nvme" ]; - }; - loader.grub = { - efiSupport = true; - efiInstallAsRemovable = true; - }; - tmp.cleanOnBoot = true; - }; - - zramSwap.enable = true; -} diff --git a/hosts/vps2/ssh_host_ed25519_key.pub b/hosts/vps2/ssh_host_ed25519_key.pub deleted file mode 100644 index 8a22207..0000000 --- a/hosts/vps2/ssh_host_ed25519_key.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG1Ee9QHeGSVpmruNaMdaycYyNdTXVRWpwUk1EBEM7UW diff --git a/nix/hosts.nix b/nix/hosts.nix index 4e6b481..718dd26 100644 --- a/nix/hosts.nix +++ b/nix/hosts.nix @@ -54,7 +54,6 @@ "pi" "skycam" "vps1" - "vps2" ] mkDeployNode; }; };