I think you should keep your filesystem config as an attribute set, not an
array.
The module maps it to an array internally by copying the name into
mountPoint if it doesn't exist and using attrValues.
On May 14, 2014 2:33 AM, "Corentin Henry" <[email protected]> wrote:
> Hi,
>
> Thanks for your answer.
>
> NixOS doesn't use /etc/configuration.nix but /etc/nixos/configuration.nix
>> (likewise for hardware-configuration.nix). Maybe you were editing the
>> wrong file?
>>
>
> No I was editing the right file, I made a mistake when writing my mail.
>
>
>> > mounting /dev/sda1 on /...
>> ...
>> > mounting /dev/disk/by-label/nixos on /...
>>
>> This suggests that you have two fileSystems entries for /. The first
>> succeeds,
>> the second fails because the file system is already mounted.
>
>
> Yes but I don't know why. By default, my
> /etc/nixos/hardware-configuration.nix contains :
>
> fileSystems."/" {
> device = "/dev/sda1" ;
> fsType = "ext4";
> };
>
> When I remove it and instead add the follwing in
> /etc/nixos/configuration.nix I have the error.
>
> fileSystems = [
> {
> mountPoint = "/";
> label = "nixos"
> }
> ];
>
> So the solution was to to just keep hardware-configuration.nix as it is by
> default, and add nothing to configuration.nix. That's odd though...
>
> _______________________________________________
> nix-dev mailing list
> [email protected]
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev