From 341770d3f1b7d78b6bff71e306567171187b48a8 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Tue, 7 Feb 2023 09:16:16 +0800 Subject: [PATCH] nixos/zram: fix default swapDevices --- nixos/modules/config/zram.nix | 3 +-- 1 file changed, 1 insertion(+), 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.