Declare removed option with mkRemovedOptionModule

This commit is contained in:
SaltyKitkat 2023-12-13 16:39:04 +08:00
parent b2d6b30648
commit 679a417a7a

View file

@ -3,6 +3,10 @@
cfg = config.systemd.oomd;
in {
imports = [
(lib.mkRemovedOptionModule [ "systemd" "oomd" "enableUserServices" ] "Use systemd.oomd.enableUserSlices instead.")
];
options.systemd.oomd = {
enable = lib.mkEnableOption (lib.mdDoc "the `systemd-oomd` OOM killer") // { default = true; };