mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
26 lines
654 B
Nix
26 lines
654 B
Nix
let
|
|
sources = import ../npins;
|
|
in
|
|
{ pkgs ? import sources.nixos-unstable { } }:
|
|
|
|
let
|
|
inherit (pkgs) nixosOptionsDoc;
|
|
websitePkg = import ./. { inherit pkgs; };
|
|
wrapperManagerLib = import ../lib/env.nix;
|
|
|
|
wrapperManagerEval = wrapperManagerLib.eval { inherit pkgs; };
|
|
optionsDoc = nixosOptionsDoc { inherit (wrapperManagerEval) options; };
|
|
in
|
|
with pkgs; mkShell {
|
|
inputsFrom = [ websitePkg ];
|
|
|
|
packages = [
|
|
nodePackages.prettier
|
|
vscode-langservers-extracted
|
|
];
|
|
|
|
shellHook = ''
|
|
install -Dm0644 ${optionsDoc.optionsJSON}/share/doc/nixos/options.json ./content/en-US/nix-module-options/module-environment/content.json
|
|
'';
|
|
}
|