4
2
I'm trying to declare a bind mount in my NixOS configuration. I'm trying the configuration snippet below, but it sends the OS into recovery mode when I test it out (using nixos-rebuild test
). To be clear, I'd like /data
to be reachable at /srv/nfs
as well.
#
# /etc/nixos/configuration.nix
#
fileSystems."/data" = {
device = "/dev/disk/by-uuid/bobloblaw";
fsType = "btrfs";
};
fileSystems."/srv/nfs" = {
device = "/data";
fsType = "bindfs";
};
Any advice?