Add host options & hotfixes. #3
2 changed files with 4 additions and 23 deletions
|
|
@ -16,5 +16,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
device.zram.enable = false;
|
zramSwap = {
|
||||||
|
enable = true;
|
||||||
|
memoryPercent = 100;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = device.zram;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options = {
|
|
||||||
device.zram = {
|
|
||||||
enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
description = "Zram settings for the device.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
zramSwap = {
|
|
||||||
enable = true;
|
|
||||||
memoryPercent = 100;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in a new issue