1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00
Commit graph

1344 commits

Author SHA1 Message Date
Emily
df03a145b3 ci: update manual updater to 23.05
Fix https://github.com/LnL7/nix-darwin/issues/709.
2023-06-25 06:43:54 +01:00
Emily
9d6702cf2b eval-config: remove compatibility shims
20.03 and 22.03 are both deprecated.
2023-06-24 10:48:55 +01:00
Emily
42d1643e7a {ci,readme}: update stable nixpkgs to 23.05
22.11 is deprecated and can no longer generate the manual.
2023-06-24 10:48:55 +01:00
Emily
69648c6cbb doc/manual: use nixos-render-docs
Now that all the DocBook documentation is gone, we can switch to the
new NixOS documentation generator. No meaningful change in HTML output,
except that I removed the rather pointless preface and changed the
title accordingly. Manual page output is greatly improved; it was
kind of broken before. The `sed` hack is pretty gross but I have
confirmed that nixpkgs will be happy to accept a PR to make things
a little more customizable.

This also drops the `manual` alias (deprecated in nixpkgs in 2018
and imported into nix-darwin), and `manualEpub` (because the NixOS
documentation generator doesn't support it and also nobody wants this
as an ebook).
2023-06-24 10:48:55 +01:00
Emily
d37abf456b flake.nix: remove the nixpkgs pin
The Markdown transition is over and our compatibility with
`nixpkgs-unstable` is restored.
2023-06-24 10:48:55 +01:00
Emily
2903ceabb5 doc/manual: remove optionsDocBook export 2023-06-24 10:48:55 +01:00
Emily
e65131e69c treewide: convert all option docs to Markdown
This process was automated by [my fork of `nix-doc-munge`]; thanks
to @pennae for writing this tool! It automatically checks that the
resulting documentation doesn't change, although my fork loosens
this a little to ignore some irrelevant whitespace and typographical
differences.

As of this commit there is no DocBook remaining in the options
documentation.

You can play along at home if you want to reproduce this commit:

    $ NIX_PATH=nixpkgs=flake:nixpkgs/c1bca7fe84c646cfd4ebf3482c0e6317a0b13f22 \
      nix shell nixpkgs#coreutils \
      -c find . -name '*.nix' \
      -exec nix run github:emilazy/nix-doc-munge/0a7190f600027bf7baf6cb7139e4d69ac2f51062 \
      {} +

[my fork of `nix-doc-munge`]: https://github.com/emilazy/nix-doc-munge
2023-06-24 10:48:55 +01:00
Emily
efe314cdba treewide: manually convert some docs to Markdown
These all use DocBook markup too complex for `nix-doc-munge` to handle,
have syntax that clashes with Markdown, or already contain Markdown
syntax that currently isn't rendering correctly.

Converting DocBook list syntax makes me think that maybe Markdown
isn't so bad after all.
2023-06-24 10:48:55 +01:00
Emily
c2716817a8 {offlineimap,tailscale}: fix enable option docs
The argument to `mkEnableOption` is automatically wrapped in a full
sentence.
2023-06-24 10:48:55 +01:00
Emily
b97c235e37 treewide: tweak DocBook docs for conversion
These help `nix-munge-doc` automate more of the Markdown conversion
process. See the following nixpkgs commits for explanations of many
of these changes:

* 275a34e0d8
* 694d5b19d3
* f1d39b6d61
* 16102dce2f

I couldn't think of any particularly good way to format the
`system.defaults` breadcrumbs, so I just made them standalone
paragraphs. They weren't rendering correctly in DocBook anyway.
2023-06-24 10:48:55 +01:00
Emily
76ce9faca6 doc/manual: use nixosOptionDoc
The only change to `options.json` are that the `declarations` fields
now contain correct GitHub URLs.

The changes to the HTML manual are all either strict improvements:

* "Declared by:" links point to the correct URLs.
* `lib.mdDoc` documentation is included.

or else trivial:

* Additional whitespace in the HTML source.
* Some interchange of `<pre class="programlisting">` and
  `<code class="literal">`.
* Fancy quotes used in some type descriptions.

`optionsDocBook` is exported temporarily as it is used by
`nix-doc-munge` for the Markdown conversion process.

This drops support for building the manual on 22.11, which lacks a
complete implementation of this processor, and provides stubbed-out
manual packages with an explanation on that version.
2023-06-24 10:48:55 +01:00
Emily
96cb49133b wq-quick: document publicKey option
All exposed options should have documentation, and `nixosOptionDoc`
will give an error if it's missing.
2023-06-24 10:48:55 +01:00
Emily
f8c61f0098 flake.nix: add checks for the docs
Except for `manualEpub`, which is going away.
2023-06-24 09:03:26 +01:00
Emily
b6893e7f6d eval-config: remove lib.mdDoc
The temporarily pinned nixpkgs version already has this version,
and where we're going, we don't need backports.

