Only set lidSwitch to hibernate if 'resumeDevice' is set
This commit is contained in:
parent
0a48c6ecce
commit
3754cbb0c0
1 changed files with 1 additions and 1 deletions
|
@ -19,6 +19,6 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
logind.lidSwitch = "hibernate";
|
logind.lidSwitch = if config.boot.resumeDevice != "" then "hibernate" else "suspend";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue