RPI 3B - aarch64 nixos-rebuild

Hello,

I download and boot my last rpi3B+ with the nixos 20.03 kernel 5.4.44 without pb.

I want to update my configuration ,and i don’t arrive

this command

Blockquote
nixos-rebuild switch --upgrade --show-trace
unpacking channels…
building Nix…
building the system configuration…
these derivations will be built:
/nix/store/8n0n0g4jzffzk77rw72g45s67ifdpadd-nixos-manual-html.drv
/nix/store/pm49rf4n0sg93vrl4cild7h3br0bq7na-nixos-manpages.drv
/nix/store/rn1b5gbvppvspxv0kmgv47sqdz342k8v-nixos-help.drv
/nix/store/8vmv5r6mpqap725ii8vgafn68jjhkfkn-system-path.drv
/nix/store/lhkdyw7n1smd3ha5nm6a678wishh1qqa-dbus-1.drv
/nix/store/0cjcyqybr5z9q0wq35p9a96rqh1422s2-unit-dbus.service.drv
/nix/store/1iygcg5ka5rvb0krv1m0rihgvclqax5j-unit-script-post-resume-start.drv
/nix/store/2hb8x75sc9fjg7miz86sqv48x4fnaa3p-unit-systemd-sysctl.service.drv
/nix/store/430v8d903lmj9s86wch7bfs1nx8mciw0-unit-firewall.service.drv
/nix/store/621z6cwrlf48af27r3b1ffbr9nr69gih-unit-systemd-modules-load.service.drv
/nix/store/7sww8xs2b7mgj8vyphab1413v4mxdafj-unit-systemd-fsck-.service.drv
/nix/store/8hck38yyqdr13ds62r2q7j0i626ggyc8-unit-nscd.service.drv
/nix/store/cjzczz36cvrg96bhjsvxrdmlr8acjakx-unit-serial-getty-.service.drv
/nix/store/cnkbjdwrzyaz36jbj4nrfx9xki3xl30j-unit-console-getty.service-disabled.drv
/nix/store/hmf9q94jry9wjm3r0xbcab8vqqa79vyq-unit-container-getty-.service.drv
/nix/store/l824z6dqnd4m2zd8wrlafx12lrlw3dxz-unit-systemd-timedated.service.drv
/nix/store/p7qx4liq1xqpbrha98rr852gyrp3j1gj-unit-sshd.service.drv
/nix/store/q5n1wlhar5jbfzlys6694njk9bspk4s3-unit-polkit.service.drv
/nix/store/sgkklnhjvqjj8zmc32j9h19w8labj0k3-unit-systemd-udevd.service.drv
/nix/store/y25knwci9bnf8c3w0k1imsxxa0mhwd4x-unit-getty-.service.drv
/nix/store/z41pw5ihz5nz5scd2iz8wf2x7gh5hgy8-unit-post-resume.service.drv
/nix/store/1qxqy3l5zkrz630l28kg458c3harbaf0-system-units.drv
/nix/store/a38zsc86pm0d33qdpk12dhhldrpw1qc3-users-groups.json.drv
/nix/store/blr2j8xawvkrx7nsijk5w8la2d47i8xd-unit-dbus.service.drv
/nix/store/hqklrlnszx5h9nvwqyycqqfixkzhbk2k-user-units.drv
/nix/store/wqiajrskk4frbn3s909x0yaljagjn6hf-udev-rules.drv
/nix/store/qqz7v9z91r6y2pmayan4vbkpkrarvw7n-etc.drv
/nix/store/p64aawdz6cc122y2fwv5g8i3h3d7ybrf-nixos-system-rpi3-Nixos-20.03.2102.e2bb73ce5f7.drv
building ‘/nix/store/a38zsc86pm0d33qdpk12dhhldrpw1qc3-users-groups.json.drv’…
building ‘/nix/store/pm49rf4n0sg93vrl4cild7h3br0bq7na-nixos-manpages.drv’…
[root@nixos:/boot/nixos]# echo $?
137

exit with value 137 without message.

where i can find root cause of that ?

Pierre

Info tech:
hardware aarch64 rpi 3b+

Blockquote
Architecture: aarch64
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: ARM
Model: 4
Model name: Cortex-A53
Stepping: r0p4
CPU max MHz: 1200.0000
CPU min MHz: 600.0000
BogoMIPS: 38.40
NUMA node0 CPU(s): 0-3
Flags: fp asimd evtstrm crc32 cpuid

Blockquote
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 59.5G 0 disk
├─mmcblk0p1 179:1 0 30M 0 part
└─mmcblk0p2 179:2 0 59.5G 0 part /

nixos

Blockquote
nix-shell -p nix-info --run “nix-info -m”
these paths will be fetched (0.05 MiB download, 0.28 MiB unpacked):
/nix/store/fprh8akz5cnalclj4pk83p52xjrka15f-bash-interactive-4.4-p23-dev
copying path ‘/nix/store/fprh8akz5cnalclj4pk83p52xjrka15f-bash-interactive-4.4-p23-dev’ from ‘https://cache.nixos.org’…

  • system: "aarch64-linux"
  • host os: Linux 5.4.44, NixOS, 20.03.2102.e2bb73ce5f7 (Markhor)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.5
  • channels(root): "nixos-20.03.2102.e2bb73ce5f7"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

channel

Blockquote
nix-channel --list
nixos nixos-20.03 release nixos-20.03.3330.1db42b7fe38

configuration.nix

Blockquote
{ config, pkgs, lib, …} :
{
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
nixpkgs.config.allowUnsupportedSystem = true;
boot.kernelParams = [“cma=48M”];
networking.hostName = “rpi3-Nixos”; # Define your hostname.
fileSystems = {
“/” = {
device = “/dev/disk/by-label/NIXOS_SD”;
fsType = “ext4”;
};
};
services.openssh.enable = true;
time.timeZone = “Europe/Zurich”;
users.groups.postgres.gid = 1100 ;
users.users.pxxxxx =
{
isNormalUser = true;
home = “/home/pxxxxx”;
description = “pierre test”;
extraGroups = [ “wheel” “networkmanager” ];
};
}

exit - 137 enough memory
so after exchange on IRC suppress generation documentation.

documentation.nixos.enable= false;
documentation.man.enable= false;
documentation.doc.enable= false;

It s work fine :slight_smile: merci @cript0nauta on IRC :+1: