1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 19:29:47 +01:00
Commit graph

158 commits

Author SHA1 Message Date
Scott Stevenson
e910311c46
home-manager: Check VISUAL before EDITOR for editor
Check VISUAL for a visual editor before EDITOR, as per Unix convention
and as followed by Git, crontab, mutt, and other tools.
2024-04-10 21:27:22 +02:00
Robert Helgesson
9bddb0a89f
docs: add style sheets and scrubDerivations
This adds style sheets and `scrubDerivations` from nmd, thereby
removing the need to download them separately.
2024-04-10 21:27:19 +02:00
Robert Helgesson
b64804f20a
treewide: deprecate VERBOSE_ECHO
The shell function `verboseEcho` can be used in its stead.
2024-04-10 21:27:16 +02:00
Robert Helgesson
a04f37fab0
treewide: deprecate DRY_RUN_CMD and DRY_RUN_NULL
As a replacement, this adds the `run` helper function.
2024-04-10 21:27:15 +02:00
Robert Helgesson
8273de29d7
docs, tests: revert to fetchTarball for nmd and nmt
Turns out pulling nmt and nmd from Nixpkgs causes an IFD, even when
the packages are fixed-output derivations.

Thus, since Sourcehut is up and well, we can revert to simply fetching
nmd and nmt directly.

See discussion in <https://github.com/nix-community/home-manager/pull/4884>.
2024-04-10 21:27:13 +02:00
Robert Helgesson
92a39dcf42
docs: use nmd from Nixpkgs 2024-04-10 21:27:10 +02:00
Robert Helgesson
bf8a128853
home-manager: internalize uninstall
This adds a Boolean option `uninstall`. When enabled this option will
reset side-effecting configurations to their "empty" state. The intent
is that this will cause the activation script to remove all managed
files and packages.

Doing it this way should hopefully be more robust than the previous
solution. It also allows a somewhat more convenient uninstall process
when using Flakes; put `uninstall = true` in your existing
configuration and then do a switch.

Also add simple uninstall test in CI test job.
2024-04-10 21:27:09 +02:00
Robert Helgesson
174ae21fc5
docs: use alternative source of nmd 2024-04-10 21:27:08 +02:00
katelyn martin
e8ca9918a6
docs: fix typo in nix-flakes.md 2024-04-10 21:26:58 +02:00
Robert Helgesson
32a4186681
docs: set the manual version to "24.05 (unstable)" 2024-04-10 21:26:57 +02:00
Viktor Kronvall
b602c2fc2f
docs: fix broken link text 2024-04-10 21:26:57 +02:00
Viktor Kronvall
075ce54dd6
docs: fix link texts in release notes 2024-04-10 21:26:57 +02:00
Viktor Kronvall
f1590a90ea
docs: add considerate as maintainer 2024-04-10 21:26:56 +02:00
Viktor Kronvall
1ce2f83059
docs: use .xhtml for appendices 2024-04-10 21:26:56 +02:00
Viktor Kronvall
59087dc8b6
docs: add release-notes as appendix
The release notes used to be an appendix in the manual. After
converting to markdown that appendix got lost. This commit
reintroduces the release notes into the manual.
2024-04-10 21:26:56 +02:00
Phil Simpson
e914868bde
docs: fix nix-darwin module configuration example
The example is missing a `;` which causes this error when you attempt
a `darwin-rebuild switch`.

```
       error: syntax error, unexpected '=', expecting ';'

       at /Users/968713/.nixpkgs/darwin-configuration.nix:17:30:

           16|   }
           17|   home-manager.users.eve = { pkgs, ... }: {
             |                              ^
           18|     home.packages = [
```
2024-04-10 21:26:54 +02:00
Robert Helgesson
a15c8a5839
docs: use relative paths to static resources
Fixes #4753
2024-04-10 21:26:50 +02:00
Robert Helgesson
feb0999858
docs: apply nixfmt 2024-04-10 21:26:50 +02:00
Viktor Kronvall
e76d3e4d1a
docs: rename generated manual to index.xhtml
The `nixos-render-docs` tool outputs XHTML formatted content. In
order to convince browsers like `firefox` to treat the data as XHTML
the extension must be `.xhtml` and not `.html`.

