I want to amend the file system options that are set for my root file system by hardware-configuration.nix
. I’ve put the following line into configuration.nix
:
fileSystems."/".options = [ "nodiscard" "noatime" ];
However, running nixos-option 'fileSystems."/".options'
results in the following error message:
error: error: At '/' in path 'filesSystems."/".options': error: Option's type.getSupOptions isn't a function
An error occurred while looking for attribute names. Are you sure that 'fileSystem."/".options' exists?
What is wrong here and how can I achieve what I want?