From b8ea365ca8eb801f8c8442f2f9ab439343ed8b8f Mon Sep 17 00:00:00 2001 From: azahi Date: Tue, 14 Jan 2025 13:27:50 +0300 Subject: 2025-01-14 --- configurations/eonwe/default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'configurations') 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; + }; } -- cgit 1.4.1