dotfiles/overlays/symlink-state/default.nix
magic_rb 4a11cdcc08
Add symlink state
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-01-31 18:42:25 +01:00

18 lines
423 B
Nix

{inputs, ...}: {
flake.overlays.symlink-state = final: prev: {
symlink-state =
(final.writeSubstitutedShellScriptBin {
name = "symlink-state";
file = ./symlink-state;
substitutes = {
PATH = final.lib.makeBinPath (with final; [
coreutils
findutils
java
]);
};
})
// {meta.mainProgram = "symlink-state";};
};
}