Add host options & hotfixes. #3

Merged
geekiot merged 4 commits from features into develop 2025-09-27 15:24:51 +05:00
2 changed files with 4 additions and 23 deletions
Showing only changes of commit 18e2fbf5a1 - Show all commits

View file

@ -16,5 +16,8 @@
};
};
device.zram.enable = false;
zramSwap = {
enable = true;
memoryPercent = 100;
};
}

View file

@ -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;
};
};
}