{ povSelf, config, lib, ... }: let inherit (lib) types; cfg = lib.getAttrFromPath povSelf config; in { options.enable = { type = types.bool; default = false; }; config = lib.mkIf cfg.enable { systemd.services.systemd-oomd.after = [ "systemd-sysusers.service" ]; systemd.oomd = { enable = true; enableUserSlices = true; }; }; }