about summary refs log tree commit diff
path: root/configurations/varda/default.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2022-10-08 01:04:01 +0300
committerAzat Bahawi <azat@bahawi.net>2022-10-08 01:04:01 +0300
commita0a3dcde99c4a8aa19b23ead79c08eedca30d002 (patch)
tree06387d2676fa1656df7db976f3601d00b08bd1a8 /configurations/varda/default.nix
parent2022-09-22 (diff)
2022-10-08
Diffstat (limited to '')
-rw-r--r--configurations/varda/default.nix45
1 files changed, 11 insertions, 34 deletions
diff --git a/configurations/varda/default.nix b/configurations/varda/default.nix
index ac7b493..5e0914e 100644
--- a/configurations/varda/default.nix
+++ b/configurations/varda/default.nix
@@ -7,41 +7,11 @@ with lib; {
   nixfiles.modules = {
     wireguard.client.enable = true;
 
-    # games.minecraft.server = {
-    #   enable = true;
-    #   memory = "6G";
-    # };
-
     acme.enable = true;
-  };
-
-  networking = let
-    interface = "eth0";
-  in {
-    interfaces.${interface} = {
-      ipv4.addresses = [
-        {
-          inherit (this.ipv4) address;
-          prefixLength = 22;
-        }
-      ];
-
-      ipv6.addresses = [
-        {
-          inherit (this.ipv6) address;
-          prefixLength = 64;
-        }
-      ];
-    };
-
-    defaultGateway = {
-      inherit interface;
-      address = this.ipv4.gateway;
-    };
 
-    defaultGateway6 = {
-      inherit interface;
-      address = this.ipv6.gateway;
+    games.minecraft.server = {
+      enable = false; # Disabled because no one is playing now.
+      memory = "6G";
     };
   };
 
@@ -55,7 +25,14 @@ with lib; {
       };
     };
 
-    initrd.availableKernelModules = ["ata_piix" "sd_mod" "sr_mod" "uhci_hcd" "virtio_pci" "virtio_scsi"];
+    initrd.availableKernelModules = [
+      "ata_piix"
+      "sd_mod"
+      "sr_mod"
+      "uhci_hcd"
+      "virtio_pci"
+      "virtio_scsi"
+    ];
   };
 
   fileSystems = {

Consider giving Nix/NixOS a try! <3