Set up my first #nixflake for use with #direnv (used from #nushell) -- and once it all clicks its a thing of beauty.

Just a juicy bit for folks that happen to use #just and #nix and want them to play together...

If your #nixflake outputs `devShells.default`, you can use a nix shell to run your Justfile tasks as script recipes, e.g.:

```justfile
set script-interpreter := ['nix', 'develop', '--command', 'bash']
set unstable := true

[script]
my_job:
echo "this runs *inside* a dev shell"
````

Actual use in context:
https://github.com/alerque/polytype/commit/0289eb2

feat(tooling): Add Justfile to ease developer tasks · alerque/polytype@0289eb2

A Rosetta stone for modern typesetting engines. Contribute to alerque/polytype development by creating an account on GitHub.

GitHub

Do you remember my toot from yesterday about a tool for quickly generating flakes for random projects?

Well I didn't find something that fits my needs so now there is quickflake (https://codeberg.org/Frieder_Hannenheim/quickflake)

It can auto-detect the type of project you are working on and generate a flake from a matching template for it.

#nix #nixos #NixFlake

quickflake

Quickflake is a tool for generating nix flakes that serve as a starting point for new projects

Codeberg.org

@arda @f @ssg I've been thinking of what are the best and easiest ways of getting people into a #tech #cooperative. That is, self host as a local community.

#Fediversity shows one such way, via #NixOS. In this #NixFlake we see an automated setup for a set of services, like #Mastodon, #Peertube and #Pixelfed.

You basically fork this, modify its variables and run it on your server and you should have your own platforms up and running.

https://git.fediversity.eu/Fediversity/Fediversity

Fediversity

Fediversity

Forgejo: Beyond coding. We Forge.

With this discovery my #nixflake that simplify package creation for #python projects supports package overrides the same way as those in #nixpkgs. Thus dependencies declared in pyproject.toml are automatically included and overidable.

https://gitlab.com/Cynerd/flakepy

Karel Kočí / flakepy · GitLab

Nix Flake helper for Python projects driven by pyproject.toml.

GitLab

I find it rather weird that defining your  #NixOS machine in your flake via `inputs.mynixpkgs.lib.nixosSystem` is *not* enough to have it actually use your `mynixpkgs`. No, you need to do this boilerplate stunt. Why doesn't it do it automatically? 🤔

https://gitlab.com/nobodyinperson/nixconfig/-/commit/274f4265f37e5256ede5cd8f0fc5054ba4f408d2

#nixFlake #nix

🩹 yann-desktop-5u18: actually use the custom nixpkgs (274f4265) · Commits · Yann Büchau / 📦 Yanns NixOS Config · GitLab

Weirdly, this boilerplate is necessary and not done by mypkgs.lib.nixosSystem...

GitLab

I have no idea what I fucked up, but it seems that somewhere in the last 4 commits I made it so that my computer is now stuck on the #Plymouth splash screen and #GDM is not showing up. Quiting plymouth allows me to reach a tty.

Any #NixOS pros here willing to help a poor soul out, please?

https://github.com/filipdutescu/yggdrasil

#Nix #NixFlake #NixFlakes #Flake #Flakes #Disko #Linux #GNOME

GitHub - filipdutescu/yggdrasil: NixOS configuration

NixOS configuration. Contribute to filipdutescu/yggdrasil development by creating an account on GitHub.

GitHub

Argh, trying to install a custom package on my #nixos it's only temporary but thought others might want to use it to, so why not a #NixFlake ? ...how hard can it be to create a simple flake that adds one package to a system I thought, 2 hours in so far...

Seems like guides either only show the remote flake side or the system flake side, but no combination of examples works so far. Also some syntax changes last year and most guides still refer to the old syntax apparently.

why the fucking fuck is `nix flake update` followed by `sudo nixos-rebuild switch --flake .#mylaptopsredactedhostname` not updating my systempackages

i can plainly see vscode is at 1.86.2 in the nixos-unstable branch, and my flake.nix is using that branch, and yet I'm still stuck on 1.85.1

#nixos #nix #nixflake

So... Is there no "NixOS-er" way to setup bridge networking with #libvirtd, but for the one from the wiki?

I could really use a #Nix way to setting that up instead of doing the whole write my own bridge network config and running commands manually 😅

#NixOS #NixFlake #NixFlakes #libvirt

Libvirt - NixOS Wiki