News for hackers. Stuff that matters.
Re:NixOS, Raspberry Pi and Me by rcarmo on Saturday August 17, 2024 @05:47AM (#41273138)
If you're using random ARM boards (even well known ones), the way I've found most useful (since I seldom use them as desktops anyway) is to install a minimal Armbian (or similar, with barely anything besides the networks stack) and use LXC/LXD - https://taoofmac.com/space/blog/2024/07/18/0900
Re:NixOS, Raspberry Pi and Me by irusensei on Saturday August 17, 2024 @06:45AM (#41273431)
I tried systemd-nspawn which is similar but NixOS will complain about sandboxing if run from any kind of container layer. Fedora 40 works for me without any workarounds. It runs on a very recent 6.9x kernel with bcachefs and everything so at this point I’d rather just install nix on top of it.
Re:NixOS, Raspberry Pi and Me by rcarmo on Saturday August 17, 2024 @07:55AM (#41273824)
You need to have the particular configuration I have on my post:

    imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ]; 
    boot.isContainer = true;
Re:NixOS, Raspberry Pi and Me by rcarmo on Saturday August 17, 2024 @11:11AM (#41275089)
I've since gone and figured out how to do it on Proxmox as well after lunchtime: https://taoofmac.com/space/blog/2024/08/17/1530
Re:NixOS, Raspberry Pi and Me by exe34 on Saturday August 17, 2024 @08:22AM (#41273992)
can you use gui stuff that way? X/Wayland?
Re:NixOS, Raspberry Pi and Me by rcarmo on Saturday August 17, 2024 @11:10AM (#41275087)
Well, I use xrdp almost as a rule, but theoretically you _could_ map the hardware devices and run them from the container--I've seen it done before.
Re:NixOS, Raspberry Pi and Me by exe34 on Saturday August 17, 2024 @03:39PM (#41277314)
incidentally, I had trouble running webots on a virtual x server, but plugging in a fake hdmi monitor allows it to work fine over vnc.
Re:NixOS, Raspberry Pi and Me by rcarmo on Sunday August 18, 2024 @03:59AM (#41280880)
Don’t use VNC. It is horrendously slow compared to RDP.
Re:NixOS, Raspberry Pi and Me by exe34 on Sunday August 18, 2024 @04:21AM (#41280970)
thank you, will give that a go!
Re:NixOS, Raspberry Pi and Me by rcarmo on Sunday August 18, 2024 @12:34PM (#41283355)
Pro tip: install xorgxrdp (or xorgxrdp-glamor on Intel) and disable the VNC back-end on /etc/xrdp.ini