mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
there's no way this could go wrong!
This commit is contained in:
parent
da39d7792d
commit
28f72dee5b
31 changed files with 36 additions and 32 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue