learning modules to make it esay but now even more confused
So some of you might know I shared a AI written config couple days ago and it turned out to be bad so I decided that I would rewrite on my own .I read about modules and now trying to migrate my config so that it uses modules instead of just splitting code into different files ...
I already have my nixos config that i wrote when i installed nixos for first time, I came across nixos modules
https://wiki.nixos.org/wiki/NixOS_modules
https://youtu.be/vYc6IzKvAJQ?si=zm3yvPqySKOD-_v5
so I moved modules directory which atm only had normal nix function and not really module out of hosts into separate module dir .
however now I am confused on which things should I extract out into a separate module and which not to . kind of like which file to keep where and what things to extract out into separate module .
for example https://github.com/devnchill/dotNix/blob/enhancement/rewrite/modules/os/services/default.nix is file containing almost all of my services, I moved it outside host but now what things should i move out and make modules and what things not to ?
for reference this is how my old/current config looks : https://github.com/devnchill/dotNix
this is how it's lookin now WIP : https://github.com/devnchill/dotNix/tree/enhancement/rewrite
Reminder: SECRETS ARE GIT ENCRYPTED USING GIT CRYPT AND YES I WILL SOON SWITCH TO SOPS.NIX , THAT IS GOAL OF THIS REWRITE TOO ...