!UUqahLbShAYkkrXmKs:matrix.org

DevOS

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

Load older messages


SenderMessageTime
1 Aug 2021
@kraftnix:matrix.org@kraftnix:matrix.orgi guess using the custom command with a modified version of bud to test is the way to go21:02:43
@timdeh:matrix.org@timdeh:matrix.orghmm I guess I need to take a closer look at bud to understand all this 😆21:03:01
@kraftnix:matrix.org@kraftnix:matrix.org

so I tried a shortcut (which could be causing this next issue), I changed the bud install writer like:

    install.writer = lib.mkForce (budUtils.writeBashWithPaths [ installPkgs.nixos-install git mercurial coreutils ]);

but not I get

Please specify the name of the NixOS configuration to be installed, as a URI fragment in the flake-uri.
For example, to use the output nixosConfigurations.foo from the flake.nix, append "#foo" to the flake-uri.

:(

21:10:01
@kraftnix:matrix.org@kraftnix:matrix.org

Followup, looks like the flake URI is malformed in bud

[nixos]$ bud install mynewhost
++ HOST=mynewhost
++ attr='/home/nixos/devos#"mynewhost"'
++ nixos-install --flake '/home/nixos/devos#"mynewhost"'

you can do nixos-install --flake /home/nixos/devos#"mynewhost" but you can't also wrap it in ''

21:17:36
@timdeh:matrix.org@timdeh:matrix.orgwasn't there a recent pr to fix nixos-install for flake users? Has this been integrated yet?21:20:52
@kraftnix:matrix.org@kraftnix:matrix.orgwas nixos-install broken for flake users? i've never had an issue with it yet21:21:20
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @kraftnix:matrix.org

Followup, looks like the flake URI is malformed in bud

[nixos]$ bud install mynewhost
++ HOST=mynewhost
++ attr='/home/nixos/devos#"mynewhost"'
++ nixos-install --flake '/home/nixos/devos#"mynewhost"'

you can do nixos-install --flake /home/nixos/devos#"mynewhost" but you can't also wrap it in ''

Damn it! I have immediate plans to move all this brittle nixos stuff to rock solid deploy-rs
21:22:52
@blaggacao:matrix.orgDavid Arnold (blaggacao) BUt I had to leanr rust first to teach deploy-rs how to consume our "sensible defaults" according to context. 21:23:19
@blaggacao:matrix.orgDavid Arnold (blaggacao) * But I had to learn rust first to teach deploy-rs how to consume our "sensible defaults" according to context. 21:23:34
@kraftnix:matrix.org@kraftnix:matrix.org looking forward to yeeting everything 21:23:39
@blaggacao:matrix.orgDavid Arnold (blaggacao)My plan was to have something by the end of the day, but the clock is ticking :D21:23:58
@kraftnix:matrix.org@kraftnix:matrix.org yeet install 🤣 21:24:02
@blaggacao:matrix.orgDavid Arnold (blaggacao) No it would be yeet <myprofile> 21:24:25
@blaggacao:matrix.orgDavid Arnold (blaggacao) or yeet <myhots.myprofile> 21:24:38
@kraftnix:matrix.org@kraftnix:matrix.orgso would it automagically know it needs to run a nixos install?21:24:48
@blaggacao:matrix.orgDavid Arnold (blaggacao) * or yeet <my-other-host.myprofile> 21:24:51
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @kraftnix:matrix.org
so would it automagically know it needs to run a nixos install?
Good question, I bleeive the only fundamental difference is to yeet a system profile to a special /mnt
21:25:47
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @kraftnix:matrix.org
so would it automagically know it needs to run a nixos install?
* Good question, I believe the only fundamental difference is to yeet a system profile to a special /mnt
21:26:01
@blaggacao:matrix.orgDavid Arnold (blaggacao) We could make the boostrapIso, so that you can yeet newhost.profile onto that host over the link lokal connection. Maybe. 21:26:37
@blaggacao:matrix.orgDavid Arnold (blaggacao) It already has a static fe::42 ipv6 21:27:02
@blaggacao:matrix.orgDavid Arnold (blaggacao)https://github.com/divnix/digga/blob/b52bb1001950eae6aca993232c1a88d0638b1dcf/modules/bootstrap-iso.nix#L6721:27:26
@kraftnix:matrix.org@kraftnix:matrix.orgi do like the idea of being able to run an install from another host, as i mentioned before above, there are normally some modifications to a host that are required after partitioning, so that would massively reduce friction on installing a new system (for me at least)21:27:51
@blaggacao:matrix.orgDavid Arnold (blaggacao)Last time this was how I did it, just with plain deploy. THe boostrap even tries to do mdns.21:28:20
@kraftnix:matrix.org@kraftnix:matrix.orgwait, you can currently use deploy-rs to install nixos first time onto a remote system?21:28:52
@blaggacao:matrix.orgDavid Arnold (blaggacao)Hm, it has been a while, and my brain is forgiving with the details. Has advantages and disadvantages. But since I'm rowing in the same boat, I guess I'll find out within the next few days.21:29:53
@blaggacao:matrix.orgDavid Arnold (blaggacao)

BUt that would be the target workflow, if possible:

  1. plug in the USB stick (or have it bplugged in by a local operator)
  2. get bakc to your main machine
21:30:30
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

But that would be the target workflow, if possible:

  1. plug in the USB stick (or have it plugged in by a local operator)
  2. get back to your main machine
21:30:42
@timdeh:matrix.org@timdeh:matrix.orgI dunno if deploy-rs can install, but the devs did inform me that it can target even non-nixos systems so maybe it can/21:30:46
@timdeh:matrix.org@timdeh:matrix.org * I dunno if deploy-rs can install, but the devs did inform me that it can target even non-nixos systems so maybe it can?21:30:51
@blaggacao:matrix.orgDavid Arnold (blaggacao) I guess it really comes down to this /mnt thing, if any. 21:31:28

Show newer messages


Back to Room ListRoom Version: 6