llakala / nixos

My NixOS config
3 stars 1 forks source link

Add `rbld -t` for checking if the code syntax is valid #54

Open llakala opened 1 week ago

llakala commented 1 week ago

Done via nix eval /etc/nixos#nixosConfigurations.framework.config.system.build.toplevel. Just checks that the code is syntactically correct, doesn't activate it or anything.

Unfortunately, for this to work, we'd need access to the current host. I could do this manually like I handle $CONFIG_DIRECTORY, but honestly, I should really just move the rbld script to within a nix file.

llakala commented 1 week ago

rbld script has been moved into a nix file as of 2a8f2da4119a22bb475115f548604c2f4007150a. And, syntax highlighting works, but only within Helix (this is good, makes me stop using VSCode). We can now add this functionality easily, and anything else.

llakala commented 1 week ago

Yet another abstraction: the rebuild script has been moved to its own repo. However, I'm facing lots of theoretical questions now, like:

This issue may languish a bit until I feel more comfortable with the state of the script.

llakala commented 5 days ago

Progress:

Once all that is done, we can work on new functionality, and implement stuff like rbld -t.