about summary refs log tree commit diff
path: root/configurations
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--configurations/manwe/default.nix8
-rw-r--r--configurations/varda/default.nix9
2 files changed, 11 insertions, 6 deletions
diff --git a/configurations/manwe/default.nix b/configurations/manwe/default.nix
index bb54c1b..4f6b8ef 100644
--- a/configurations/manwe/default.nix
+++ b/configurations/manwe/default.nix
@@ -52,10 +52,10 @@ with lib; {
         job_name = "endlessh-go";
         static_configs = [
           {
-            targets = with config.nixfiles.modules.endlessh-go; [
-              "${manwe.hostname}:${toString prometheusPort}"
-              "${varda.hostname}:${toString prometheusPort}"
-              "${yavanna.hostname}:${toString prometheusPort}"
+            targets = with config.services.endlessh-go.prometheus; [
+              "${manwe.hostname}:${toString port}"
+              "${varda.hostname}:${toString port}"
+              "${yavanna.hostname}:${toString port}"
             ];
           }
         ];
diff --git a/configurations/varda/default.nix b/configurations/varda/default.nix
index d7c6132..524842e 100644
--- a/configurations/varda/default.nix
+++ b/configurations/varda/default.nix
@@ -22,8 +22,6 @@ with lib; {
     acme.enable = true;
   };
 
-  # systemd.services.minecraft-server.wantedBy = mkForce [];
-
   networking = let
     interface = "eth0";
   in {
@@ -80,5 +78,12 @@ with lib; {
     };
   };
 
+  swapDevices = [
+    {
+      device = "/swapfile";
+      size = 4 * 1024;
+    }
+  ];
+
   system.stateVersion = "22.05";
 }

Consider giving Nix/NixOS a try! <3