Setup laptop hibernation and nix dotfiles alias
This commit is contained in:
parent
44f819a1db
commit
984e56ba67
|
@ -77,6 +77,7 @@ alias cdc "d $XDG_CONFIG_HOME" # go to ~/.config
|
|||
alias cdn "d $NOTES_PATH"
|
||||
alias cdl "d $NICE_HOME/dl"
|
||||
alias cdg "d $NICE_HOME/games"
|
||||
alias cdnx "d $DOTFILES_PATH/env/nix"
|
||||
|
||||
# quick parent-directory aliases
|
||||
alias .. "d .."
|
||||
|
|
10
env/nix/machines/third.nix
vendored
10
env/nix/machines/third.nix
vendored
|
@ -31,6 +31,16 @@
|
|||
xft-dpi=260
|
||||
'';
|
||||
|
||||
swapDevices = [ { device = "/swapfile"; size = (1024*16); } ];
|
||||
|
||||
boot = {
|
||||
# fallocate -l 16G /swapfile
|
||||
resumeDevice = "/dev/disk/by-uuid/d1d92974-c0c0-4566-8131-c3dda9b21122";
|
||||
# sudo filefrag -v /swapfile | head -n 4 | tail -n 1 | \
|
||||
# tr -s "[:blank:]" | field 5 | tr -d ":"
|
||||
kernelParams = [ "resume_offset=874496" ];
|
||||
};
|
||||
|
||||
# services.upower = {
|
||||
# enable = true;
|
||||
# criticalPowerAction = "Hibernate";
|
||||
|
|
Reference in a new issue