all repos — searchix @ 7d08b696e9ab6de61c53a5dc9153595a5a8a6d98

Search engine for NixOS, nix-darwin, home-manager and NUR users

build: fetch darwin and home-manager options
Alan Pearce alan@alanpearce.eu
Sun, 05 May 2024 21:39:26 +0200
commit

7d08b696e9ab6de61c53a5dc9153595a5a8a6d98

parent

71de5479bc625aa101f72a24b056b687b0630a9a

2 files changed, 10 insertions(+), 0 deletions(-)

jump to
M default.nixdefault.nix
@@ -16,6 +16,8 @@ inherit (sources.simple-css) url sha256;   };
 
   nixos-options = import (./. + "/importers/nixos-options.nix") { };
+  darwin-options = (import <darwin/release.nix> { }).options;
+  home-manager-options = (import <home-manager> { }).docs.json;
 
   searchix = pkgs.buildGoApplication {
     pname = "searchix";
M justfilejustfile
@@ -7,6 +7,14 @@ update-nixos-options:
 	wgo run -exit ./process --input $(nix-build --no-out-link -A nixos-options)/share/doc/nixos/options.json --output data/nixos-options.json
 
+update-darwin-options:
+	wgo run -exit ./process --input $(nix-build --no-out-link -A darwin-options)/share/doc/darwin/options.json --output data/darwin-options.json
+
+update-home-manager-options:
+	wgo run -exit ./process --input $(nix-build --no-out-link -A home-manager-options)/share/doc/home-manager/options.json --output data/home-manager-options.json
+
+update-all-options: update-nixos-options update-darwin-options update-home-manager-options
+
 checkformat:
 	gofmt -d .
 	goimports -d .