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

**URL:** https://discourse.nixos.org/t/nix-roleplay-form-a-better-relationship-with-your-code-v0-1-0-released/48915
**Category:** Announcements
**Created:** [July 12, 2024, 6:25am UTC](https://discourse.nixos.org/t/nix-roleplay-form-a-better-relationship-with-your-code-v0-1-0-released/48915 "2024-07-12T06:25:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rschardt](https://discourse.nixos.org/user_avatar/discourse.nixos.org/rschardt/32/27215_2.png) [@rschardt](https://discourse.nixos.org/u/rschardt)
#### Post date: [July 12, 2024, 6:25am UTC](https://discourse.nixos.org/t/nix-roleplay-form-a-better-relationship-with-your-code-v0-1-0-released/48915/1 "2024-07-12T06:25:38Z")

</div>

**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](https://github.com/rschardt/nix-roleplay#handling-module-imports-as-lambdas)

**Disclaimer**  
It’s an early version so if you are interested you could check out the [roadmap](https://github.com/rschardt/nix-roleplay#roadmap).

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