diff options
author | misuzu <bakalolka@gmail.com> | 2020-02-03 18:31:46 +0200 |
---|---|---|
committer | misuzu <bakalolka@gmail.com> | 2020-02-03 18:33:15 +0200 |
commit | f93a9074e42ba71633a9e05269f2bc107d18d6db (patch) | |
tree | 3ca6cbc1270b181487bba0583ebc0f98dab240a6 /nixos/modules/system | |
parent | f16019c58fe7948f947cdc4d73464d82fb69300d (diff) |
nixos/systemd: add `systemd.sleep.extraConfig` config option
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/systemd.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 941df5797c66..2a5b3608311a 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -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 |