24 lines
528 B
Nix
24 lines
528 B
Nix
{
|
|
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
|
|
'';
|
|
})
|
|
];
|
|
};
|
|
}
|