1 Aug 2021 |
@kraftnix:matrix.org | it's not even by a stressful event, your RAM will eventually fill, then ZFS will not release some ARC memory, and earlyoom will kill your processes while ARC stays full.. | 20:48:36 |
@timdeh:matrix.org | It would be nice to be able to fine tune the arc more, but I also like that it's saving writes on my nvme. So I guess it's a tradeoff like everything else | 20:48:51 |
@timdeh:matrix.org | hmm, my arc never seems to reach more than about half my RAM, or maybe I haven't left my laptop on long enough 😕 | 20:49:33 |
@kraftnix:matrix.org | i guess im sick of having to make tradeoffs and tune ZFS properly for each system, it's a massive pia, i don't mind tuning for my server with many disks in RAID, but it's such a pain otherwise | 20:49:48 |
@kraftnix:matrix.org | just run a few local VMs on your laptop while doing nix builds | 20:49:56 |
@timdeh:matrix.org | yeah I agree, zfs may be overkill without several drives anyway 😆 | 20:50:07 |
@kraftnix:matrix.org | you also have nasty interactions of ZFS with VMs when you are trying to set resource limits for VMs, ARC can be completely filled by storage for your VM. meaning a VM can take (2GB RAM that you gave it + all your ARC), so you have little control over resource utilisation. | 20:51:33 |
@kraftnix:matrix.org | death by a thousand cuts | 20:51:57 |
@kraftnix:matrix.org | In reply to @blaggacao:matrix.org Still, realpath should be there any ideas about this one? | 20:52:29 |
@kraftnix:matrix.org | i can access realpath fine in my shell | 20:54:13 |
David Arnold (blaggacao) | https://github.com/divnix/bud/blob/main/scripts/hosts-install.bash seems to (tacitly) require additional inputs | 20:55:28 |
David Arnold (blaggacao) | like coreutils , I guess in this case. | 20:55:44 |
David Arnold (blaggacao) | I'm disappointed on how "reproducible" most of those things are | 20:56:09 |
@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 |
David Arnold (blaggacao) | bud scripts have a very limited environment: https://github.com/divnix/bud/blob/231fa20ed93944e5b484cb5d820c60c17f4dfc35/writeBashWithPaths.nix#L4 | 20:57:30 |
David 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 |
David Arnold (blaggacao) | We'd be able to map a BUD_DEBUG to the script environment, though. | 20:59:43 |
@kraftnix:matrix.org | that could be useful | 21:00:17 |
@kraftnix:matrix.org | but back to the current issue, anyway I can add coreutils to bud's install script from my iso? | 21:00:50 |
David 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 |
David Arnold (blaggacao) | Otherwise you can implement custom bud scripts, like so: https://github.com/divnix/devos/blob/f69737301f5cfcc72bab125175df8421f6a52c64/flake.nix#L154-L156 | 21:01:56 |
@kraftnix:matrix.org | i guess using the custom command with a modified version of bud to test is the way to go | 21:02:43 |
@timdeh:matrix.org | hmm I guess I need to take a closer look at bud to understand all this 😆 | 21:03:01 |
@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 | 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 | wasn't there a recent pr to fix nixos-install for flake users? Has this been integrated yet? | 21:20:52 |
@kraftnix:matrix.org | was nixos-install broken for flake users? i've never had an issue with it yet | 21:21:20 |
David 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 |
David 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 |