summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2021-06-24 20:58:18 +0300
committerArtturin <Artturin@artturin.com>2021-07-20 20:51:27 +0300
commitc971de97c4146a052b731fd47babc8be395ffdf0 (patch)
treed8d2787dbc73a4dc74e5137ee5a04608e8d6a964 /nixos/modules/config
parenta3c5f0cba8fa9c4d9782ef83757be6e4028f54b7 (diff)
downloadnixpkgs-c971de97c4146a052b731fd47babc8be395ffdf0.tar
nixpkgs-c971de97c4146a052b731fd47babc8be395ffdf0.tar.gz
nixpkgs-c971de97c4146a052b731fd47babc8be395ffdf0.tar.bz2
nixpkgs-c971de97c4146a052b731fd47babc8be395ffdf0.tar.lz
nixpkgs-c971de97c4146a052b731fd47babc8be395ffdf0.tar.xz
nixpkgs-c971de97c4146a052b731fd47babc8be395ffdf0.tar.zst
nixpkgs-c971de97c4146a052b731fd47babc8be395ffdf0.zip
nixos/swap: add options option
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/swap.nix9
1 files changed, 9 insertions, 0 deletions
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;