mirror of
https://github.com/0x1d/nix.git
synced 2025-12-14 22:02:25 +01:00
Add power management
This commit is contained in:
@@ -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
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user