nix-config/modules/scripts/preview.nix

25 lines
528 B
Nix
Raw Normal View History

{
flake.modules.homeManager.base =
{ pkgs, ... }:
{
home.packages = [
(pkgs.writeShellApplication {
name = "preview";
runtimeInputs = with pkgs.nodePackages; [ browser-sync ];
text = ''
# Based on https://github.com/rwxrob/dot/blob/main/scripts/preview.
browser-sync start \
--ignore '**/.*' \
--no-notify \
--no-open \
--no-ui \
-sw
'';
})
];
};
}