Hello!
I’ve been presented with an error code while trying to rebuild my system. The full error message is:
❯ sudo nixos-rebuild switch --flake .
[sudo] password for sylvia:
building the system configuration...
error:
… while calling the 'head' builtin
at /nix/store/3kwj19dbdfxnjbcns4hw307ylhz3wgrm-source/lib/attrsets.nix:1541:11:
1540| || pred here (elemAt values 1) (head values) then
1541| head values
| ^
1542| else
… while evaluating the attribute 'value'
at /nix/store/3kwj19dbdfxnjbcns4hw307ylhz3wgrm-source/lib/modules.nix:809:9:
808| in warnDeprecation opt //
809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
810| inherit (res.defsFinal') highestPrio;
(stack trace truncated; use '--show-trace' to show the full trace)
error: writing to file: No space left on device
I originally assumed this meant the device that houses /nix and /nix/store was full, and I expanded it from 100GiB to 150GiB. It currently has around 70GiB available.
After that didn’t fix my issue, I figured it was the /boot partition that was full. I have a 1GiB EFI partition, and it also isn’t full.
After the first attempt to build that resulted in this error, I ran nix store gc
, then sudo nix-collect-garbage -d
and then removed the two generations that aren’t current with nix-env --delete-generations 101 102
. None of this fixed my issue!
For reference, here is the result of lsblk -f
:
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
└─sda1 LVM2_member LVM2 001 7nDU4K-infE-WkWU-ZUY8-4bwU-Mv0K-b0i680
└─HDDs-data ext4 1.0 b45c54e2-19b2-49a5-a72b-311340ad83aa 6.7T 6% /data
sdb
└─sdb1 LVM2_member LVM2 001 xatkEb-L4Vy-pQfP-s9CR-iSE9-drAd-RFcqIC
└─HDDs-data ext4 1.0 b45c54e2-19b2-49a5-a72b-311340ad83aa 6.7T 6% /data
nvme1n1
├─nvme1n1p1
└─nvme1n1p2 ntfs 0E624E23624E0FBF
nvme0n1
├─nvme0n1p1 vfat FAT32 79F5-7E04 940.9M 8% /boot
├─nvme0n1p2 swap 1 4e5a17cd-b803-42f5-93e6-0653ea37b1be [SWAP]
├─nvme0n1p3 ext4 1.0 8b552fdc-32d2-4b2a-8a7a-0ae0cb3a73a1 84.5G 37% /nix/store
│ /
└─nvme0n1p4 ext4 1.0 37e33df7-de68-44cf-993f-2afa7f2c69af 175.6G 35% /home
and df -hl
for good measure:
Filesystem Size Used Avail Use% Mounted on
devtmpfs 794M 0 794M 0% /dev
tmpfs 7.8G 58M 7.7G 1% /dev/shm
tmpfs 3.9G 6.3M 3.9G 1% /run
tmpfs 7.8G 1.2M 7.8G 1% /run/wrappers
/dev/nvme0n1p3 148G 56G 85G 40% /
efivarfs 192K 48K 140K 26% /sys/firmware/efi/efivars
/dev/nvme0n1p4 294G 103G 176G 37% /home
/dev/nvme0n1p1 1022M 82M 941M 8% /boot
/dev/mapper/HDDs-data 7.3T 444G 6.8T 7% /data
tmpfs 1.6G 4.9M 1.6G 1% /run/user/1000
Also, I have 16Gb of RAM, a 16GiB SWAP partition, and I’m on an intel CPU, just in case any of this is relevant.
Thank you in advance :3