From 6bf4d7361b189f65cd319f3924cf52ceabf8c7f3 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 15 Feb 2026 23:34:44 +0100 Subject: [PATCH] autosuspend: 9.0.1 -> 10.0.0 Notable upstream changes: * The presuspend SystemD unit has been removed Diff: https://github.com/languitar/autosuspend/compare/v9.0.1...v10.0.0 Changelog: https://github.com/languitar/autosuspend/releases/tag/v10.0.0 --- nixos/modules/services/misc/autosuspend.nix | 10 ---------- pkgs/by-name/au/autosuspend/package.nix | 6 +++--- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/nixos/modules/services/misc/autosuspend.nix b/nixos/modules/services/misc/autosuspend.nix index fed0e2c9a06a..3ca2794892b8 100644 --- a/nixos/modules/services/misc/autosuspend.nix +++ b/nixos/modules/services/misc/autosuspend.nix @@ -235,16 +235,6 @@ in ExecStart = "${autosuspend}/bin/autosuspend -l ${autosuspend}/etc/autosuspend-logging.conf -c ${autosuspend-conf} daemon"; }; }; - - systemd.services.autosuspend-detect-suspend = { - description = "Notifies autosuspend about suspension"; - documentation = [ "https://autosuspend.readthedocs.io/en/latest/systemd_integration.html" ]; - wantedBy = [ "sleep.target" ]; - after = [ "sleep.target" ]; - serviceConfig = { - ExecStart = "${autosuspend}/bin/autosuspend -l ${autosuspend}/etc/autosuspend-logging.conf -c ${autosuspend-conf} presuspend"; - }; - }; }; meta = { diff --git a/pkgs/by-name/au/autosuspend/package.nix b/pkgs/by-name/au/autosuspend/package.nix index 2f8862c465d9..f6dd6ed15447 100644 --- a/pkgs/by-name/au/autosuspend/package.nix +++ b/pkgs/by-name/au/autosuspend/package.nix @@ -7,14 +7,14 @@ python3.pkgs.buildPythonApplication (finalAttrs: { pname = "autosuspend"; - version = "9.0.1"; + version = "10.0.0"; pyproject = true; src = fetchFromGitHub { owner = "languitar"; repo = "autosuspend"; tag = "v${finalAttrs.version}"; - hash = "sha256-PVxsdCPGu+bhjfAF5Hu4Xa3lETARitbBUKuy7ursAUE="; + hash = "sha256-o9Jpb4i2/SJ3s3h5sclNjpaN/UFk1YbpPf7b3rGXLRg="; }; build-system = with python3.pkgs; [ @@ -27,8 +27,8 @@ python3.pkgs.buildPythonApplication (finalAttrs: { jsonpath-ng lxml mpd2 - portalocker psutil + pygobject3 python-dateutil requests requests-file