!UUqahLbShAYkkrXmKs:matrix.org

DevOS

35 Members
Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga10 Servers

Load older messages


SenderMessageTime
13 Aug 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @gtrunsec:matrix.org
I like the idea of ​​customProfileTest , but there seem to be some problems with its logic. It should load the activated suites of the current host instead of merged in allProfilesTest.
oh, it does neither...
00:57:11
@blaggacao:matrix.orgDavid Arnold (blaggacao)(or I made a mistake 🤣)00:57:27
@kraftnix:matrix.org@kraftnix:matrix.orgI had some nasty case before where the test never timed out :/00:57:28
@blaggacao:matrix.orgDavid Arnold (blaggacao)Nice trick, that Las shared over there:a01:39:39
@blaggacao:matrix.orgDavid Arnold (blaggacao)
$ mount /dev/disk/by-label/nixos /mnt
$ mkdir -p /mnt/boot && mount /dev/disk/by-label/boot /mnt/boot # UEFI only
$ swapon /dev/$your_swap_partition
# add some extra space to the store, it's running on a tmpfs on your RAM
$ mkdir -p /mnt/tmpstore/{work,store}
$ mount -t overlay overlay -olowerdir=/nix/store,upperdir=/mnt/tmpstore/store,workdir=/mnt/tmpstore/work /nix/store
01:39:50
@blaggacao:matrix.orgDavid Arnold (blaggacao)I'll put it in the docs...01:40:25
@blaggacao:matrix.orgDavid Arnold (blaggacao) And I also was reminded, that good old bud can't work on a read-only flake root. 01:41:41
@blaggacao:matrix.orgDavid Arnold (blaggacao)https://devos.divnix.com/start/bootstrapping.html#mount-partitions01:46:57
@blaggacao:matrix.orgDavid Arnold (blaggacao)Does anybody know a smart way to make the baked in flake writable? maybe using overlays?01:58:40
@blaggacao:matrix.orgDavid Arnold (blaggacao)https://github.com/divnix/digga/blob/dbc88a75a2e2dbdeb0b482d1522f215aa68325e5/modules/bootstrap-iso.nix#L17-L2001:59:27
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @blaggacao:matrix.org
$ mount /dev/disk/by-label/nixos /mnt
$ mkdir -p /mnt/boot && mount /dev/disk/by-label/boot /mnt/boot # UEFI only
$ swapon /dev/$your_swap_partition
# add some extra space to the store, it's running on a tmpfs on your RAM
$ mkdir -p /mnt/tmpstore/{work,store}
$ mount -t overlay overlay -olowerdir=/nix/store,upperdir=/mnt/tmpstore/store,workdir=/mnt/tmpstore/work /nix/store
that's neat, i have actually run into the tmpfs storage issue before when trying to do a 0 -> full system build during bootstrap
02:50:05
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @blaggacao:matrix.org
Does anybody know a smart way to make the baked in flake writable? maybe using overlays?
in the context of bootstrapIso my hack is just to rsync it the user home dir, edit + build there
02:50:52
@blaggacao:matrix.orgDavid Arnold (blaggacao) I still want to do copy --to ssh://[fe08::47%eno1]/mnt though... 02:51:11
@blaggacao:matrix.orgDavid Arnold (blaggacao) but the path part of the uri is not parsed in nix ... 😥 02:51:46
@blaggacao:matrix.orgDavid Arnold (blaggacao) * I still want to do nix copy --to ssh://[fe08::47%eno1]/mnt though... 02:52:03
@kraftnix:matrix.org@kraftnix:matrix.orgahhh02:52:07
@blaggacao:matrix.orgDavid Arnold (blaggacao) it seems to be a hard wall to hit 02:52:53
@kraftnix:matrix.org@kraftnix:matrix.org given that nix doesn't seem to support that, the cleanest hack i can think of (although i'm not sure whether this should be in deploy/yeet) is to run an sshfs to the install target at /mnt/nix/store and then nix copy --to file:///deploy-host/path/to/sshfs 😐️ 02:59:07
@kraftnix:matrix.org@kraftnix:matrix.org * given that nix doesn't seem to support that, the cleanest hack i can think of (although i'm not sure whether this should be in deploy/yeet) is to run an sshfs to the install target at /mnt/nix/store and then nix copy --to file:///deploy-host/path/to/sshfs 😐️ 03:00:35
@blaggacao:matrix.orgDavid Arnold (blaggacao) ssh://localhost?store=$NIX_STORE_DIR&remote-store=$remoteRoot?store=$NIX_STORE_DIR&real=$remoteRoot$NIX_STORE_DIR what is this???? 03:51:54
@blaggacao:matrix.orgDavid Arnold (blaggacao)It certainle doesn't seem that draft uri RFC spec03:53:05
@blaggacao:matrix.orgDavid Arnold (blaggacao) * It certainly doesn't seem that draft uri RFC spec03:53:14
@blaggacao:matrix.orgDavid Arnold (blaggacao) And then there is ssh-ng ... 😕 03:53:39
@timdeh:matrix.org@timdeh:matrix.orgSo second draft is pretty much a total rewrite 😆: https://github.com/divnix/nix-book/blob/57e06c9cf52482209600505d1967939526fa95cd/src/ch01-00-foreword.md05:45:36
@timdeh:matrix.org@timdeh:matrix.org
In reply to @blaggacao:matrix.org
ssh://localhost?store=$NIX_STORE_DIR&remote-store=$remoteRoot?store=$NIX_STORE_DIR&real=$remoteRoot$NIX_STORE_DIR what is this????
where did you find this beast 😄
05:46:31
@blaggacao:matrix.orgDavid Arnold (blaggacao)https://github.com/NixOS/nix/blob/7c90552879da4d1df99b50c85e94201981e60123/tests/nix-copy-ssh.sh05:47:19
@blaggacao:matrix.orgDavid Arnold (blaggacao)and IT TOTALLY WORKS 🎉05:47:41
@blaggacao:matrix.orgDavid Arnold (blaggacao)I'm a happy man, now.05:47:56
@timdeh:matrix.org@timdeh:matrix.orgAwesome. We can soon say goodbye to nixos-install and friends 🥳05:48:52
@gtrunsec:matrix.org@gtrunsec:matrix.orgCongratulation!05:51:56

Show newer messages


Back to Room ListRoom Version: 6