diff options
author | Lily Foster <lily@lily.flowers> | 2022-12-24 13:34:54 -0500 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2022-12-26 17:11:05 +0100 |
commit | 8b4fd7478261c464632a0e99e5b3c1ae836a4768 (patch) | |
tree | dc826106ab59eadb53bc252731bb6644ecf7da9a /nixos/modules/tasks | |
parent | 8ce62ecc1be0027c18a1494f549a1d64a5c3e586 (diff) |
nixos/filesystems: require fstab options list be non-empty
When the option list is empty, the fstab generator does not automatically add "defaults" and generates a non-working fstab (since it just emits two spaces around where the options would have been which is only technically one fstab separator).
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r-- | nixos/modules/tasks/filesystems.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix index a093baea6a65c..7f2c8a41b20a1 100644 --- a/nixos/modules/tasks/filesystems.nix +++ b/nixos/modules/tasks/filesystems.nix @@ -54,7 +54,7 @@ let default = [ "defaults" ]; example = [ "data=journal" ]; description = lib.mdDoc "Options used to mount the file system."; - type = types.listOf nonEmptyStr; + type = types.nonEmptyListOf nonEmptyStr; }; depends = mkOption { |