about summary refs log tree commit diff
path: root/configurations
diff options
context:
space:
mode:
Diffstat (limited to 'configurations')
-rw-r--r--configurations/eonwe/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/configurations/eonwe/default.nix b/configurations/eonwe/default.nix
index 68cfac4..37653de 100644
--- a/configurations/eonwe/default.nix
+++ b/configurations/eonwe/default.nix
@@ -288,6 +288,17 @@ with lib;
         "x-systemd.idle-timeout=${5 * 60 |> toString}"
       ];
     };
+
+    "/mnt/ydata/rtorrent" = {
+      device = "yavanna.shire.net:/export/rtorrent";
+      fsType = "nfs";
+      options = [
+        "ro"
+        "noauto"
+        "x-systemd.automount"
+        "x-systemd.idle-timeout=${5 * 60 |> toString}"
+      ];
+    };
   };
 
   zramSwap = {
@@ -318,4 +329,16 @@ with lib;
   };
 
   nix.settings.trusted-users = [ "builder" ];
+
+  # https://cl.tvl.fyi/c/depot/+/12961
+  systemd.services =
+    let
+      override.environment.SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false";
+    in
+    {
+      systemd-suspend = override;
+      systemd-hibernate = override;
+      systemd-hybrid-sleep = override;
+      systemd-suspend-then-hibernate = override;
+    };
 }

Consider giving Nix/NixOS a try! <3