there's no way this could go wrong!

This commit is contained in:
Gerg-L 2023-12-04 20:22:56 -05:00
parent da39d7792d
commit 28f72dee5b
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
31 changed files with 36 additions and 32 deletions

View file

@ -44,7 +44,11 @@ rec {
(lib.removeSuffix ".nix")
(lib.removePrefix "${toString path}/")
];
value = name;
value = lib.pipe name [
builtins.readFile
(builtins.replaceStrings (lib.singleton "#_f") (lib.singleton ''_file = "${name}";''))
(builtins.toFile (builtins.baseNameOf path))
];
})
(listNixFilesRecursive path)
);
@ -149,5 +153,5 @@ rec {
))
];
_file = ./default.nix;
#_file
}