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

@@ -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
'';
}