add podman container that serves docs on localhost:8080
This commit is contained in:
3 files changed
+25
-6
No files matched your search
@@ -4,7 +4,7 @@
|
|||||||
"authenticated": false,
|
"authenticated": false,
|
||||||
"settingsSync": false,
|
"settingsSync": false,
|
||||||
"url": "https://cloud.equicord.org/",
|
"url": "https://cloud.equicord.org/",
|
||||||
"settingsSyncVersion": 1788177702981
|
"settingsSyncVersion": 1788234114000
|
||||||
},
|
},
|
||||||
"enableOnlineThemes": true,
|
"enableOnlineThemes": true,
|
||||||
"enabledThemeLinks": [],
|
"enabledThemeLinks": [],
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"hardwareAcceleration": true,
|
"hardwareAcceleration": true,
|
||||||
"minimizeToTray": true,
|
"minimizeToTray": true,
|
||||||
"tray": true,
|
"tray": true,
|
||||||
"splashColor": "rgb(205, 213, 228)",
|
"splashColor": "rgb(222, 227, 237)",
|
||||||
"splashBackground": "rgb(46, 52, 64)",
|
"splashBackground": "rgb(46, 52, 64)",
|
||||||
"hardwareVideoAcceleration": true,
|
"hardwareVideoAcceleration": true,
|
||||||
"clickTrayToShowHide": true,
|
"clickTrayToShowHide": true,
|
||||||
|
|||||||
+23
-4
@@ -17,8 +17,9 @@
|
|||||||
|
|
||||||
indexMd = let
|
indexMd = let
|
||||||
rawText = ''
|
rawText = ''
|
||||||
## Hello world
|
## Welcome!
|
||||||
Welcome to the site!
|
This site is rebuilt with every generation, and holds a complete record of all options declared within this flake.
|
||||||
|
Visit [NixOS](nixos-options.md) or [Home Manager](home-options.md) to see the available options.
|
||||||
'';
|
'';
|
||||||
in pkgs.runCommand "index.md" {} ''
|
in pkgs.runCommand "index.md" {} ''
|
||||||
echo "${rawText}" >> $out
|
echo "${rawText}" >> $out
|
||||||
@@ -28,13 +29,16 @@
|
|||||||
homeOptionsMd = mkOptionsDocFromModule "home-options.md" self.homeModules.options;
|
homeOptionsMd = mkOptionsDocFromModule "home-options.md" self.homeModules.options;
|
||||||
|
|
||||||
mkDocsConfig = ''
|
mkDocsConfig = ''
|
||||||
site_name: greyweather's nix flake options
|
site_name: flake options
|
||||||
nav:
|
nav:
|
||||||
- Home: 'index.md'
|
- Home: 'index.md'
|
||||||
- Options:
|
- Options:
|
||||||
- NixOS: 'nixos-options.md'
|
- NixOS: 'nixos-options.md'
|
||||||
- Home Manager: 'home-options.md'
|
- Home Manager: 'home-options.md'
|
||||||
theme: material
|
theme:
|
||||||
|
name: material
|
||||||
|
palette:
|
||||||
|
scheme: slate
|
||||||
'';
|
'';
|
||||||
|
|
||||||
mkDocsYml = pkgs.runCommand "mkdocs.yml" {} ''
|
mkDocsYml = pkgs.runCommand "mkdocs.yml" {} ''
|
||||||
@@ -76,4 +80,19 @@ in {
|
|||||||
packages.docs = mkDocsDerivation { inherit pkgs; };
|
packages.docs = mkDocsDerivation { inherit pkgs; };
|
||||||
packages.docs-md = mkDocsDerivation { inherit pkgs; doBuild = false; };
|
packages.docs-md = mkDocsDerivation { inherit pkgs; doBuild = false; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
flake.homeModules.graphics = { pkgs, ... }: {
|
||||||
|
services.podman = {
|
||||||
|
enable = true;
|
||||||
|
containers.flake-docs-nginx = {
|
||||||
|
image = "docker.io/library/nginx:latest";
|
||||||
|
volumes = [
|
||||||
|
"${mkDocsDerivation { inherit pkgs; }}:/usr/share/nginx/html"
|
||||||
|
];
|
||||||
|
ports = [
|
||||||
|
"8080:80"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user