!LemuOOvbWqRXodtSsw:nixos.org

NixOS Reproducible Builds

543 Members
Report: https://reproducible.nixos.org Project progress: https://github.com/orgs/NixOS/projects/30121 Servers

Load older messages


SenderMessageTime
2 Dec 2022
@rick:matrix.ciphernetics.nlRick (Mindavi)It is possible, but there is no ready-to-use solution17:53:31
@cbwang:matrix.orgcbwangThanks! I'm basically naively wondering if it is possible to build an ENTIRE minimum NixOS iso completely from source code of free software and with COMPLETELY no binaries (except stage0) involved at all.18:08:13
@cbwang:matrix.orgcbwangAnd, if the above procedure is possible, then the next goal would be make this process reproducible 😆18:08:54
@cbwang:matrix.orgcbwang* And, if the above procedure is possible, then the next goal would be making this process reproducible 😆18:09:24
@rick:matrix.ciphernetics.nlRick (Mindavi)Technically it should be, yeah18:10:42
@rick:matrix.ciphernetics.nlRick (Mindavi)But by default the bootstrap binaries are used18:10:54
@rick:matrix.ciphernetics.nlRick (Mindavi)And your host kernel18:10:59
@cbwang:matrix.orgcbwang
In reply to @rick:matrix.ciphernetics.nl
And your host kernel
But if this process can be reproducible no matter what host OS is, no matter what CPU is, then the host kernel is not required to be trusted
18:12:42
@rick:matrix.ciphernetics.nlRick (Mindavi)Ah yes18:12:57
@rick:matrix.ciphernetics.nlRick (Mindavi)True :)18:12:59
@rick:matrix.ciphernetics.nlRick (Mindavi)I always wonder where one would start...18:14:26
@cbwang:matrix.orgcbwangBesides, if we really can achieve that, then we are going to have the first host OS that all the binaries are free18:14:22
@cbwang:matrix.orgcbwang
In reply to @rick:matrix.ciphernetics.nl
I always wonder where one would start...
A 256-byte assembler "hex0" from https://github.com/oriansj/bootstrap-seeds
18:15:41
@cbwang:matrix.orgcbwang* A 256-byte assembler "hex0" from https://github.com/oriansj/bootstrap-seeds/blob/master/POSIX/x86/hex0-seed18:16:23
@rick:matrix.ciphernetics.nlRick (Mindavi)I mean18:16:45
@rick:matrix.ciphernetics.nlRick (Mindavi)Do you burn that on a usb stick and boot from it?18:16:56
@rick:matrix.ciphernetics.nlRick (Mindavi)🧐18:17:01
@rick:matrix.ciphernetics.nlRick (Mindavi)Or do you start with a host os and a statically linked nix or so?18:17:35
@cbwang:matrix.orgcbwang
In reply to @rick:matrix.ciphernetics.nl
Do you burn that on a usb stick and boot from it?
I would prefer to burn it on a DVD
18:17:45
@rick:matrix.ciphernetics.nlRick (Mindavi)Or whatever nix18:17:50
@cbwang:matrix.orgcbwang
In reply to @rick:matrix.ciphernetics.nl
Or do you start with a host os and a statically linked nix or so?
Start with a nix that is built from a gcc bootstrapped from stage0
18:18:38
@rick:matrix.ciphernetics.nlRick (Mindavi)And that you can build on whatever host I guess?18:20:23
@cbwang:matrix.orgcbwangYeah, and the nix binary should be reproducible on any x86 compatible hardware.18:21:00
@rick:matrix.ciphernetics.nlRick (Mindavi)Yeah, at least x86_6418:21:27
@cbwang:matrix.orgcbwang
In reply to @cbwang:matrix.org
Thanks! I'm basically naively wondering if it is possible to build an ENTIRE minimum NixOS iso completely from source code of free software and with COMPLETELY no binaries (except stage0) involved at all.
I guess some people would love this. The cryptocurrency community for example, they treated security extremely seriously. The Solarwinds and XcodeGhost attack had demonstrated what a supply chain attack is capable of.
18:29:17
@cbwang:matrix.orgcbwangPerhaps some day, some one would publish this: he compiled an entire NixOS from source code, except the 256-bytes stage0 is binary. Then he publishes his (gpg-signed) entire chain of trust, how he bootstrapped stage0 -> stage1 -> gcc -> nix -> ... NixOS iso, and telling the world that anyone can reproducible this chain of trust.18:33:52
@cbwang:matrix.orgcbwang* Perhaps some day, some one would publish this: he compiled an entire NixOS from source code, except the 256-bytes stage0 is binary. Then he publishes his (gpg-signed) entire chain of trust, how he bootstrapped stage0 -> stage1 -> gcc -> nix -> ... NixOS iso, and telling the world that anyone can reproduce this chain of trust.18:40:42
@foxboron:archlinux.orgFoxboron
In reply to @cbwang:matrix.org
Besides, if we really can achieve that, then we are going to have the first host OS that all the binaries are free
Guix is already doing this fwiw
18:50:28
@foxboron:archlinux.orgFoxboronThey started https://bootstrappable.org/ as a subproject under reproducible builds a few years ago. They have also been working hard on reducing the compiler stages beyond the seed binary with work on GNU mes C18:51:51
@cbwang:matrix.orgcbwang
In reply to @foxboron:archlinux.org
Guix is already doing this fwiw
However from https://data.guix.gnu.org/repository/1/branch/master/latest-processed-revision/package-reproducibility it seems that more than 10% of Guix packages are not reproducible
18:54:03

Show newer messages


Back to Room ListRoom Version: 6