fixed docs
This commit is contained in:
+1
-38
@@ -6,41 +6,6 @@
|
|||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
# Make sure the used package is scrubbed to avoid actually
|
|
||||||
# instantiating derivations.
|
|
||||||
# evaluate our options
|
|
||||||
evalHome = lib.evalModules {
|
|
||||||
# TODO: understand why pkgs needs to be passed here
|
|
||||||
specialArgs = {inherit pkgs;};
|
|
||||||
modules = [
|
|
||||||
{
|
|
||||||
# disabled checking that all option definitions have matching declarations
|
|
||||||
config._module.check = false;
|
|
||||||
}
|
|
||||||
inputs.home-manager.nixosModules.default
|
|
||||||
./home-manager/fonts
|
|
||||||
./home-manager/foot
|
|
||||||
./home-manager/fzf
|
|
||||||
./home-manager/git
|
|
||||||
./home-manager/gruvboxTheme
|
|
||||||
./home-manager/helix
|
|
||||||
./home-manager/homeManagerScripts
|
|
||||||
./home-manager/jiten
|
|
||||||
./home-manager/joshuto
|
|
||||||
./home-manager/kakoune
|
|
||||||
./home-manager/ssh
|
|
||||||
./home-manager/terminalTools
|
|
||||||
./home-manager/userDirs
|
|
||||||
./home-manager/zathura
|
|
||||||
./home-manager/zsh
|
|
||||||
];
|
|
||||||
};
|
|
||||||
# generate our docs
|
|
||||||
optionsDocHome = nixosOptionsDoc {
|
|
||||||
inherit (evalHome) options;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Same for nixos
|
|
||||||
evalNixos = lib.evalModules {
|
evalNixos = lib.evalModules {
|
||||||
specialArgs = {inherit pkgs;};
|
specialArgs = {inherit pkgs;};
|
||||||
modules = [
|
modules = [
|
||||||
@@ -48,8 +13,7 @@
|
|||||||
config._module.check = false;
|
config._module.check = false;
|
||||||
}
|
}
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
./nixos/servarr
|
./servarr
|
||||||
./nixos/nixosScripts
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
optionsDocNixos = nixosOptionsDoc {
|
optionsDocNixos = nixosOptionsDoc {
|
||||||
@@ -59,6 +23,5 @@ in
|
|||||||
# create a derivation for capturing the markdown output
|
# create a derivation for capturing the markdown output
|
||||||
runCommand "options-doc.md" {} ''
|
runCommand "options-doc.md" {} ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cat ${optionsDocHome.optionsCommonMark} | tail -n +210 >> $out/home.md
|
|
||||||
cat ${optionsDocNixos.optionsCommonMark} | tail -n +210 >> $out/nixos.md
|
cat ${optionsDocNixos.optionsCommonMark} | tail -n +210 >> $out/nixos.md
|
||||||
''
|
''
|
||||||
|
|||||||
+1
-2
@@ -3,8 +3,7 @@ pkgs.writeShellApplication {
|
|||||||
name = "my-script";
|
name = "my-script";
|
||||||
runtimeInputs = with pkgs; [hugo];
|
runtimeInputs = with pkgs; [hugo];
|
||||||
text = ''
|
text = ''
|
||||||
cat hugo/content/header.md result/home.md | sed "s/DATE-TIMESTAMP/$(date -u +%Y-%m-%d)/g" > hugo/content/home-manager/index.md
|
cat hugo/content/header.md result/nixos.md | sed "s/DATE-TIMESTAMP/$(date -u +%Y-%m-%d)/g" > hugo/content/index.md
|
||||||
cat hugo/content/header.md result/nixos.md | sed "s/DATE-TIMESTAMP/$(date -u +%Y-%m-%d)/g" > hugo/content/nixos/index.md
|
|
||||||
cd hugo
|
cd hugo
|
||||||
hugo
|
hugo
|
||||||
'';
|
'';
|
||||||
|
|||||||
+2
-15
@@ -1,19 +1,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./fonts
|
./upnp
|
||||||
./foot
|
./vpnNamespace
|
||||||
./fzf
|
|
||||||
./git
|
|
||||||
./gruvboxTheme
|
|
||||||
./helix
|
|
||||||
./homeManagerScripts
|
|
||||||
./jiten
|
|
||||||
./joshuto
|
|
||||||
./kakoune
|
|
||||||
./ssh
|
|
||||||
./terminalTools
|
|
||||||
./userDirs
|
|
||||||
./zathura
|
|
||||||
./zsh
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,9 +110,9 @@ in {
|
|||||||
|
|
||||||
dnsServers = mkOption {
|
dnsServers = mkOption {
|
||||||
type = with types; nullOr (listOf str);
|
type = with types; nullOr (listOf str);
|
||||||
default = loadDns wireguardConfigFile; #[ "1.1.1.2" ];
|
default = [];
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
YOUR VPN WILL LEAK IF THIS IS NOT SET. The dns address of your vpn.
|
DNS servers to append to any found in the wg-quick config file.
|
||||||
'';
|
'';
|
||||||
example = ["1.1.1.2"];
|
example = ["1.1.1.2"];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user