Sure, but this is our license. We licensed it under AGPL (our default). We should talk to Pinea about changing that to MIT if we want to let Aux pull from it.
prāed a small C template based on the rust one
pr is ready, if anyone willing to review
I can take a look to confirm the nix stuff but someone more well versed in C should also take a look
Iām pretty aware of nix stuff, so i can take a look.
Hopefully, itās good enough
Is there a need to split the flake into multiple files?
It seems to only add complexity to the template to me
It allows it to have old nix compatibility. thatās the main thing for me. Also prevents redeclaring the package a few times.
Shouldnāt be default.nix
file be eelcoās flake-compat?
Thatās only for channels support.
What does this do?
overlays.default = final: prev: {
hello = final.callPackage ./default.nix {};
};
this allows the user to consume the overlay and it will be added the nixpkgs list. so i could use enviroment.systemPackages = [ pkgs.hello ];
instead.
The overlay replaces it, which is the point, it is usually used to replace older versions of a package with a newer one.
I had a thought related to this and figured Iād add it to this thread instead of starting a new one. Iām trying to get my thoughts down quickly - sorry if this post seems rushed!
tl;dr: Could we create basically mini-distro templates to help new folks get started more easily?
Full post:
I think a small template to help folks get up and running is still a good idea, but Iād also propose going bigger and creating complete system templates.
For instance, what if someone came to Aux looking to get a KDE desktop? We could tell them to check the wiki and search GitHub for other peopleās examples, or we could have a NixOS template with a KDE module already configured as a module. Then, they could just add or uncomment something like aux.desktops.kde.enable = true
. Same for Gnome, Hyperland, Sway, etc. These configs could also include Pipewire, bluetooth, maybe import nixos-hardware
if thereās a way to check system attributes.
Itād basically just be a wrapper module that condenses common system options and boilerplate into a single (ideally) config option.
@jakehamilton If I start hacking on something, can I check it into the Labs repo? If not, I donāt mind creating a new repo.
I personally think this could be put it in the sig:docs templates repo under a new template, best to keep them in the same place. That or a new repository for all the options we want under the aux
option namespace.
Initial version is available to play with, and hereās the PR. Would any other docs folks care to take a look and/or leave feedback?
Overall I love how this is looking, Some places Iām seeing a funky Unicode single quote, wondering if maybe a backtick (`) would be better?