NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.87k stars 13.94k forks source link

nixos-generate-config: support fuse mounts #14624

Open savorocks opened 8 years ago

savorocks commented 8 years ago

Issue description

I successfully mounted my windows partitions (NTFS) following the steps i described below. However, when I try to generate config, to have my drives automatically mounted when I reboot, i get following error/warning (for each drive): warning: don't know how to emit ‘fileSystem’ option for FUSE filesystem ‘/mnt/nameofmydrive’

Steps to reproduce

  1. Create a directory of your preference, as /mnt/windows-partition
  2. Mount the desired partition, say /dev/sdn5, in that directory: $ mount /dev/sdn5/mnt/windows-partition`
  3. Run nixos-generate-config. It will update /etc/nixos/hardware-configuration.nix to match the new partition configuration (and configuration.nix stays untouched, unless you use the --force option).

P.S. I have ntfs-3g installed on my system.

Technical details

vcunat commented 8 years ago

Yes, it seems clear the generator has never supported fuse mounts yet.

Profpatsch commented 6 years ago

triage: are those mounts supported yet? If not, would you like to create a pull request?

TheSirC commented 5 years ago

Sorry to post on such an old post but I suffer from the same exact issue but in 19.03. Is there a workaround that has been found?

JohnAZoidberg commented 5 years ago

The workaround is to just add them manually: https://nixos.org/nixos/manual/options.html#opt-fileSystems I had problems mounting a fuse drive one time but I managed to solve it here: https://github.com/NixOS/nixpkgs/issues/46529

This issue is just about nixos-generate-config to detect them automatically and add them to your config before you install NixOS.

TheSirC commented 5 years ago

I had problems mounting a fuse drive one time but I managed to solve it here: #46529

Thanks a lot for the reference, I will take a look to implement it on my system.

This issue is just about nixos-generate-config to detect them automatically and add them to your config before you install NixOS.

Rodger that, would there be a way to contribute into that sense ? Is there a following issue (maybe this one then?) on the feature ? What would be the steps for me to implement it and contribute back ?

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
JohnAZoidberg commented 4 years ago

This issue is just about nixos-generate-config to detect them automatically and add them to your config before you install NixOS.

Rodger that, would there be a way to contribute into that sense ? Is there a following issue (maybe this one then?) on the feature ? What would be the steps for me to implement it and contribute back ?

Yeah, you can implement that here: https://github.com/NixOS/nixpkgs/blob/c3a05f90ed4a6c601c94f3bf0f14933c8f965d61/nixos/modules/installer/tools/nixos-generate-config.pl#L349 https://github.com/NixOS/nixpkgs/blob/c3a05f90ed4a6c601c94f3bf0f14933c8f965d61/nixos/modules/installer/tools/nixos-generate-config.pl#L406

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info