From d02e5a7d8fcbc4c9ab21b4a25680469d5c3a9804 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 1 Sep 2016 12:18:33 +0300 Subject: [PATCH] nixos/filesystems: Drop compat code for filesystems.*.options type --- nixos/modules/tasks/filesystems.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix index dd632437a78a..9ab1baeacb98 100644 --- a/nixos/modules/tasks/filesystems.nix +++ b/nixos/modules/tasks/filesystems.nix @@ -48,12 +48,8 @@ let default = [ "defaults" ]; example = [ "data=journal" ]; description = "Options used to mount the file system."; - } // (if versionAtLeast lib.nixpkgsVersion "16.09" then { type = types.listOf types.str; - } else { - type = types.either types.commas (types.listOf types.str); - apply = x: if isList x then x else lib.strings.splitString "," (builtins.trace "warning: passing a comma-separated string for filesystem options is deprecated; use a list of strings instead. This will become a hard error in 16.09." x); - }); + }; };