!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
1 Aug 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao) https://github.com/divnix/bud/blob/main/scripts/hosts-install.bash seems to (tacitly) require additional inputs 20:55:28
@blaggacao:matrix.orgDavid Arnold (blaggacao) like coreutils, I guess in this case. 20:55:44
@blaggacao:matrix.orgDavid Arnold (blaggacao)I'm disappointed on how "reproducible" most of those things are20:56:09
@kraftnix:matrix.org@kraftnix:matrix.org on a semi-related debugging note, it would be really nice if i could set a debug command on bud which tells me what commands it actually ends up running after all the substitutions 20:57:00
@blaggacao:matrix.orgDavid Arnold (blaggacao) bud scripts have a very limited environment: https://github.com/divnix/bud/blob/231fa20ed93944e5b484cb5d820c60c17f4dfc35/writeBashWithPaths.nix#L4 20:57:30
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @kraftnix:matrix.org
on a semi-related debugging note, it would be really nice if i could set a debug command on bud which tells me what commands it actually ends up running after all the substitutions
It get's a bit tricky if you'd use a different writer, such as haskell or rust or python or go for any subcommand.
20:58:38
@blaggacao:matrix.orgDavid Arnold (blaggacao) We'd be able to map a BUD_DEBUG to the script environment, though. 20:59:43
@kraftnix:matrix.org@kraftnix:matrix.orgthat could be useful21:00:17
@kraftnix:matrix.org@kraftnix:matrix.orgbut back to the current issue, anyway I can add coreutils to bud's install script from my iso?21:00:50
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @kraftnix:matrix.org
but back to the current issue, anyway I can add coreutils to bud's install script from my iso?
If you'd make a PR, I'd merge it within seconds 🤣
21:01:18
@blaggacao:matrix.orgDavid Arnold (blaggacao)Otherwise you can implement custom bud scripts, like so: https://github.com/divnix/devos/blob/f69737301f5cfcc72bab125175df8421f6a52c64/flake.nix#L154-L15621:01:56
@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

Show newer messages


Back to Room ListRoom Version: 6