diff options
author | Nick Cao <nickcao@nichi.co> | 2023-02-07 09:16:16 +0800 |
---|---|---|
committer | Nick Cao <nickcao@nichi.co> | 2023-02-07 09:16:16 +0800 |
commit | 341770d3f1b7d78b6bff71e306567171187b48a8 (patch) | |
tree | 21634b23f76edd2d969bf8e145f5c7cf18963738 | |
parent | 42d1d60a92480ce905263fa3e21ffc31b2e1b7d3 (diff) |
nixos/zram: fix default swapDevices
-rw-r--r-- | nixos/modules/config/zram.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/config/zram.nix b/nixos/modules/config/zram.nix index 7b4639d8b1c8..4df646cf2796 100644 --- a/nixos/modules/config/zram.nix +++ b/nixos/modules/config/zram.nix @@ -32,8 +32,7 @@ in }; swapDevices = lib.mkOption { - default = 0; - example = 1; + default = 1; type = lib.types.int; description = lib.mdDoc '' Number of zram devices to be used as swap, recommended is 1. |