This reverts commit 737cfdec9c.
2023-06-24 06:33:18 +01:00
Emily
b7ccefadf9 flake.nix: temporarily pin nixpkgs version
This is the last bump of the nixpkgs-unstable channel before the
DocBookalypse.
2023-06-24 06:33:18 +01:00
Daiderd Jordan
6460468e7a
Merge pull request #706 from qowoz/defaults
activity monitor: change settings to null
2023-06-23 12:57:17 +02:00
zowoq
fbb3ab94e6 activity monitor: change settings to null
treewide these seem to be the only settings that aren't unset by default which seems inconsistent
2023-06-23 20:29:46 +10:00
Domen Kožar
bc346a67d3
Merge pull request #704 from emilazy/readd-mddoc
eval-config.nix: readd `lib.mdDoc` temporarily
2023-06-21 23:12:02 +01:00
Emily
737cfdec9c eval-config.nix: readd lib.mdDoc temporarily
Fixes: #701
2023-06-21 22:55:32 +01:00
Daiderd Jordan
ed275afbba
Merge pull request #671 from sxyazi/pr-e0f2168d
Add `mouseDriverCursorSize` option
2023-06-20 21:55:53 +02:00
Daiderd Jordan
050da23813
Merge pull request #672 from sxyazi/pr-af01ed5d
Add `AppleScrollerPagingBehavior` option
2023-06-20 21:55:28 +02:00
Daiderd Jordan
689aa795a1
Merge pull request #673 from sxyazi/pr-4df4da65
feat: add `AppleWindowTabbingMode` option
2023-06-20 21:52:47 +02:00
Daiderd Jordan
681c152eea
Merge pull request #679 from dbaynard/patch-1
Document font overriding behaviour
2023-06-20 21:38:47 +02:00
Daiderd Jordan
1b57241a7b
Merge pull request #686 from CathalMullan/master
nix: Add build machines protocol option.
2023-06-20 21:19:39 +02:00
Daiderd Jordan
1eab97fe04
Merge pull request #689 from cherryblossom000/patch-1
docs: clarify how to use inputs with flakes
2023-06-20 21:12:39 +02:00
Daiderd Jordan
1a625c193d
Merge pull request #696 from toonn/bump-actions
GHActions: Bump install-nix-action to v22
2023-06-20 21:09:17 +02:00
toonn
cd87d92320
GHActions: Bump install-nix-action to v22
Not all workflows were updated but some were, this fixes the
inconsistency.
2023-06-18 20:03:45 +02:00
Domen Kožar
8a5af0da9d
Merge pull request #695 from jmmaloney4/master
add ipfs service
2023-06-18 18:46:33 +01:00
Domen Kožar
1759eb2699
Merge pull request #688 from Enzime/add/template
flake: add template with basic flake config
2023-06-18 18:45:30 +01:00
Jack Maloney
1711db734e
add ipfs service 2023-06-18 00:44:04 -05:00
Michael Hoang
8d13a55f1c workflows: fix Nix install on macos-12 2023-06-17 22:57:44 +10:00
Michael Hoang
f532e43f7e templates.flake: add contents of simple.nix 2023-06-17 22:57:44 +10:00
Michael Hoang
fc955520dd flake: add template with basic flake config 2023-06-17 22:09:38 +10:00
Lauren Yim
1fc5d125fb
docs: clarify how to use inputs with flakes
This commit clarifies that in order to access `inputs` in a host configuration, the `inputs` argument must be used. This commit also documents how `specialArgs` can be used to access the inputs as arguments directly.
2023-06-12 16:08:03 +10:00
Cathal Mullan
51b8bdfc0e
nix: Add build machines protocol option. 2023-06-10 13:44:37 +01:00
Domen Kožar
7c16d31383
Merge pull request #685 from Enzime/fix/run
darwin-installer: fix `/run` not getting created
2023-06-09 11:44:53 +01:00
Michael Hoang
1ba9ae3d21 darwin-installer: fix /run not getting created 2023-06-09 15:25:55 +10:00
Domen Kožar
40e4b85baa
Merge pull request #681 from cole-h/auto-uid
system/checks: allow disabling the buildUsers check
2023-06-08 08:42:41 +01:00
Domen Kožar
5c671dd10f
Merge pull request #677 from Enzime/fix/ssh-pubkeys
ssh: fix public keys in home directory not working
2023-06-08 08:41:09 +01:00
Michael Hoang
257b5c1994 ssh: fix public keys in home directory not working
Added `services.openssh.authorizedKeysFiles` option from NixOS.
2023-06-08 15:44:07 +10:00
Cole Helbling
9c7a07b8b2
system/checks: allow disabling the buildUsers check
This allows systems with auto-allocate-uids enabled to work (by
disabling this check).
2023-06-06 16:21:14 -07:00
David Baynard
d20ba9bf9c Document font overriding behaviour 2023-06-01 22:21:31 +01:00
Domen Kožar
4338bc869e
Merge pull request #404 from jsoo1/no-checking-channels-with-flakes
flakes: Do not verify channels when using flakes.
2023-05-31 20:59:30 +02:00
John Soo
add08fcab0 flakes: Do not verify channels when using flakes. 2023-05-31 07:28:23 -06:00
sxyazi
cfcfcc535e
feat: use enum instead of str for constraints nicer 2023-05-27 01:42:42 +08:00
sxyazi
df00ca18a3
feat: add AppleWindowTabbingMode option 2023-05-27 01:37:34 +08:00
sxyazi
ce785ccacf
feat: add AppleScrollerPagingBehavior option 2023-05-27 01:02:23 +08:00
sxyazi
7bf15660ca
fix: type 2023-05-27 00:37:51 +08:00
sxyazi
0ad226e8c3
feat: add mouseDriverCursorSize option 2023-05-27 00:13:47 +08:00
Daiderd Jordan
b8c286c82c
Merge pull request #616 from gshpychka/patch-1
feat: support writing arrays to system defaults
2023-05-22 19:02:28 +02:00