mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: synchronize, hibernate
This commit is contained in:
parent
6bb963d9ad
commit
a4b63004fb
18 changed files with 48 additions and 110 deletions
|
|
@ -1,15 +1,13 @@
|
|||
{pkgs, ...}: {
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
font-awesome
|
||||
noto-fonts-cjk-sans
|
||||
twitter-color-emoji
|
||||
iosevka-bin
|
||||
monaspace
|
||||
corefonts
|
||||
vistafonts
|
||||
open-dyslexic
|
||||
ubuntu-sans
|
||||
monaspace
|
||||
jost
|
||||
];
|
||||
enableDefaultPackages = true;
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
_: {
|
||||
}
|
||||
12
nixos/profiles/laptop/hibernate.nix
Normal file
12
nixos/profiles/laptop/hibernate.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
_: {
|
||||
systemd.sleep.extraConfig = ''
|
||||
HibernateDelaySec=30m
|
||||
SuspendState=mem
|
||||
'';
|
||||
boot.kernelParams = ["mem_sleep_default=deep"];
|
||||
services.logind = {
|
||||
powerKey = "hibernate";
|
||||
powerKeyLongPress = "poweroff";
|
||||
lidSwitch = "suspend-then-hibernate";
|
||||
};
|
||||
}
|
||||
3
nixos/profiles/laptop/ppd.nix
Normal file
3
nixos/profiles/laptop/ppd.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
_: {
|
||||
services.power-profiles-daemon.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue