nixos/zram-generator: do not require zram to be a module
This commit is contained in:
parent
6621eab9b1
commit
9eeabd33d2
@ -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 ];
|
||||||
|
Loading…
Reference in New Issue
Block a user