nixos/zram-generator: do not require zram to be a module

This commit is contained in:
Nick Cao 2023-12-30 23:43:41 -05:00
parent 6621eab9b1
commit 9eeabd33d2
No known key found for this signature in database

View File

@ -27,7 +27,7 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
system.requiredKernelConfig = with config.lib.kernelConfig; [ system.requiredKernelConfig = with config.lib.kernelConfig; [
(isModule "ZRAM") (isEnabled "ZRAM")
]; ];
systemd.packages = [ cfg.package ]; systemd.packages = [ cfg.package ];