mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/systemd: add systemd.sleep.extraConfig
config option
This commit is contained in:
parent
f16019c58f
commit
f93a9074e4
1 changed files with 11 additions and 0 deletions
|
@ -697,6 +697,16 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.sleep.extraConfig = mkOption {
|
||||||
|
default = "";
|
||||||
|
type = types.lines;
|
||||||
|
example = "HibernateDelaySec=1h";
|
||||||
|
description = ''
|
||||||
|
Extra config options for systemd sleep state logic.
|
||||||
|
See sleep.conf.d(5) man page for available options.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
systemd.user.extraConfig = mkOption {
|
systemd.user.extraConfig = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
|
@ -863,6 +873,7 @@ in
|
||||||
|
|
||||||
"systemd/sleep.conf".text = ''
|
"systemd/sleep.conf".text = ''
|
||||||
[Sleep]
|
[Sleep]
|
||||||
|
${config.systemd.sleep.extraConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# install provided sysctl snippets
|
# install provided sysctl snippets
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue