Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 466 Bytes
let
nixpkgs = import ./nixpkgs.nix;
in
# This allows overriding pkgs by passing `--arg pkgs ...`
{ pkgs ? import nixpkgs {}, theme ? "geo" }:
with pkgs;
with lib;
let
hugoConfig = builtins.removeAttrs (pkgs.callPackage ./config { inherit pkgs theme; }).config [ "_module" ];
configFile = writeText "config.json" (builtins.toJSON hugoConfig);
in
mkShell {
buildInputs = [
hugo
];
shellHook = ''
ln -nsf "${configFile}" config.json
'';
}
You can’t perform that action at this time.