3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #79162 from misuzu/systemd-sleep-config

nixos/systemd: add `systemd.sleep.extraConfig` config option
This commit is contained in:
Florian Klink 2020-02-04 23:02:53 +01:00 committed by GitHub
commit eb09e82120
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {
default = "";
type = types.lines;
@ -863,6 +873,7 @@ in
"systemd/sleep.conf".text = ''
[Sleep]
${config.systemd.sleep.extraConfig}
'';
# install provided sysctl snippets