mirror of
https://github.com/0x1d/nix.git
synced 2025-12-14 14:01:29 +01:00
Add power management
This commit is contained in:
@@ -11,8 +11,4 @@
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"electron-24.8.6"
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
{ 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
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
imagemagick
|
||||
ledger-live-desktop
|
||||
solana-cli
|
||||
sqlite
|
||||
];
|
||||
|
||||
programs = {
|
||||
|
||||
Reference in New Issue
Block a user