From 165baf60d881f6a14eb445a46d33a985bda896b3 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Mon, 4 Apr 2022 16:58:31 +0000 Subject: [PATCH] Enable suspend on rainbowdash --- flake.lock | 26 +++++++++++++------------- system/rainbowdash/boot-config.nix | 1 + 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/flake.lock b/flake.lock index 9a42556..846adfc 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1647175256, - "narHash": "sha256-7H+veXPM7IwdN1DoZqliwb9sghlN56koV5dnCu1kpsc=", + "lastModified": 1648834319, + "narHash": "sha256-i5Aj4Aw64D/A0X6XW5LxSS4XBnYj7gMz+kN4dpsbdk8=", "owner": "nix-community", "repo": "home-manager", - "rev": "a8d00f5c038cf7ec54e7dac9c57b171c1217f008", + "rev": "0bdbdea2e26c984b096f4f7d10e3c88536a980b0", "type": "github" }, "original": { @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1648203577, - "narHash": "sha256-CbXZkiVTA0ByV/yncFHCAGIa/AfcSb0cjqzEa56rO+Y=", + "lastModified": 1649024309, + "narHash": "sha256-AWbvj/NHZXVwAnHaVOFlxg7tcNerEKrKBmgGfztSHWM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "d89f18a17e51532ed5f4d45297b0ddf11e46b9c8", + "rev": "af0a9bc0e5341855518e9c1734d7ef913e5138b9", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1648390671, - "narHash": "sha256-u69opCeHUx3CsdIerD0wVSR+DjfDQjnztObqfk9Trqc=", + "lastModified": 1648632716, + "narHash": "sha256-kCmnDeiaMsdhfnNKjxdOzwRh2H6eQb8yWAL+nNabC/Y=", "owner": "nixos", "repo": "nixpkgs", - "rev": "ce8cbe3c01fd8ee2de526ccd84bbf9b82397a510", + "rev": "710fed5a2483f945b14f4a58af2cd3676b42d8c8", "type": "github" }, "original": { @@ -55,11 +55,11 @@ }, "private": { "locked": { - "lastModified": 1637382407, - "narHash": "sha256-Bw/R8th8bbJ7w6qN6+kxv7pfN3oa+VuzuJdEWgFmDuA=", + "lastModified": 1649027188, + "narHash": "sha256-OLQOOAmMTjpVbWnX8avypJolRycM5zusGL75ASH5QG0=", "ref": "unified", - "rev": "992cc2ee5ba553bf3471e69fb59d8fe1fef4e87b", - "revCount": 28, + "rev": "25a7854a94cda521cccb4bee99c5dbbc95236316", + "revCount": 29, "type": "git", "url": "ssh://git@github.com/artemist/nixos-config-private" }, diff --git a/system/rainbowdash/boot-config.nix b/system/rainbowdash/boot-config.nix index 34b9c3e..5e0b1dd 100644 --- a/system/rainbowdash/boot-config.nix +++ b/system/rainbowdash/boot-config.nix @@ -3,6 +3,7 @@ { boot = { kernelPackages = pkgs.linuxPackages_latest; + kernelParams = [ "mem_sleep_default=deep" ]; kernel.sysctl."vm.swappiness" = 5; cleanTmpDir = true; blacklistedKernelModules = [ "psmouse" ];