home.social

#nixflake — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #nixflake, aggregated by home.social.

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

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

  3. 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:
    github.com/alerque/polytype/co

  4. 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 (codeberg.org/Frieder_Hannenhei)

    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

  5. @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.

    git.fediversity.eu/Fediversity

  6. @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.

    git.fediversity.eu/Fediversity

  7. @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.

    git.fediversity.eu/Fediversity

  8. @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.

    git.fediversity.eu/Fediversity

  9. @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.

    git.fediversity.eu/Fediversity

  10. 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.

    gitlab.com/Cynerd/flakepy

  11. 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? 🤔

    gitlab.com/nobodyinperson/nixc

  12. 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?

    github.com/filipdutescu/yggdra

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

  13. 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?

    github.com/filipdutescu/yggdra

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

  14. 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?

    github.com/filipdutescu/yggdra

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

  15. 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?

    github.com/filipdutescu/yggdra

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

  16. 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?

    github.com/filipdutescu/yggdra

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

  17. 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

  18. 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

  19. 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

  20. 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

  21. 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

  22. @cbleslie Thanks for responding. I realize I stuff multiple apps in a #nixFlake, but I can't figure out an incantation for an app that runs tools from the *build* dependencies against the *sources* and outputs the artifact(s):

    ```console
    $ git clone -b ldoc github.com/alerque/sile
    $ cd sile
    $ nix develop
    $ configurePhase
    $ make lua-api-docs
    ```

    This generates a folder of HTML docs I want to output via `nix run <repo>#dump-lua-api-docs` without making the build tools part of the default app.

  23. A question for #nix folks: I have a FOSS project with a working #nixflake that runs the app and also has devShells setup correctly with all the developer tooling.

    The project itself has a `make` target to generate documentation. I would like to expose this documentation to flake consumers such that `nix run path/to/flake ... something` could be used to generate and expose (output?) the documentation files.

    I can't wrap my head around what code I should reach for to create a features like this.

  24. Cool, so with nixpkgs.packageOverrides one can make a pkgs.unstable attribute accessing e.g. nixos-unstable (I want to pin the channels properly in configuration.nix, can't use flakes for other reasons). Much better than my previous fetchUrl of an unstable tarball. But how do I apply that to the 'normal' pkgs? It still uses the <nixos> channel, which is not properly pinned anywhere (by me!).

    nixos.wiki/wiki/FAQ/Pinning_Ni

  25. The #Nix experimental feature repl-flake is a very useful feature to understand your flake.

    nix --extra-experimental-features repl-flake repl '.#'

    #NixFlake #Flake #Repl

  26. Any #NixOS aficionados that know how to pass config to a module which uses custom inputs? I was hoping for something better than defining an imports on it.

    #Nix #NixFlake #Flake #NixFlakes #Flakes

  27. Is there any convention/standard on how to document via comments #Nix functions? Wrote a couple of utils for my #flake which setups my environment and not sure what the best approach would be.

    #NixOS #NixFlake #NixFlakes #Flakes

  28. Anyone got any good #NixOS resources for setting up #Minikube with #Podman or #KVM in a #Nix shell?

    Or at least any good #NixFlake guide on setting up #QEMU and #KVM?

    #NixShell #NixFlakes #Kubernetes #K8S

  29. CW: Nix, JavaScript, QuickJS

    I've packaged @suchipi 's #QuickJS fork for #Nix! She added some awesome features like `qjsbootstrap` which lets you append #JavaScript to an existing binary to create a new program that automatically executes your code!

    This #NixFlake includes a helper for building applications using `qjsbootstrap`. Check it out!

    github.com/snowfallorg/quickjs