Toots for binaryphile@fosstodon.org account

Written by binaryphile on 2025-01-24 at 18:41

Say, is there anyone in my network who knows how #NixFlakes work? I'm struggling getting a nix flake with my nodejs development environment for linux and macos to run quickly on mac. It takes about 1.6 seconds to fire up nix develop on linux (already too long) but 6.4 seconds on mac.

[#]Nix #NixOS

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-24 at 14:52

Shout out to #LiquidPrompt, the sophisticated bash prompt that's been keeping me informed in style for years. Thanks buddy!

https://github.com/liquidprompt/liquidprompt

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-21 at 16:00

Timed at four minutes and 14 seconds from the click to enable the crostini linux subsystem to finished and configured with my dotfiles and apps (neovim and obsidian primarily atm), via nix and home-manager.

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-21 at 15:43

I'm at the stage working on automating the configuration of my crostini debian vm that if I'm changing the way the script works, I blow away the vm and it reproduces my environment from scratch in a couple minutes, and that is so nice.

Had a hiccup figuring out how to install lix nix in single-user mode. Evidently it requires --init none on the installer, then chmod -R binaryphile:binaryphile /nix.

[#]Nix #Lix #ChromeOS #Crostini #Configuration #Automation

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-20 at 22:40

Stop shopping on #Amazon.

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-20 at 17:32

I need tests for my bash ansible-lite local config mgmt library, so I'm now writing a simple clone of Go's table tests in bash, and it's working out ok. I used to like shpec for bash tests, inspired by spec for ruby on rails, but table tests are better for drying up test logic. Very much a wip atm.

https://github.com/binaryphile/task.bash

https://github.com/binaryphile/tesht

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-18 at 15:10

[#]Fetterman is officially the new #Sinema. Fuck that guy.

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-15 at 17:00

Theory and practice are two different things, however, so now I'm learning the slight differences in GNU vs BSD command lines are relevant. I provide a handful of predefined command lines, which I'm updating to work in both environments now. Also learning I need to take $USER into account for home-manager's config. But running and debugging is a joy...idempotence keeps it running just the things that are broken and skips the working stuff, and tracing is easy to turn on.

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-15 at 16:58

So I've further refined my #bash-based configuration management DSL and gotten it to the point where I'm happy with the job it does managing my crostini debian containers. The script that employs it can be curl-piped to take my environment from zero to (mostly) working without interaction. I've chosen nix and nix flakes for managing package state, which makes my environment mostly platform-neutral, i.e. I can run it the same on MacOS and Linux (in theory).

https://github.com/binaryphile/task.bash

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-10 at 21:50

It's really pretty neat, especially if you're a die-hard bash user. Happy to answer questions and encourage folks to take a look.

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-10 at 21:49

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-10 at 21:49

Features:

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-10 at 21:48

Pleased that I was able to turn my idea for bash-based local configuration management into a tool I feel is worth sharing. task.bash is a bash library for doing ansible-like configuration of a local machine (no remote configuration or ssh or anything). 🧵

https://github.com/binaryphile/task.bash

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-10 at 19:13

Upon reflection, spontaneous human combustion has turned out to be a far less serious concern than I was led to believe as a child.

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-08 at 13:46

The hardest programming habit for me to kill has been putting variable declarations at the top of a function definition instead of in-line where they are first used. I learned to group variable declarations "out of the way" at the top of the function while learning to program C back in school. Thirty-some-odd years later and I still want to move declarations up to the top, but it's worse for readability, not better. Locality of pertinent facts is a good thing.

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-07 at 05:41

Spent another chunk of time today working out the kinks and improving my dixie-cup ansible replacement for local configuration and I have to say...this is good. This is pretty damn good.

I crammed in several more features, but at a weighty cost of 10% more LOC. It's now ballooned to 79 lines of code.

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-05 at 18:43

I get a big kick out of making my own tools that are just "good enough" and get me 80% of what I'm looking for. I'm also a big shell hacker, and love to keep fit with it. I've written my own bashrc/profile system, a file-watcher service and other bits and bobs, so taking inspiration from Ansible, I rolled up my sleeves. I'm pleased as punch with the result.

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-05 at 18:40

However, Nix has taken over the package management aspect from Ansible, leaving not a lot for Ansible to do besides update apt and symlink a few files. Ansible is also an enormous package, easily a top contender for time usage during the whole process, not to mention disk space. Python 3 is the primary culprit, and not a necessity for the rest of my environment.

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-05 at 18:36

After having automated the creation of development environments on ChromeOS/Crostini, I fell down a rabbit hole writing a minimal tool to replace ansible for the local system management. Ansible was my former method for bootstrapping a new container's environment, so it stayed in the mix for this go-round due to inertia and it being a fine enough tool for the job. 🧵

=> More informations about this toot | View the thread

Written by binaryphile on 2025-01-01 at 19:31

It's 2025. My Prime membership has ended!

=> More informations about this toot | View the thread

=> This profile with reblog | Go to binaryphile@fosstodon.org account

Proxy Information
Original URL
gemini://mastogem.picasoft.net/profile/109496495992118029
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
462.103495 milliseconds
Gemini-to-HTML Time
4.546478 milliseconds

This content has been proxied by September (ba2dc).