Using the XHTML-formatted content as HTML is mainly an issue with
self-closing `<a />` tags.
2024-04-10 21:26:50 +02:00
Viktor Kronvall
55a132124b
docs: fix syntax highlighting
`document-highlighter` now outputs a `<code>` block inside the
pre-formatted `<pre>` tag. This changes the required CSS for
rendering code snippets. Moreover, this commit uses the highlightjs
as provided by the `document-highlighter` package instead of the
version packaged in `nmd`.
2024-04-10 21:26:50 +02:00
Viktor Kronvall
824a7f1607
docs: render DESCRIPTION and OPTIONS headings 2024-04-10 21:26:49 +02:00
Viktor Kronvall
09ccfcad93
docs: replace console language with shell 2024-04-10 21:26:49 +02:00
Viktor Kronvall
c8e7b1b211
docs: update nmd version
This update fixes the custom CSS to make the `$` character
non-selectable in highlighted code blocks.
2024-04-10 21:26:49 +02:00
Viktor Kronvall
82162b82af
docs: extend home-configuration.nix header
The previous version had a longer header before the options,
including a DESCRIPTION section and an header for the OPTIONS.
2024-04-10 21:26:49 +02:00
Viktor Kronvall
8fd014a492
docs: include 3rd-party part 2024-04-10 21:26:48 +02:00
Viktor Kronvall
5381906852
docs: this is the home-manager manual 2024-04-10 21:26:48 +02:00
Viktor Kronvall
fc1f327c67
docs: fix note blocks 2024-04-10 21:26:48 +02:00
Viktor Kronvall
fe569bf111
docs: no justification in home-manager manpage
The `man home-configuration.nix` is configured to left
align the text similar to `man configuration.nix`. This
commit updates the `man home-manager` page to be consitent
with the two manpages mentioned above.
2024-04-10 21:26:48 +02:00
Viktor Kronvall
4da3b03b5b
docs: use nixos-render-docs
This commit removes the `home-manager-render-docs` package in favor
of upstream `nixos-render-docs` where the manpage generator has been
updated to take a `--header` and a `--footer` flag specifying static
content around the content derived from the options.json file.
2024-04-10 21:26:48 +02:00
Viktor Kronvall
61b467b3d5
docs: update manual to refer to 23.11 2024-04-10 21:26:47 +02:00
Viktor Kronvall
313c2a6416
docs: update paths to make manual tests pass 2024-04-10 21:26:47 +02:00
Viktor Kronvall
8255b13aa0
docs: add htmlOpenTool to manual
This commit extracts the htmlOpenTool from `nmd` into a module
in the home-manager docs directory. This is done to provide feature
parity with the documentation generated using the docbook .xml files.
2024-04-10 21:26:47 +02:00
Viktor Kronvall
ebe95dbf1a
docs: add home-manager manpage 2024-04-10 21:26:47 +02:00
Viktor Kronvall
186fe307c2
docs: render without deprecated optionsDocBook
The `optionsDocBook` function is deprecated in nixpkgs since
nixos-23.11. This commit updates the manual and manpages to
use commonmark formatted documentation instead of the deprecated
docbook format.
2024-04-10 21:26:46 +02:00
Robert Helgesson
cbc59af190
home-manager: set unstable release to 24.05 2024-04-10 21:26:42 +02:00
Robert Helgesson
99fe7d0c96
home-manager: set stable release to 23.11 2024-04-10 21:26:42 +02:00
Robert Helgesson
1807ce921e
docs: fix option name
Fixes #4589
2024-04-10 21:26:30 +02:00
Artturin
8872c10da5
docs: add stateVersion to the NixOS/nix-darwin example
This is necessary, without this a new user gets

```
error: The option `home-manager.users.X.home.stateVersion' is used but not defined.
```
2024-04-10 21:26:27 +02:00
pacien
fb8a6393ff
password-store-sync: remove module
The module `services.git-sync` (introduced two years after) provides
the same functionality, but in a more general and reliable way.
2024-04-10 21:26:25 +02:00
Emily
c707d4f552 docs: hide _module.* from NixOS/nix-darwin docs
These are already documented in the system-level manuals and have no
particular relevance to the `home-manager.*` options.
2023-07-19 21:44:06 +01:00
Emily
8c350c2069 docs: update for Markdown migration 2023-07-17 18:49:09 +01:00
Emily
7398af11b8 docs: clean up after Markdown migration 2023-07-17 18:49:09 +01:00
Emily
59b933653a docs: use nixosOptionsDoc
Output is mostly unchanged aside from some minor typographical and
formatting changes, along with better source links.

We temporarily export `options.docBookForMigration` to allow
`nix-doc-munge` to check its conversions.
2023-07-17 16:49:35 +01:00
Emily
23ad3d2b53 version: add isReleaseBranch 2023-07-17 16:49:32 +01:00
Norbert Melzer
47c2adc6b3
docs: update link to allowed users setting (#4176)
1. The option has been renamed in NixOS about a year ago.
2. The link into the manual describing that option has been
   fixed.
2023-06-28 11:41:08 +02:00
Robert Helgesson
172d46d4b2
docs: bump nmd
Removes the need to apply `fix-man-options-duplication.patch`. See,
e.g., https://github.com/NixOS/nixpkgs/pull/166509.
2023-06-24 19:28:15 +02:00
Robert Helgesson
28b6c3670c
docs: update nmd
With improved conversion of Markdown list items.
2023-06-24 13:18:38 +02:00
Robert Helgesson
29872a1c8f
docs: update nmd
Mainly to work around recent changes in Nixpkgs with respect to
`_module.args`.
2023-06-24 11:52:37 +02:00
Naïm Favier
6c78ba7932
docs/contributing: link to NMT's bash-lib (#4125) 2023-06-22 16:35:33 +02:00
Midnight Veil
a10aa82e8a
docs: Document osConfig module argument (#4103)
As mentioned https://github.com/nix-community/home-manager/issues/393#issuecomment-1259996423.

Otherwise only documented in source code, which isn't very findable.
2023-06-19 11:37:28 +02:00