Casual_blog/shell.nix

22 lines
674 B
Nix
Raw Permalink Normal View History

2024-07-24 09:44:33 +00:00
{ pkgs ? (import <nixpkgs> {
# config.allowUnfree = true;
}), ... }:
pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
# allowUnfree = true;
# nixpkgs.config.allowUnfree = true;
# nixpkgs.config.allowUnfreePredicate = _: true;
nativeBuildInputs = with pkgs.buildPackages; [ hugo ];
shellHook =
''
#TODO add check that current workspace have browser window - otherwise open new instance
xdg-open "http://localhost:1313/" &
xdg-open "https://blog.ca.sual.in/" &
xdg-open "https://www.deepl.com/en/translator#ru/en-us/" &
2024-08-03 22:25:41 +00:00
hugo server -DEF
2024-07-24 09:44:33 +00:00
'';
}