From 7d08b696e9ab6de61c53a5dc9153595a5a8a6d98 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 5 May 2024 21:39:26 +0200 Subject: build: fetch darwin and home-manager options --- default.nix | 2 ++ justfile | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/default.nix b/default.nix index e10fc4f..38bbf9e 100644 --- a/default.nix +++ b/default.nix @@ -16,6 +16,8 @@ in }; nixos-options = import (./. + "/importers/nixos-options.nix") { }; + darwin-options = (import { }).options; + home-manager-options = (import { }).docs.json; searchix = pkgs.buildGoApplication { pname = "searchix"; diff --git a/justfile b/justfile index 0168d99..62e5659 100644 --- a/justfile +++ b/justfile @@ -7,6 +7,14 @@ prepare: 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 . -- cgit 1.4.1