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