mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
nixos/filesystems: Drop compat code for filesystems.*.options type
This commit is contained in:
parent
202d9e29c3
commit
d02e5a7d8f
@ -48,12 +48,8 @@ let
|
|||||||
default = [ "defaults" ];
|
default = [ "defaults" ];
|
||||||
example = [ "data=journal" ];
|
example = [ "data=journal" ];
|
||||||
description = "Options used to mount the file system.";
|
description = "Options used to mount the file system.";
|
||||||
} // (if versionAtLeast lib.nixpkgsVersion "16.09" then {
|
|
||||||
type = types.listOf types.str;
|
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);
|
|
||||||
});
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user