From 102f7542ed8b3126977aaec0a8253189708f6e00 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Wed, 20 Oct 2021 13:17:53 -0700 Subject: [PATCH] refinement to commandline set; enable deep sleep in nixos --- nix/home/commandline.nix | 3 ++- nix/system/configuration.nix | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/home/commandline.nix b/nix/home/commandline.nix index 193edfa..6c408f3 100644 --- a/nix/home/commandline.nix +++ b/nix/home/commandline.nix @@ -2,13 +2,14 @@ let defaultPkgs = with pkgs; [ - lorri p7zip ]; in { imports = [ (import ./universal.nix) ]; + home.packages = defaultPkgs; + services.lorri.enable = true; xdg.enable = true; } diff --git a/nix/system/configuration.nix b/nix/system/configuration.nix index 3456768..e661513 100644 --- a/nix/system/configuration.nix +++ b/nix/system/configuration.nix @@ -19,6 +19,8 @@ # WiFi support requires kernel 5.13 boot.kernelPackages = pkgs.linuxPackages_latest; boot.loader.efi.canTouchEfiVariables = true; + # Enable deep sleep mode + boot.kernelParams = [ "mem_sleep_default=deep" ]; hardware.bluetooth.enable = true; networking.hostName = "framework"; # Define your hostname.