You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Magic_RB d5146db73c
certbot module: switch to non-interactive mode and add extraOptions
2 days ago
examples certbot module: proper renew and required settings 2 days ago
lib certbot service: init 2 days ago
modules certbot module: switch to non-interactive mode and add extraOptions 2 days ago
overlay sigell: add `cmdargs` to cabal.nix 4 days ago
COPYING Add README and COPYING 1 month ago
COPYING.NIXOS-MIT Improve licensing 2 weeks ago
README.md Improve README.md 4 weeks ago
flake.lock Delete activation and update nixpkgs 1 month ago
flake.nix certbot service: init 2 days ago
nix-ng.png Switch to png as Gitea doesn't render svg 1 month ago
todos.org Basic environment variable support 3 weeks ago

README.md

NixNG

NixNG is a, as of now, GNU/Linux distribution, which may be a considered a late sibling to NixOS. It shares many of its designs and utilizes the Nix package manager at its core. The defining features of NixNG are:

  • a lighter and simpler design, due to the omission of SystemD
  • the possibility of multiple init system choices, like runit, OpenRC and even SystemD in the future
  • a "minimal by default" package set, while nixpkgs and by extension NixOS takes the "full featured by default" approach
  • suitable for building containers, due to being lightweight
  • fully structured configuration for modules, no string extraConfig

Current state

NixNG cannot boot on real hardware due to missing it's own kernel and initramfs, but it can "boot" as a container, be it lxc, or docker. Some modules are implemented but there is still a lot to be done. If you want to get a feel for it, you can look into ./examples where you'll find fully working systems, mostly catered to be containers.

Testing out

We've built up several functional containers, which showcase the syntax and functional of NixNG. The sources are locacted in /examples/. Currently you can either build the top-level derivation which you theoretically could activate (don't do it it will break) with:

nix build .#<systemName>.config.system.build.top-level

And also a OCI image which you can load into Docker, etc, with:

nix build .#<systemName>.config.system.build.ociImage.build

You can also stream the image without saving it into the Nix store with:

nix build .#<systemName>.config.system.build.ociImage.stream && ./result | docker load.

Contributing

Look at the code, make changes, open a PR. There are no style guidelines as of now, but try to write readable and well formatted Nix code, without tabs or trailing whitespace. If you need help with something please feel free to open an issue or contact me on Discord Magic_RB#6785.

I would, but I don't want to create an account on your Gitea

Don't worry, you can login using GitHub or GitLab and your password never touches my server, login is handled by GH or GL, my server just gets told that it's you.

License

This project is licensed under the GNU GPLv3, as per COPYING. I also give explicit permission to the NixOS project to re-license any part of this repository (that is covered by COPYING and doesn't have it's own licensing) under the MIT license and to include it in nixpkgs.

I also state that using this project as a flake or importing after using some version fetchurl to download it, doesn't constitute as linking and therefore, you are not required to license your project under the GPLv3, though your project must be licensed under a GPL-compatible license as per the GNU GPL compatible license list.

Contributing

By contributing, you agree to the terms of the GNU GPLv3 license + the exceptions laid out in the section License. You also give up all rights to the code contributed, in exchange for a legally bounding promise that this repository (excluding any separately licensed parts) will always be licensed under a GPL-compatible license as per the GNU GPL compatible license list.