#nixflake — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #nixflake, aggregated by home.social.
-
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 -
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.
-
@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.
-
@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.
-
@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.
-
@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.
-
@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.
-
I find it rather weird that defining your :nixos: #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
-
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
-
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
-
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
-
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
-
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
-
@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 https://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.
-
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.
-
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!).
-
The #Nix experimental feature repl-flake is a very useful feature to understand your flake.
nix --extra-experimental-features repl-flake repl '.#'
-
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.
-
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!