Nix code refactor to support standard Nix and best practices

Created by  marijan  on March 12, 2025
ZZEEGHFT2VI4UBDWNI7U2AQDYITHU2Q5MDYC5JCETMMLQFGDO5OQC
Change contents