From 18e2fbf5a1fe72fea7aa6e46d03a021e9663faa1 Mon Sep 17 00:00:00 2001 From: geekiot Date: Sat, 27 Sep 2025 14:19:18 +0500 Subject: [PATCH] hotfix (options): delete zram option --- devices/thinkbook/default.nix | 5 ++++- options/device/zram.nix | 22 ---------------------- 2 files changed, 4 insertions(+), 23 deletions(-) delete mode 100644 options/device/zram.nix diff --git a/devices/thinkbook/default.nix b/devices/thinkbook/default.nix index 7893a7c..2b8d47f 100644 --- a/devices/thinkbook/default.nix +++ b/devices/thinkbook/default.nix @@ -16,5 +16,8 @@ }; }; - device.zram.enable = false; + zramSwap = { + enable = true; + memoryPercent = 100; + }; } diff --git a/options/device/zram.nix b/options/device/zram.nix deleted file mode 100644 index 502e356..0000000 --- a/options/device/zram.nix +++ /dev/null @@ -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; - }; - }; -}