mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
wrapper-manager-fds/docs: fix module options doc generation
This commit is contained in:
parent
747a8f66a1
commit
70acd5f83c
@ -16,7 +16,7 @@ let
|
||||
evalDoc = args@{ modules, includeModuleSystemOptions ? false, ... }:
|
||||
let
|
||||
options = (pkgs.lib.evalModules {
|
||||
modules = modules ++ [ { _module.check = false; } ];
|
||||
modules = modules ++ [ { _module.check = false; _module.args.pkgs = pkgs; } ];
|
||||
class = "wrapperManager";
|
||||
}).options;
|
||||
in
|
||||
|
@ -50,7 +50,7 @@ Assuming you have already initialized npins, you can simply add wrapper-manager-
|
||||
|
||||
[source, shell, subs="attributes+"]
|
||||
----
|
||||
npins add github foo-dogsquared {github-repo}
|
||||
npins add --name wrapper-manager github foo-dogsquared {github-repo} --branch main
|
||||
----
|
||||
|
||||
Similar to channels installation, you'll have to import the <<user-entrypoint>> object.
|
||||
@ -129,8 +129,8 @@ Instead of a home environment from home-manager or an installation script from d
|
||||
This can be thought of as a declarative layer over `makeWrapper` build hook from nixpkgs.
|
||||
|
||||
If you want to view the module options, you can see it in
|
||||
ifdef::env-hugo[link:./nix-module-options/[wrapper-manager module options].]
|
||||
ifndef::env-hugo[{docs-site}/nix-module-options[wrapper-manager documentation site].]
|
||||
ifdef::env-hugo[link:./wrapper-manager-env-options/[wrapper-manager module options].]
|
||||
ifndef::env-hugo[{docs-site}/wrapper-manager-env-options[wrapper-manager documentation site].]
|
||||
|
||||
Here's a very simple example of a wrapper for Neofetch.
|
||||
|
||||
@ -360,7 +360,7 @@ It is also quicker to eyeball results in this way especially if you're always wo
|
||||
|
||||
This project also has a website set up with https://gohugo.io/[Hugo].
|
||||
The files that you need to see are in
|
||||
ifdef::env-hugo[github:foo-dogsquared/wrapper-manager-fds[`docs`, rev=main, path=docs]]
|
||||
ifdef::env-hugo[github:{github-full}[`docs`, rev=main, path=docs]]
|
||||
ifndef::env-hugo[link:./docs[`./docs`]]
|
||||
directory.
|
||||
|
||||
|
@ -6,10 +6,10 @@ in
|
||||
let
|
||||
docs = import ../. { inherit pkgs; };
|
||||
in
|
||||
with pkgs; mkShell {
|
||||
pkgs.mkShell {
|
||||
inputsFrom = [ docs.website ];
|
||||
|
||||
packages = [
|
||||
packages = with pkgs; [
|
||||
nodePackages.prettier
|
||||
vscode-langservers-extracted
|
||||
];
|
||||
|
@ -11,7 +11,7 @@ in
|
||||
config = lib.mkMerge [
|
||||
{ wrapper-manager.extraSpecialArgs.hmConfig = config; }
|
||||
|
||||
(lib.mkIf moduleArgs?nixosConfig {
|
||||
(lib.mkIf (moduleArgs ? nixosConfig) {
|
||||
wrapper-manager.sharedModules = [
|
||||
({ lib, ... }: {
|
||||
# NixOS already has the option to set the locale so we don't need to
|
||||
|
Loading…
Reference in New Issue
Block a user