Nix-roleplay: Form a better relationship with your code, v0.1.0 released

Introduction

I decided to come up with a solution for refactoring my code into general categories.

Those should be shareable between related configurations of machines.

So, roles were invented for that kind of distinction.

I played around until I found a low complexity(at least in my head) realization which I could unleash to the world.

Therefore the name nix-roleplay.

What can be gained by using nix-roleplay?

  • An universal structure for organizing infrastructure flakes
  • Advanced generalization of imports/modules
  • Splitting multiple nixosConfigurations into machines, roles, mod_categories and modules
  • Handling module imports as lambdas

Disclaimer
It’s an early version so if you are interested you could check out the roadmap.

Here is the actual link to the repository: https://github.com/rschardt/nix-roleplay

6 Likes