From c971de97c4146a052b731fd47babc8be395ffdf0 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 24 Jun 2021 20:58:18 +0300 Subject: nixos/swap: add options option --- nixos/modules/config/swap.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nixos/modules/config') diff --git a/nixos/modules/config/swap.nix b/nixos/modules/config/swap.nix index a37b46b8c46..9b64d5287a1 100644 --- a/nixos/modules/config/swap.nix +++ b/nixos/modules/config/swap.nix @@ -127,6 +127,15 @@ let ''; }; + options = mkOption { + default = [ "defaults" ]; + example = [ "nofail" ]; + type = types.listOf types.nonEmptyStr; + description = '' + Options used to mount the swap. + ''; + }; + deviceName = mkOption { type = types.str; internal = true; -- cgit 1.4.1