diff --git a/flake.lock b/flake.lock index 19cea52..f51dc04 100644 --- a/flake.lock +++ b/flake.lock @@ -2143,11 +2143,11 @@ ] }, "locked": { - "lastModified": 1795206835, - "narHash": "sha256-9MP7M7Ifw6nU+K+38rymjG+z6a1jSJSQxzvMzFNcwoM=", + "lastModified": 1795219795, + "narHash": "sha256-UWkSni5iiZrFCnqLTLaK8dg289YVwYnHd0NJKFS7xBI=", "ref": "refs/heads/main", - "rev": "d6b3a8eababef6389895e126814659476e2ae1ee", - "revCount": 261, + "rev": "637faaa418da6b01ba8d0c51dac3c8a4937e7a4f", + "revCount": 288, "type": "git", "url": "ssh://git@github.com/SkyG-Org/LoopRail.git" }, @@ -2161,16 +2161,16 @@ "nixpkgs": "nixpkgs_11" }, "locked": { - "lastModified": 1795060300, - "narHash": "sha256-T+k1mIiNGYPQFfvorraVlEy5qDIqMHtdprkbWFCOJ7k=", + "lastModified": 1795208433, + "narHash": "sha256-2Y06ZeeX7X8AcIZ7JIq/+88d9DpFSYO8lO0BV4XRRNE=", "ref": "refs/heads/main", - "rev": "70be15ae9d29264dd85c892b86209af486a92e6a", - "revCount": 136, + "rev": "3ea535838ab125160c049d795dce625dec49396c", + "revCount": 265, "type": "git", "url": "ssh://git@github.com/SkyG-Org/LoopRail.git" }, "original": { - "rev": "70be15ae9d29264dd85c892b86209af486a92e6a", + "rev": "3ea535838ab125160c049d795dce625dec49396c", "type": "git", "url": "ssh://git@github.com/SkyG-Org/LoopRail.git" } @@ -2244,11 +2244,11 @@ ] }, "locked": { - "lastModified": 1795132051, - "narHash": "sha256-xPfYpDSNbLda+oKo/MIKEua20dKh/XoB4Tx5uUbeF5Q=", + "lastModified": 1795308743, + "narHash": "sha256-YU5VXLKti6rBDzzzNaGqJ3uaUsk2g4FIzcLHMcMDQrE=", "ref": "refs/heads/main", - "rev": "87839b5992e215f43e69833359b8c76e89027495", - "revCount": 1702, + "rev": "02631ef7dcdbe64b0d3cb9666a564a0026e8d625", + "revCount": 1712, "type": "git", "url": "ssh://git@github.com/SkyG-Org/nBot.git" }, diff --git a/hosts/fwbook/packages.nix b/hosts/fwbook/packages.nix index c15e901..db27236 100644 --- a/hosts/fwbook/packages.nix +++ b/hosts/fwbook/packages.nix @@ -17,6 +17,12 @@ let }; in { + # The desktop portal from unstable: 1.20.4 leaks memory with many short-lived + # clients (flatpak/xdg-desktop-portal#1416, fixed in 1.21.0). + nixpkgs.overlays = [ + (_final: _prev: { xdg-desktop-portal = unstablePkgs.xdg-desktop-portal; }) + ]; + environment.systemPackages = (with pkgs; [ # Desktop & theme diff --git a/hosts/fwbook/systemd.nix b/hosts/fwbook/systemd.nix index 4fd5a0f..dc45791 100644 --- a/hosts/fwbook/systemd.nix +++ b/hosts/fwbook/systemd.nix @@ -2,9 +2,18 @@ { systemd.services.systemd-udev-settle.enable = false; - # Snapper needs a .snapshots subvolume in each snapshotted volume systemd.tmpfiles.rules = [ + # Snapper needs a .snapshots subvolume in each snapshotted volume "v /.snapshots 0750 root root -" "v /home/.snapshots 0750 root root -" + # Clear nix-shell leftovers in /tmp (a tmpfs) unused for a day + "e /tmp/nix-shell.* - - - 1d" ]; + + # Cap the desktop portal; it leaked to 19.6 GB and was OOM-killed on 2026-11-22. + # At the cap it is killed, with no swap first, and D-Bus starts it again. + systemd.user.services.xdg-desktop-portal.serviceConfig = { + MemoryMax = "1G"; + MemorySwapMax = "0"; + }; }