Add power management

This commit is contained in:
2024-08-27 13:36:54 +02:00
parent 76df4256e6
commit 9a529d3bbe
4 changed files with 15 additions and 6 deletions

View File

@@ -11,8 +11,4 @@
system.stateVersion = "23.05";
nixpkgs.config.permittedInsecurePackages = [
"electron-24.8.6"
];
}

View File

@@ -38,6 +38,7 @@
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.enable = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.bluetooth.enable = true;

View File

@@ -1,6 +1,11 @@
{ pkgs, ... }: {
nixpkgs.config.allowUnfree = true;
nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-24.8.6"
];
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
@@ -39,4 +44,10 @@
services.logind.extraConfig = ''
RuntimeDirectorySize=20G
'';
systemd.sleep.extraConfig = ''
AllowSuspend=yes
AllowHibernation=yes
AllowHybridSleep=yes
AllowSuspendThenHibernate=yes
'';
}

View File

@@ -39,6 +39,7 @@
imagemagick
ledger-live-desktop
solana-cli
sqlite
];
programs = {