-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake-gemini.nix
37 lines (35 loc) · 965 Bytes
/
flake-gemini.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ config, lib, pkgs, options, ...}:
let
url = "https://github.com/nix-community/flake-gemini.git";
src = builtins.fetchGit {
inherit url;
rev = "86e176305027f08e387b860f35dab6ac7fdfb814";
};
overlay = final: prev: {
kineto = pkgs.writeShellScriptBin "kineto" "echo kineto";
duckling-proxy = pkgs.runCommand "duckling-proxy" {
meta.homepage = "{duckling-homepage}";
} "echo duckling-proxy";
};
importModule = path: import "${src}/${path}"
{
inherit overlay;
}
{
inherit lib options;
config.services.kineto.enable = false;
config.services.duckling-proxy.enable = false;
pkgs = pkgs.extend overlay;
};
in
{
files.docs."/gh-pages/src/flake-gemini.md".modules = [
(importModule "kineto/nixos-module.nix")
(importModule "duckling-proxy/nixos-module.nix")
];
files.mdbook.summary = ''
---
- [Flake Gemini](./flake-gemini.md)
'';
about.sources = "- [Flake Gemini](${url})";
}