Project import generated by Copybara.
GitOrigin-RevId: 51e44a13acea71b36245e8bd8c7db53e0a3e61ee
This commit is contained in:
parent
99d66bea22
commit
c6444ecc3c
450 changed files with 13030 additions and 5644 deletions
21
third_party/home-manager/.editorconfig
vendored
Normal file
21
third_party/home-manager/.editorconfig
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
# http://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
# The JSON files contain newlines inconsistently
|
||||
[*.json]
|
||||
insert_final_newline = ignore
|
||||
|
||||
# Makefiles always use tabs for indentation
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
|
@ -15,7 +15,7 @@ pull-request.
|
|||
|
||||
Also make sure to read the guidelines found at
|
||||
|
||||
https://github.com/nix-community/home-manager/blob/master/docs/contributing.adoc#sec-guidelines
|
||||
https://nix-community.github.io/home-manager/#sec-guidelines
|
||||
|
||||
-->
|
||||
|
||||
|
@ -35,7 +35,7 @@ Also make sure to read the guidelines found at
|
|||
{long description}
|
||||
```
|
||||
|
||||
See [CONTRIBUTING](https://github.com/nix-community/home-manager/blob/master/docs/contributing.adoc#sec-commit-style) for more information and [recent commit messages](https://github.com/nix-community/home-manager/commits/master) for examples.
|
||||
See [CONTRIBUTING](https://nix-community.github.io/home-manager/#sec-commit-style) for more information and [recent commit messages](https://github.com/nix-community/home-manager/commits/master) for examples.
|
||||
|
||||
- If this PR adds a new module
|
||||
|
||||
|
|
|
@ -15,3 +15,11 @@ updates:
|
|||
interval: "weekly"
|
||||
commit-message:
|
||||
prefix: "ci:"
|
||||
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
target-branch: "release-23.11"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
commit-message:
|
||||
prefix: "ci:"
|
||||
|
|
|
@ -10,11 +10,11 @@ jobs:
|
|||
os: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v22
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@v23
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- uses: cachix/cachix-action@v12
|
||||
- uses: cachix/cachix-action@v13
|
||||
with:
|
||||
name: nix-community
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
|
|
@ -11,11 +11,11 @@ jobs:
|
|||
os: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v22
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@v23
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- uses: cachix/cachix-action@v12
|
||||
- uses: cachix/cachix-action@v13
|
||||
with:
|
||||
name: nix-community
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
|
|
@ -10,11 +10,11 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v22
|
||||
uses: cachix/install-nix-action@v23
|
||||
- name: Update flake.lock
|
||||
uses: DeterminateSystems/update-flake-lock@v19
|
||||
uses: DeterminateSystems/update-flake-lock@v20
|
||||
with:
|
||||
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||
pr-labels: dependencies
|
||||
|
|
1
third_party/home-manager/.release
vendored
1
third_party/home-manager/.release
vendored
|
@ -1 +0,0 @@
|
|||
23.11
|
150
third_party/home-manager/README.md
vendored
150
third_party/home-manager/README.md
vendored
|
@ -1,109 +1,106 @@
|
|||
Home Manager using Nix
|
||||
======================
|
||||
|
||||
This project provides a basic system for managing a user environment
|
||||
using the [Nix][] package manager together with the Nix libraries
|
||||
found in [Nixpkgs][]. It allows declarative configuration of user
|
||||
specific (non global) packages and dotfiles.
|
||||
This project provides a basic system for managing a user environment using the
|
||||
[Nix][] package manager together with the Nix libraries found in [Nixpkgs][]. It
|
||||
allows declarative configuration of user specific (non-global) packages and
|
||||
dotfiles.
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
Before attempting to use Home Manager please read the warning below.
|
||||
Before attempting to use Home Manager please read [the warning
|
||||
below](#words-of-warning).
|
||||
|
||||
For a systematic overview of Home Manager and its available options,
|
||||
please see
|
||||
For a systematic overview of Home Manager and its available options, please see:
|
||||
|
||||
- the [Home Manager manual][manual],
|
||||
- the [Home Manager configuration options][configuration options], and
|
||||
- the 3rd party [Home Manager option search](https://mipmip.github.io/home-manager-option-search/).
|
||||
- [Home Manager manual][manual]
|
||||
- [Home Manager configuration options][configuration options]
|
||||
- [3rd party Home Manager option
|
||||
search](https://mipmip.github.io/home-manager-option-search/)
|
||||
|
||||
If you would like to contribute to Home Manager
|
||||
then please have a look at the [contributing][] chapter of the manual.
|
||||
If you would like to contribute to Home Manager, then please have a look at
|
||||
["Contributing" in the manual][contributing].
|
||||
|
||||
Releases
|
||||
--------
|
||||
|
||||
Home Manager is developed against `nixpkgs-unstable` branch, which
|
||||
often causes it to contain tweaks for changes/packages not yet
|
||||
released in stable NixOS. To avoid breaking users' configurations,
|
||||
Home Manager is released in branches corresponding to NixOS releases
|
||||
(e.g. `release-23.05`). These branches get fixes, but usually not new
|
||||
modules. If you need a module to be backported, then feel free to open
|
||||
an issue.
|
||||
Home Manager is developed against `nixpkgs-unstable` branch, which often causes
|
||||
it to contain tweaks for changes/packages not yet released in stable [NixOS][].
|
||||
To avoid breaking users' configurations, Home Manager is released in branches
|
||||
corresponding to NixOS releases (e.g. `release-23.11`). These branches get
|
||||
fixes, but usually not new modules. If you need a module to be backported, then
|
||||
feel free to open an issue.
|
||||
|
||||
Words of warning
|
||||
----------------
|
||||
|
||||
Unfortunately, it is quite possible to get difficult to understand
|
||||
errors when working with Home Manager. You should therefore be
|
||||
comfortable using the Nix language and the various tools in the Nix
|
||||
ecosystem.
|
||||
Unfortunately, it is quite possible to get difficult to understand errors when
|
||||
working with Home Manager. You should therefore be comfortable using the [Nix][]
|
||||
language and the various tools in the Nix ecosystem.
|
||||
|
||||
If you are not very familiar with Nix but still want to use Home
|
||||
Manager then you are strongly encouraged to start with a small and
|
||||
very simple configuration and gradually make it more elaborate as you
|
||||
learn.
|
||||
If you are not very familiar with Nix but still want to use Home Manager then
|
||||
you are strongly encouraged to start with a small and very simple configuration
|
||||
and gradually make it more elaborate as you learn.
|
||||
|
||||
In some cases Home Manager cannot detect whether it will overwrite a
|
||||
previous manual configuration. For example, the Gnome Terminal module
|
||||
will write to your dconf store and cannot tell whether a configuration
|
||||
that it is about to be overwritten was from a previous Home Manager
|
||||
generation or from manual configuration.
|
||||
In some cases Home Manager cannot detect whether it will overwrite a previous
|
||||
manual configuration. For example, the Gnome Terminal module will write to your
|
||||
dconf store and cannot tell whether a configuration that it is about to be
|
||||
overwritten was from a previous Home Manager generation or from manual
|
||||
configuration.
|
||||
|
||||
Home Manager targets [NixOS][] unstable and NixOS version 23.05 (the
|
||||
current stable version), it may or may not work on other Linux
|
||||
distributions and NixOS versions.
|
||||
Home Manager targets [NixOS][] unstable and NixOS version 23.11 (the current
|
||||
stable version), it may or may not work on other Linux distributions and NixOS
|
||||
versions.
|
||||
|
||||
Also, the `home-manager` tool does not explicitly support rollbacks at
|
||||
the moment so if your home directory gets messed up you'll have to fix
|
||||
it yourself. See the [rollbacks][] section for instructions on how to
|
||||
manually perform a rollback.
|
||||
Also, the `home-manager` tool does not explicitly support rollbacks at the
|
||||
moment so if your home directory gets messed up you'll have to fix it yourself.
|
||||
See the [rollbacks][] section for instructions on how to manually perform a
|
||||
rollback.
|
||||
|
||||
Now when your expectations have been built up and you are eager to try
|
||||
all this out you can go ahead and read the rest of this text.
|
||||
Now when your expectations have been built up and you are eager to try all this
|
||||
out you can go ahead and read the rest of this text.
|
||||
|
||||
Contact
|
||||
-------
|
||||
|
||||
You can chat with us on IRC in the channel [#home-manager][] on [OFTC][].
|
||||
There is also a [Matrix room](https://matrix.to/#/#hm:rycee.net),
|
||||
which is bridged to the IRC channel.
|
||||
You can chat with us on IRC in the channel [#home-manager][] on [OFTC][]. There
|
||||
is also a [Matrix room](https://matrix.to/#/#hm:rycee.net), which is bridged to
|
||||
the IRC channel.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
Home Manager can be used in three primary ways:
|
||||
|
||||
1. Using the standalone `home-manager` tool. For platforms other than
|
||||
NixOS and Darwin, this is the only available choice. It is also
|
||||
recommended for people on NixOS or Darwin that want to manage their
|
||||
home directory independently of the system as a whole. See
|
||||
[Standalone installation][manual standalone install] in the manual
|
||||
for instructions on how to perform this installation.
|
||||
1. Using the standalone `home-manager` tool. For platforms other than NixOS and
|
||||
Darwin, this is the only available choice. It is also recommended for people
|
||||
on [NixOS][] or Darwin that want to manage their home directory independently
|
||||
of the system as a whole. See ["Standalone installation" in the
|
||||
manual][manual standalone install] for instructions on how to perform this
|
||||
installation.
|
||||
|
||||
2. As a module within a NixOS system configuration. This allows the
|
||||
user profiles to be built together with the system when running
|
||||
`nixos-rebuild`. See [NixOS module installation][manual nixos
|
||||
install] in the manual for a description of this setup.
|
||||
1. As a module within a NixOS system configuration. This allows the user
|
||||
profiles to be built together with the system when running `nixos-rebuild`.
|
||||
See ["NixOS module" in the manual][manual nixos install] for a description of
|
||||
this setup.
|
||||
|
||||
3. As a module within a [nix-darwin][] system configuration. This
|
||||
allows the user profiles to be built together with the system when
|
||||
running `darwin-rebuild`. See [nix-darwin module
|
||||
installation][manual nix-darwin install] in the manual for a
|
||||
1. As a module within a [nix-darwin] system configuration. This allows the user
|
||||
profiles to be built together with the system when running `darwin-rebuild`.
|
||||
See ["nix-darwin module" in the manual][manual nix-darwin install] for a
|
||||
description of this setup.
|
||||
|
||||
Home Manager provides both the channel-based setup and the flake-based one.
|
||||
See [Nix Flakes][manual nix flakes] for a description of the flake-based setup.
|
||||
Home Manager provides both the channel-based setup and the flake-based one. See
|
||||
[Nix Flakes][manual nix flakes] for a description of the flake-based setup.
|
||||
|
||||
Translations
|
||||
------------
|
||||
|
||||
Home Manager has basic support for internationalization through
|
||||
[gettext](https://www.gnu.org/software/gettext/). The translations are
|
||||
hosted by [Weblate](https://weblate.org/). If you would like to
|
||||
contribute to the translation effort then start by going to the
|
||||
[Home Manager Weblate project](https://hosted.weblate.org/engage/home-manager/).
|
||||
[gettext](https://www.gnu.org/software/gettext/). The translations are hosted by
|
||||
[Weblate](https://weblate.org/). If you would like to contribute to the
|
||||
translation effort then start by going to the [Home Manager Weblate
|
||||
project](https://hosted.weblate.org/engage/home-manager/).
|
||||
|
||||
<a href="https://hosted.weblate.org/engage/home-manager/">
|
||||
<img src="https://hosted.weblate.org/widgets/home-manager/-/multi-auto.svg" alt="Translation status" />
|
||||
|
@ -114,19 +111,18 @@ License
|
|||
|
||||
This project is licensed under the terms of the [MIT license](LICENSE).
|
||||
|
||||
[Nix]: https://nixos.org/explore.html
|
||||
[NixOS]: https://nixos.org/
|
||||
[Nixpkgs]: https://github.com/NixOS/nixpkgs
|
||||
[manual]: https://nix-community.github.io/home-manager/index.html
|
||||
[contributing]: https://nix-community.github.io/home-manager/#ch-contributing
|
||||
[manual usage]: https://nix-community.github.io/home-manager/#ch-usage
|
||||
[configuration options]: https://nix-community.github.io/home-manager/options.html
|
||||
[#home-manager]: https://webchat.oftc.net/?channels=home-manager
|
||||
[OFTC]: https://oftc.net/
|
||||
[Nix Flakes]: https://nixos.wiki/wiki/Flakes
|
||||
[NixOS]: https://nixos.org/
|
||||
[Nix]: https://nixos.org/explore.html
|
||||
[Nixpkgs]: https://github.com/NixOS/nixpkgs
|
||||
[OFTC]: https://oftc.net/
|
||||
[configuration options]: https://nix-community.github.io/home-manager/options.xhtml
|
||||
[contributing]: https://nix-community.github.io/home-manager/#ch-contributing
|
||||
[manual nix flakes]: https://nix-community.github.io/home-manager/#ch-nix-flakes
|
||||
[manual nix-darwin install]: https://nix-community.github.io/home-manager/#sec-install-nix-darwin-module
|
||||
[manual nixos install]: https://nix-community.github.io/home-manager/#sec-install-nixos-module
|
||||
[manual standalone install]: https://nix-community.github.io/home-manager/#sec-install-standalone
|
||||
[manual]: https://nix-community.github.io/home-manager/
|
||||
[nix-darwin]: https://github.com/LnL7/nix-darwin
|
||||
[manual standalone install]: https://nix-community.github.io/home-manager/index.html#sec-install-standalone
|
||||
[manual nixos install]: https://nix-community.github.io/home-manager/index.html#sec-install-nixos-module
|
||||
[manual nix-darwin install]: https://nix-community.github.io/home-manager/index.html#sec-install-nix-darwin-module
|
||||
[manual nix flakes]: https://nix-community.github.io/home-manager/index.html#ch-nix-flakes
|
||||
[rollbacks]: https://nix-community.github.io/home-manager/index.html#sec-usage-rollbacks
|
||||
[rollbacks]: https://nix-community.github.io/home-manager/#sec-usage-rollbacks
|
||||
|
|
22
third_party/home-manager/docs/3rd-party.adoc
vendored
22
third_party/home-manager/docs/3rd-party.adoc
vendored
|
@ -1,22 +0,0 @@
|
|||
[[ch-3rd-party]]
|
||||
== Third-Party Tools and Extensions
|
||||
|
||||
Here is a collection of tools and extensions that relate to Home
|
||||
Manager. Note, these are maintained outside the regular Home Manager
|
||||
flow so quality and support may vary wildly. If you encounter problems
|
||||
then please raise them in the corresponding project, not as issues in
|
||||
the Home Manager tracker.
|
||||
|
||||
If you have made something interesting related to Home Manager then
|
||||
you are encouraged to create a PR that expands this chapter.
|
||||
|
||||
[[sec-3rd-party-module-collections]]
|
||||
=== Module Collections
|
||||
|
||||
- https://github.com/schuelermine/xhmm[xhmm — extra Home Manager modules]
|
||||
+
|
||||
A collection of modules maintained by Anselm Schüler.
|
||||
|
||||
- https://github.com/danth/stylix/[Stylix — System-wide colorscheming and typography]
|
||||
+
|
||||
Configure your applications to get coherent color scheme and font.
|
266
third_party/home-manager/docs/contributing.adoc
vendored
266
third_party/home-manager/docs/contributing.adoc
vendored
|
@ -1,266 +0,0 @@
|
|||
[[ch-contributing]]
|
||||
== Contributing
|
||||
|
||||
:open-issues: https://github.com/nix-community/home-manager/issues
|
||||
:new-issue: https://github.com/nix-community/home-manager/issues/new
|
||||
:fork-a-repo: https://help.github.com/articles/fork-a-repo/
|
||||
:create-a-pull-request: https://help.github.com/articles/creating-a-pull-request/
|
||||
:seven-rules: https://chris.beams.io/posts/git-commit/#seven-rules
|
||||
:news-nix: https://github.com/nix-community/home-manager/blob/master/modules/misc/news.nix
|
||||
:nixfmt: https://github.com/serokell/nixfmt/
|
||||
:example-commit-message: https://github.com/nix-community/home-manager/commit/69f8e47e9e74c8d3d060ca22e18246b7f7d988ef
|
||||
|
||||
Contributions to Home Manager are very welcome. To make the process as smooth as possible for both you and the Home Manager maintainers we provide some guidelines that we ask you to follow. See <<sec-contrib-getting-started>> for information on how to set up a suitable development environment and <<sec-guidelines>> for the actual guidelines.
|
||||
|
||||
This text is mainly directed at those who would like to make code contributions to Home Manager. If you just want to report a bug then first look among the already {open-issues}[open issues], if you find one matching yours then feel free to comment on it to add any additional information you may have. If no matching issue exists then go to the {new-issue}[new issue] page and write a description of your problem. Include as much information as you can, ideally also include relevant excerpts from your Home Manager configuration.
|
||||
|
||||
[[sec-contrib-getting-started]]
|
||||
=== Getting started
|
||||
|
||||
If you have not previously forked Home Manager then you need to do that first. Have a look at GitHub's {fork-a-repo}[Fork a repo] for instructions on how to do this.
|
||||
|
||||
Once you have a fork of Home Manager you should create a branch starting at the most recent `master` branch. Give your branch a reasonably descriptive name. Commit your changes to this branch and when you are happy with the result and it fulfills <<sec-guidelines>> then push the branch to GitHub and {create-a-pull-request}[create a pull request].
|
||||
|
||||
Assuming your clone is at `$HOME/devel/home-manager` then you can make the `home-manager` command use it by either
|
||||
|
||||
1. overriding the default path by using the `-I` command line option:
|
||||
+
|
||||
[source,console]
|
||||
$ home-manager -I home-manager=$HOME/devel/home-manager
|
||||
+
|
||||
or, if using <<sec-flakes-standalone,flakes>>:
|
||||
+
|
||||
[source,console]
|
||||
$ home-manager --override-input home-manager ~/devel/home-manager
|
||||
+
|
||||
or
|
||||
|
||||
2. changing the default path by ensuring your configuration includes
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.home-manager.enable = true;
|
||||
programs.home-manager.path = "$HOME/devel/home-manager";
|
||||
----
|
||||
+
|
||||
and running `home-manager switch` to activate the change. Afterwards, `home-manager build` and `home-manager switch` will use your cloned repository.
|
||||
|
||||
The first option is good if you only temporarily want to use your clone.
|
||||
|
||||
[[sec-guidelines]]
|
||||
=== Guidelines
|
||||
:irc-home-manager: https://webchat.oftc.net/?channels=home-manager
|
||||
:valuable-options: https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md#valuable-options
|
||||
:rfc-42: https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md
|
||||
:assertions: https://nixos.org/manual/nixos/stable/index.html#sec-assertions
|
||||
|
||||
If your contribution satisfy the following rules then there is a good chance it will be merged without too much trouble. The rules are enforced by the Home Manager maintainers and to a lesser extent the Home Manager CI system.
|
||||
|
||||
If you are uncertain how these rules affect the change you would like to make then feel free to start a discussion in the {irc-home-manager}[#home-manager] IRC channel, ideally before you start developing.
|
||||
|
||||
[[sec-guidelines-back-compat]]
|
||||
==== Maintain backward compatibility
|
||||
|
||||
Your contribution should not cause another user's existing configuration to break unless there is a very good reason and the change should be announced to the user through an {assertions}[assertion] or similar.
|
||||
|
||||
Remember that Home Manager is used in many different environments and you should consider how your change may effect others. For example,
|
||||
|
||||
- Does your change work for people that do not use NixOS? Consider other GNU/Linux distributions and macOS.
|
||||
- Does your change work for people whose configuration is built on one system and deployed on another system?
|
||||
|
||||
[[sec-guidelines-forward-compat]]
|
||||
==== Keep forward compatibility in mind
|
||||
|
||||
The master branch of Home Manager tracks the unstable channel of Nixpkgs, which may update package versions at any time. It is therefore important to consider how a package update may affect your code and try to reduce the risk of breakage.
|
||||
|
||||
The most effective way to reduce this risk is to follow the advice in <<sec-guidelines-valuable-options>>.
|
||||
|
||||
[[sec-guidelines-valuable-options]]
|
||||
==== Add only valuable options
|
||||
|
||||
When creating a new module it is tempting to include every option supported by the software. This is _strongly_ discouraged. Providing many options increases maintenance burden and risk of breakage considerably. This is why only the most {valuable-options}[important software options] should be modeled explicitly. Less important options should be expressible through an `extraConfig` escape hatch.
|
||||
|
||||
A good rule of thumb for the first implementation of a module is to only add explicit options for those settings that absolutely must be set for the software to function correctly. It follows that a module for software that provides sensible default values for all settings would require no explicit options at all.
|
||||
|
||||
If the software uses a structured configuration format like a JSON, YAML, INI, TOML, or even a plain list of key/value pairs then consider using a `settings` option as described in {rfc-42}[Nix RFC 42].
|
||||
|
||||
[[sec-guidelines-add-tests]]
|
||||
==== Add relevant tests
|
||||
|
||||
If at all possible, make sure to add new tests and expand existing tests so that your change will keep working in the future. See <<sec-tests>> for more information about the Home Manager test suite.
|
||||
|
||||
All contributed code _must_ pass the test suite.
|
||||
|
||||
[[sec-guidelines-module-maintainer]]
|
||||
|
||||
==== Add relevant documentation
|
||||
:nixpkgs-markdown: https://nixos.org/manual/nixpkgs/unstable/#sec-contributing-markup
|
||||
:docbook: https://tdg.docbook.org/
|
||||
:asciidoc: https://asciidoc.org/
|
||||
|
||||
Many code changes require changing the documentation as well. Module options should be documented with {nixpkgs-markdown}[Nixpkgs-flavoured Markdown]. Home Manager is itself documented using a combination of {docbook}[DocBook] and {asciidoc}[AsciiDoc]. All text is hosted in Home Manager's Git repository.
|
||||
|
||||
The HTML version of the manual containing both the module option descriptions and the documentation of Home Manager can be generated and opened by typing the following in a shell within a clone of the Home Manager Git repository:
|
||||
|
||||
[source,console]
|
||||
$ nix-build -A docs.html
|
||||
$ xdg-open ./result/share/doc/home-manager/index.html
|
||||
|
||||
When you have made changes to a module, it is a good idea to check that the man page version of the module options looks good:
|
||||
|
||||
[source,console]
|
||||
$ nix-build -A docs.manPages
|
||||
$ man ./result/share/man/man5/home-configuration.nix.5.gz
|
||||
|
||||
==== Add yourself as a module maintainer
|
||||
|
||||
Every new module _must_ include a named maintainer using the `meta.maintainers` attribute. If you are a user of a module that currently lacks a maintainer then please consider adopting it.
|
||||
|
||||
If you are present in the nixpkgs maintainer list then you can use that entry. If you are not then you can add yourself to `modules/lib/maintainers.nix` in the Home Manager project.
|
||||
|
||||
Maintainers are encouraged to join the IRC or Matrix channel and participate when they have opportunity.
|
||||
|
||||
[[sec-guidelines-code-style]]
|
||||
==== Format your code
|
||||
|
||||
Make sure your code is formatted as described in <<sec-code-style>>. To maintain consistency throughout the project you are encouraged to browse through existing code and adopt its style also in new code.
|
||||
|
||||
[[sec-guidelines-commit-message-style]]
|
||||
==== Format your commit messages
|
||||
|
||||
Similar to <<sec-guidelines-code-style>> we encourage a consistent commit message format as described in <<sec-commit-style>>.
|
||||
|
||||
[[sec-guidelines-news-style]]
|
||||
==== Format your news entries
|
||||
|
||||
If your contribution includes a change that should be communicated to users of Home Manager then you can add a news entry. The entry must be formatted as described in <<sec-news>>.
|
||||
|
||||
When new modules are added a news entry should be included but you do not need to create this entry manually. The merging maintainer will create the entry for you. This is to reduce the risk of merge conflicts.
|
||||
|
||||
[[sec-guidelines-conditional-modules]]
|
||||
==== Use conditional modules and news
|
||||
|
||||
Home Manager includes a number of modules that are only usable on some of the supported platforms. The most common example of platform specific modules are those that define systemd user services, which only works on Linux systems.
|
||||
|
||||
If you add a module that is platform specific then make sure to include a condition in the `loadModule` function call. This will make the module accessible only on systems where the condition evaluates to `true`.
|
||||
|
||||
Similarly, if you are adding a news entry then it should be shown only to users that may find it relevant, see <<sec-news>> for a description of conditional news.
|
||||
|
||||
[[sec-guidelines-licensing]]
|
||||
==== Mind the license
|
||||
|
||||
The Home Manager project is covered by the MIT license and we can only accept contributions that fall under this license, or are licensed in a compatible way. When you contribute self written code and documentation it is assumed that you are doing so under the MIT license.
|
||||
|
||||
A potential gotcha with respect to licensing are option descriptions. Often it is convenient to copy from the upstream software documentation. When this is done it is important to verify that the license of the upstream documentation allows redistribution under the terms of the MIT license.
|
||||
|
||||
[[sec-commit-style]]
|
||||
=== Commits
|
||||
|
||||
The commits in your pull request should be reasonably self-contained, that is, each commit should make sense in isolation. In particular, you will be asked to amend any commit that introduces syntax errors or similar problems even if they are fixed in a later commit.
|
||||
|
||||
The commit messages should follow the {seven-rules}[seven rules], except for "Capitalize the subject line". We also ask you to include the affected code component or module in the first line. That is, a commit message should follow the template
|
||||
|
||||
----
|
||||
{component}: {description}
|
||||
|
||||
{long description}
|
||||
----
|
||||
|
||||
where `{component}` refers to the code component (or module) your change affects, `{description}` is a very brief description of your change, and `{long description}` is an optional clarifying description. As a rare exception, if there is no clear component, or your change affects many components, then the `{component}` part is optional. See <<ex-commit-message>> for a commit message that fulfills these requirements.
|
||||
|
||||
[[ex-commit-message]]
|
||||
.Compliant commit message
|
||||
===============================================================================
|
||||
The commit {example-commit-message}[69f8e47e9e74c8d3d060ca22e18246b7f7d988ef] contains the commit message
|
||||
|
||||
----
|
||||
starship: allow running in Emacs if vterm is used
|
||||
|
||||
The vterm buffer is backed by libvterm and can handle Starship prompts
|
||||
without issues.
|
||||
----
|
||||
|
||||
which ticks all the boxes necessary to be accepted in Home Manager.
|
||||
===============================================================================
|
||||
|
||||
Finally, when adding a new module, say `programs/foo.nix`, we use the fixed commit format `foo: add module`. You can, of course, still include a long description if you wish.
|
||||
|
||||
[[sec-code-style]]
|
||||
=== Code Style
|
||||
|
||||
The code in Home Manager is formatted by the {nixfmt}[nixfmt] tool and the formatting is checked in the pull request tests. Run the `format` tool inside the project repository before submitting your pull request.
|
||||
|
||||
Keep lines at a reasonable width, ideally 80 characters or less. This also applies to string literals.
|
||||
|
||||
We prefer `lowerCamelCase` for variable and attribute names with the accepted exception of variables directly referencing packages in Nixpkgs which use a hyphenated style. For example, the Home Manager option `services.gpg-agent.enableSshSupport` references the `gpg-agent` package in Nixpkgs.
|
||||
|
||||
[[sec-news]]
|
||||
=== News
|
||||
|
||||
Home Manager includes a system for presenting news to the user. When making a change you, therefore, have the option to also include an associated news entry. In general, a news entry should only be added for truly noteworthy news. For example, a bug fix or new option does generally not need a news entry.
|
||||
|
||||
If you do have a change worthy of a news entry then please add one in {news-nix}[`news.nix`] but you should follow some basic guidelines:
|
||||
|
||||
- The entry timestamp should be in ISO-8601 format having "+00:00" as time zone. For example, "2017-09-13T17:10:14+00:00". A suitable timestamp can be produced by the command
|
||||
+
|
||||
[source,console]
|
||||
$ date --iso-8601=second --universal
|
||||
|
||||
- The entry condition should be as specific as possible. For example, if you are changing or deprecating a specific option then you could restrict the news to those users who actually use this option.
|
||||
|
||||
- Wrap the news message so that it will fit in the typical terminal, that is, at most 80 characters wide. Ideally a bit less.
|
||||
|
||||
- Unlike commit messages, news will be read without any connection to the Home Manager source code. It is therefore important to make the message understandable in isolation and to those who do not have knowledge of the Home Manager internals. To this end it should be written in more descriptive, prose like way.
|
||||
|
||||
- If you refer to an option then write its full attribute path. That is, instead of writing
|
||||
+
|
||||
----
|
||||
The option 'foo' has been deprecated, please use 'bar' instead.
|
||||
----
|
||||
+
|
||||
it should read
|
||||
+
|
||||
----
|
||||
The option 'services.myservice.foo' has been deprecated, please
|
||||
use 'services.myservice.bar' instead.
|
||||
----
|
||||
|
||||
- A new module, say `foo.nix`, should always include a news entry that has a message along the lines of
|
||||
+
|
||||
----
|
||||
A new module is available: 'services.foo'.
|
||||
----
|
||||
+
|
||||
If the module is platform specific, e.g., a service module using systemd, then a condition like
|
||||
+
|
||||
[source,nix]
|
||||
condition = hostPlatform.isLinux;
|
||||
+
|
||||
should be added. If you contribute a module then you don't need to add this entry, the merger will create an entry for you.
|
||||
|
||||
[[sec-tests]]
|
||||
=== Tests
|
||||
|
||||
Home Manager includes a basic test suite and it is highly recommended to include at least one test when adding a module. Tests are typically in the form of "golden tests" where, for example, a generated configuration file is compared to a known correct file.
|
||||
|
||||
It is relatively easy to create tests by modeling the existing tests, found in the `tests` project directory. For a full reference to the functions available in test scripts, you can look at NMT's https://git.sr.ht/~rycee/nmt/tree/master/item/bash-lib[bash-lib].
|
||||
|
||||
The full Home Manager test suite can be run by executing
|
||||
|
||||
[source,console]
|
||||
$ nix-shell --pure tests -A run.all
|
||||
|
||||
in the project root. List all test cases through
|
||||
|
||||
[source,console]
|
||||
$ nix-shell --pure tests -A list
|
||||
|
||||
and run an individual test, for example `alacritty-empty-settings`, through
|
||||
|
||||
[source,console]
|
||||
$ nix-shell --pure tests -A run.alacritty-empty-settings
|
||||
|
||||
However, those invocations will impurely source the system’s nixpkgs, and may cause failures. To run against the nixpkgs from the flake.lock, use instead e.g.
|
||||
|
||||
[source,console]
|
||||
$ nix develop --ignore-environment .#all
|
62
third_party/home-manager/docs/default.nix
vendored
62
third_party/home-manager/docs/default.nix
vendored
|
@ -9,8 +9,8 @@ let
|
|||
|
||||
nmdSrc = fetchTarball {
|
||||
url =
|
||||
"https://git.sr.ht/~rycee/nmd/archive/824a380546b5d0d0eb701ff8cd5dbafb360750ff.tar.gz";
|
||||
sha256 = "0vvj40k6bw8ssra8wil9rqbsznmfy1kwy7cihvm13rajwdg9ycgg";
|
||||
"https://git.sr.ht/~rycee/nmd/archive/f18defadcc25e69e95b04493ee02682005472255.tar.gz";
|
||||
sha256 = "14fazjqbc6sfsxycwadfhcymi37xg5wmrlvg3jb8d4mpbcdwfwz4";
|
||||
};
|
||||
|
||||
nmd = import nmdSrc {
|
||||
|
@ -92,32 +92,38 @@ let
|
|||
optionIdPrefix = "nix-darwin-opt-";
|
||||
};
|
||||
|
||||
docs = nmd.buildDocBookDocs {
|
||||
pathName = "home-manager";
|
||||
projectName = "Home Manager";
|
||||
modulesDocs = [{
|
||||
docBook = pkgs.linkFarm "hm-module-docs-for-nmd" {
|
||||
"nmd-result/home-manager-options.xml" = hmOptionsDocs.optionsDocBook;
|
||||
"nmd-result/nix-darwin-options.xml" =
|
||||
nixDarwinOptionsDocs.optionsDocBook;
|
||||
"nmd-result/nixos-options.xml" = nixosOptionsDocs.optionsDocBook;
|
||||
};
|
||||
}];
|
||||
documentsDirectory = ./.;
|
||||
documentType = "book";
|
||||
chunkToc = ''
|
||||
<toc>
|
||||
<d:tocentry xmlns:d="http://docbook.org/ns/docbook" linkend="book-home-manager-manual"><?dbhtml filename="index.html"?>
|
||||
<d:tocentry linkend="ch-options"><?dbhtml filename="options.html"?></d:tocentry>
|
||||
<d:tocentry linkend="ch-nixos-options"><?dbhtml filename="nixos-options.html"?></d:tocentry>
|
||||
<d:tocentry linkend="ch-nix-darwin-options"><?dbhtml filename="nix-darwin-options.html"?></d:tocentry>
|
||||
<d:tocentry linkend="ch-tools"><?dbhtml filename="tools.html"?></d:tocentry>
|
||||
<d:tocentry linkend="ch-release-notes"><?dbhtml filename="release-notes.html"?></d:tocentry>
|
||||
</d:tocentry>
|
||||
</toc>
|
||||
release-config = builtins.fromJSON (builtins.readFile ../release.json);
|
||||
revision = "release-${release-config.release}";
|
||||
# Generate the `man home-configuration.nix` package
|
||||
home-configuration-manual =
|
||||
pkgs.runCommand "home-configuration-reference-manpage" {
|
||||
nativeBuildInputs =
|
||||
[ pkgs.buildPackages.installShellFiles pkgs.nixos-render-docs ];
|
||||
allowedReferences = [ "out" ];
|
||||
} ''
|
||||
# Generate manpages.
|
||||
mkdir -p $out/share/man/man5
|
||||
mkdir -p $out/share/man/man1
|
||||
nixos-render-docs -j $NIX_BUILD_CORES options manpage \
|
||||
--revision ${revision} \
|
||||
--header ${./home-configuration-nix-header.5} \
|
||||
--footer ${./home-configuration-nix-footer.5} \
|
||||
${hmOptionsDocs.optionsJSON}/share/doc/nixos/options.json \
|
||||
$out/share/man/man5/home-configuration.nix.5
|
||||
cp ${./home-manager.1} $out/share/man/man1/home-manager.1
|
||||
'';
|
||||
# Generate the HTML manual pages
|
||||
home-manager-manual = pkgs.callPackage ./home-manager-manual.nix {
|
||||
nmd = nmdSrc;
|
||||
home-manager-options = {
|
||||
home-manager = hmOptionsDocs.optionsJSON;
|
||||
nixos = nixosOptionsDocs.optionsJSON;
|
||||
nix-darwin = nixDarwinOptionsDocs.optionsJSON;
|
||||
};
|
||||
|
||||
inherit revision;
|
||||
};
|
||||
html = home-manager-manual;
|
||||
htmlOpenTool = pkgs.callPackage ./html-open-tool.nix { } { inherit html; };
|
||||
in {
|
||||
inherit nmdSrc;
|
||||
|
||||
|
@ -138,9 +144,9 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
manPages = docs.manPages;
|
||||
manPages = home-configuration-manual;
|
||||
|
||||
manual = { inherit (docs) html htmlOpenTool; };
|
||||
manual = { inherit html htmlOpenTool; };
|
||||
|
||||
# Unstable, mainly for CI.
|
||||
jsonModuleMaintainers = pkgs.writeText "hm-module-maintainers.json" (let
|
||||
|
|
192
third_party/home-manager/docs/faq.adoc
vendored
192
third_party/home-manager/docs/faq.adoc
vendored
|
@ -1,192 +0,0 @@
|
|||
[[ch-faq]]
|
||||
== Frequently Asked Questions (FAQ)
|
||||
|
||||
=== Why is there a collision error when switching generation?
|
||||
|
||||
Home Manager currently installs packages into the user environment, precisely as if the packages were installed through `nix-env --install`. This means that you will get a collision error if your Home Manager configuration attempts to install a package that you already have installed manually, that is, packages that shows up when you run `nix-env --query`.
|
||||
|
||||
For example, imagine you have the `hello` package installed in your environment
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ nix-env --query
|
||||
hello-2.10
|
||||
----
|
||||
|
||||
and your Home Manager configuration contains
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
home.packages = [ pkgs.hello ];
|
||||
----
|
||||
|
||||
Then attempting to switch to this configuration will result in an error similar to
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ home-manager switch
|
||||
these derivations will be built:
|
||||
/nix/store/xg69wsnd1rp8xgs9qfsjal017nf0ldhm-home-manager-path.drv
|
||||
[…]
|
||||
Activating installPackages
|
||||
replacing old ‘home-manager-path’
|
||||
installing ‘home-manager-path’
|
||||
building path(s) ‘/nix/store/b5c0asjz9f06l52l9812w6k39ifr49jj-user-environment’
|
||||
Wide character in die at /nix/store/64jc9gd2rkbgdb4yjx3nrgc91bpjj5ky-buildenv.pl line 79.
|
||||
collision between ‘/nix/store/fmwa4axzghz11cnln5absh31nbhs9lq1-home-manager-path/bin/hello’ and ‘/nix/store/c2wyl8b9p4afivpcz8jplc9kis8rj36d-hello-2.10/bin/hello’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
|
||||
builder for ‘/nix/store/b37x3s7pzxbasfqhaca5dqbf3pjjw0ip-user-environment.drv’ failed with exit code 2
|
||||
error: build of ‘/nix/store/b37x3s7pzxbasfqhaca5dqbf3pjjw0ip-user-environment.drv’ failed
|
||||
----
|
||||
|
||||
The solution is typically to uninstall the package from the environment using `nix-env --uninstall` and reattempt the Home Manager generation switch.
|
||||
|
||||
You could also opt to unistall _all_ of the packages from your profile with `nix-env --uninstall '*'`.
|
||||
|
||||
=== Why are the session variables not set?
|
||||
:foreign-env: https://github.com/oh-my-fish/plugin-foreign-env
|
||||
|
||||
Home Manager is only able to set session variables automatically if it manages your Bash, Z shell, or fish shell configuration. To enable such management you use <<opt-programs.bash.enable>>, <<opt-programs.zsh.enable>>, or <<opt-programs.fish.enable>>.
|
||||
|
||||
If you don't want to let Home Manager manage your shell then you will have to manually source the `~/.nix-profile/etc/profile.d/hm-session-vars.sh` file in an appropriate way. In Bash and Z shell this can be done by adding
|
||||
|
||||
[source,bash]
|
||||
----
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
----
|
||||
|
||||
to your `.profile` and `.zshrc` files, respectively. The `hm-session-vars.sh` file should work in most Bourne-like shells. For fish shell, it is possible to source it using {foreign-env}[the foreign-env plugin]
|
||||
|
||||
[source,bash]
|
||||
----
|
||||
fenv source "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" > /dev/null
|
||||
----
|
||||
|
||||
=== How to set up a configuration for multiple users/machines?
|
||||
:post-your-homenix: https://www.reddit.com/r/NixOS/comments/9bb9h9/post_your_homemanager_homenix_file/
|
||||
|
||||
A typical way to prepare a repository of configurations for multiple logins and machines is to prepare one "top-level" file for each unique combination.
|
||||
|
||||
For example, if you have two machines, called "kronos" and "rhea" on which you want to configure your user "jane" then you could create the files
|
||||
|
||||
- `kronos-jane.nix`,
|
||||
- `rhea-jane.nix`, and
|
||||
- `common.nix`
|
||||
|
||||
in your repository.
|
||||
On the kronos and rhea machines you can then make
|
||||
`~jane/.config/home-manager/home.nix`
|
||||
be a symbolic link to the corresponding file in your configuration repository.
|
||||
|
||||
The `kronos-jane.nix` and `rhea-jane.nix` files follow the format
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [ ./common.nix ];
|
||||
|
||||
# Various options that are specific for this machine/user.
|
||||
}
|
||||
----
|
||||
|
||||
while the `common.nix` file contains configuration shared across the two logins. Of course, instead of just a single `common.nix` file you can have multiple ones, even one per program or service.
|
||||
|
||||
You can get some inspiration from the {post-your-homenix}[Post your home-manager home.nix file!] Reddit thread.
|
||||
|
||||
=== Why do I get an error message about `ca.desrt.dconf` or `dconf.service`?
|
||||
|
||||
You are most likely trying to configure something that uses dconf
|
||||
but the DBus session is not aware of the dconf service.
|
||||
The full error you might get is
|
||||
|
||||
----
|
||||
error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files
|
||||
----
|
||||
|
||||
or
|
||||
|
||||
----
|
||||
error: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit dconf.service not found.
|
||||
----
|
||||
|
||||
The solution on NixOS is to add
|
||||
|
||||
[source,nix]
|
||||
programs.dconf.enable = true;
|
||||
|
||||
to your system configuration.
|
||||
|
||||
=== How do I install packages from Nixpkgs unstable?
|
||||
|
||||
If you are using a stable version of Nixpkgs but would like to install some particular packages from Nixpkgs unstable – or some other channel – then you can import the unstable Nixpkgs and refer to its packages within your configuration. Something like
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
let
|
||||
|
||||
pkgsUnstable = import <nixpkgs-unstable> {};
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
home.packages = [
|
||||
pkgsUnstable.foo
|
||||
];
|
||||
|
||||
# …
|
||||
}
|
||||
----
|
||||
|
||||
should work provided you have a Nix channel called `nixpkgs-unstable`.
|
||||
|
||||
You can add the `nixpkgs-unstable` channel by running
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
|
||||
$ nix-channel --update
|
||||
----
|
||||
|
||||
Note, the package will not be affected by any package overrides, overlays, etc.
|
||||
|
||||
=== How do I override the package used by a module?
|
||||
:nixpkgs-overlays: https://nixos.org/nixpkgs/manual/#chap-overlays
|
||||
|
||||
By default Home Manager will install the package provided by your chosen `nixpkgs` channel but occasionally you might end up needing to change this package. This can typically be done in two ways.
|
||||
|
||||
1. If the module provides a `package` option, such as `programs.beets.package`, then this is the recommended way to perform the override. For example,
|
||||
+
|
||||
[source,nix]
|
||||
programs.beets.package = pkgs.beets.override { enableCheck = true; };
|
||||
|
||||
2. If no `package` option is available then you can typically override the relevant package using an {nixpkgs-overlays}[overlay].
|
||||
+
|
||||
For example, if you want to use the `programs.skim` module but use the `skim` package from Nixpkgs unstable, then a configuration like
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
let
|
||||
|
||||
pkgsUnstable = import <nixpkgs-unstable> {};
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
programs.skim.enable = true;
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
skim = pkgsUnstable.skim;
|
||||
})
|
||||
];
|
||||
|
||||
# …
|
||||
}
|
||||
----
|
||||
+
|
||||
should work OK.
|
8
third_party/home-manager/docs/highlight-style.css
vendored
Normal file
8
third_party/home-manager/docs/highlight-style.css
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
pre {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
pre code.hljs {
|
||||
border: none;
|
||||
margin: 0;
|
||||
}
|
3
third_party/home-manager/docs/home-configuration-nix-footer.5
vendored
Normal file
3
third_party/home-manager/docs/home-configuration-nix-footer.5
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
.SH "AUTHORS"
|
||||
.PP
|
||||
Home Manager contributors
|
17
third_party/home-manager/docs/home-configuration-nix-header.5
vendored
Normal file
17
third_party/home-manager/docs/home-configuration-nix-header.5
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
.TH "HOME-CONFIGURATION\&.NIX" "5" "01/01/1980" "Home Manager"
|
||||
.\" disable hyphenation
|
||||
.nh
|
||||
.\" disable justification (adjust text to left margin only)
|
||||
.ad l
|
||||
.\" enable line breaks after slashes
|
||||
.cflags 4 /
|
||||
.SH "NAME"
|
||||
\fIhome\-configuration\&.nix\fP \- Home Manager configuration specification
|
||||
.SH "DESCRIPTION"
|
||||
.sp
|
||||
The file ~/\&.config/home\-manager/home\&.nix contains the declarative specification of your Home Manager configuration\&. The command \fBhome\-manager\fR takes this file and realises the user environment configuration specified therein\&.
|
||||
.SH "OPTIONS"
|
||||
.PP
|
||||
You can use the following options in
|
||||
home\-configuration\&.nix:
|
||||
.PP
|
66
third_party/home-manager/docs/home-manager-manual.nix
vendored
Normal file
66
third_party/home-manager/docs/home-manager-manual.nix
vendored
Normal file
|
@ -0,0 +1,66 @@
|
|||
{ stdenv, lib, documentation-highlighter, nmd, revision, home-manager-options
|
||||
, nixos-render-docs }:
|
||||
let outputPath = "share/doc/home-manager";
|
||||
in stdenv.mkDerivation {
|
||||
name = "home-manager-manual";
|
||||
|
||||
nativeBuildInputs = [ nixos-render-docs ];
|
||||
|
||||
src = ./manual;
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p out/media
|
||||
|
||||
mkdir -p out/highlightjs
|
||||
cp -t out/highlightjs \
|
||||
${documentation-highlighter}/highlight.pack.js \
|
||||
${documentation-highlighter}/LICENSE \
|
||||
${documentation-highlighter}/mono-blue.css \
|
||||
${documentation-highlighter}/loader.js
|
||||
|
||||
substituteInPlace ./options.md \
|
||||
--replace \
|
||||
'@OPTIONS_JSON@' \
|
||||
${home-manager-options.home-manager}/share/doc/nixos/options.json
|
||||
|
||||
substituteInPlace ./nixos-options.md \
|
||||
--replace \
|
||||
'@OPTIONS_JSON@' \
|
||||
${home-manager-options.nixos}/share/doc/nixos/options.json
|
||||
|
||||
substituteInPlace ./nix-darwin-options.md \
|
||||
--replace \
|
||||
'@OPTIONS_JSON@' \
|
||||
${home-manager-options.nix-darwin}/share/doc/nixos/options.json
|
||||
|
||||
cp ${nmd}/static/style.css out/style.css
|
||||
cp -t out/highlightjs ${nmd}/static/highlightjs/tomorrow-night.min.css
|
||||
cp ${./highlight-style.css} out/highlightjs/highlight-style.css
|
||||
|
||||
cp -r ${./release-notes} release-notes
|
||||
|
||||
nixos-render-docs manual html \
|
||||
--manpage-urls ./manpage-urls.json \
|
||||
--revision ${lib.trivial.revisionWithDefault revision} \
|
||||
--stylesheet style.css \
|
||||
--stylesheet highlightjs/tomorrow-night.min.css \
|
||||
--stylesheet highlightjs/highlight-style.css \
|
||||
--script highlightjs/highlight.pack.js \
|
||||
--script highlightjs/loader.js \
|
||||
--toc-depth 1 \
|
||||
--section-toc-depth 1 \
|
||||
manual.md \
|
||||
out/index.xhtml
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
dest="$out/${outputPath}"
|
||||
mkdir -p "$(dirname "$dest")"
|
||||
mv out "$dest"
|
||||
|
||||
mkdir -p $out/nix-support/
|
||||
echo "doc manual $dest index.html" >> $out/nix-support/hydra-build-products
|
||||
'';
|
||||
|
||||
meta = { maintainers = [ lib.maintainers.considerate ]; };
|
||||
}
|
400
third_party/home-manager/docs/home-manager.1
vendored
Normal file
400
third_party/home-manager/docs/home-manager.1
vendored
Normal file
|
@ -0,0 +1,400 @@
|
|||
.Dd January 1, 1980
|
||||
.Dt home-manager 1
|
||||
.Os Home Manager
|
||||
.\" disable hyphenation
|
||||
.nh
|
||||
.\" disable justification (adjust text to left margin only)
|
||||
.ad l
|
||||
.\" enable line breaks after slashes
|
||||
.cflags 4 /
|
||||
.Sh NAME
|
||||
.Nm home-manager
|
||||
.Nd reconfigure a user environment
|
||||
.
|
||||
.
|
||||
.
|
||||
.Sh SYNOPSIS
|
||||
.Nm home-manager
|
||||
.Bro
|
||||
.Cm build
|
||||
.Cm | init Op Fl -switch Ar dir
|
||||
.Cm | instantiate
|
||||
.Cm | edit
|
||||
.Cm | expire-generations Ar timestamp
|
||||
.Cm | generations
|
||||
.Cm | help
|
||||
.Cm | news
|
||||
.Cm | option Ar option.name
|
||||
.Cm | packages
|
||||
.Cm | remove-generations Ar ID \&...
|
||||
.Cm | uninstall
|
||||
.Brc
|
||||
.Op Fl A Ar attrPath
|
||||
.Op Fl I Ar path
|
||||
.Op Fl -flake Ar flake-uri
|
||||
.Op Fl b Ar ext
|
||||
.Op Bro Fl f | Fl -file Brc Ar path
|
||||
.Op Bro Fl h | Fl -help Brc
|
||||
.Op Fl -version
|
||||
.Op Bro Fl n | Fl -dry-run Brc
|
||||
.Op Fl -option Ar name Ar value
|
||||
.Op Fl -cores Ar number
|
||||
.Op Bro Fl j | Fl -max-jobs Brc Ar number
|
||||
.Op Fl -option
|
||||
.Op Fl -impure
|
||||
.Op Fl -keep-failed
|
||||
.Op Fl -keep-going
|
||||
.Op Bro Fl L | Fl -print-build-logs Brc
|
||||
.Op Fl -show-trace
|
||||
.Op Fl -(no-)substitute
|
||||
.Op Fl -no-out-link
|
||||
.Op Fl -refresh
|
||||
.Op Bro Fl v | Fl -verbose Brc
|
||||
.
|
||||
.Sh DESCRIPTION
|
||||
.Pp
|
||||
This command updates the user environment so that it corresponds to the configuration specified in
|
||||
$XDG_CONFIG_HOME/home-manager/home.nix
|
||||
or
|
||||
$XDG_CONFIG_HOME/home-manager/flake.nix.
|
||||
.Pp
|
||||
All operations using this tool expects a sub-command that indicates the operation to perform. It must be one of
|
||||
.Pp
|
||||
.Bl -tag -width Ds
|
||||
|
||||
.It Cm build
|
||||
.RS 4
|
||||
Build configuration into a result directory.
|
||||
.RE
|
||||
|
||||
.It Cm init Op Fl -switch Op Ar dir
|
||||
.RS 14
|
||||
Generates an initial home.nix file for the current user. If Nix flakes are
|
||||
enabled, then this command also generates a flake.nix file.
|
||||
.sp
|
||||
If a path
|
||||
.Ar dir
|
||||
is given then the configuration will be generated in that directory. Otherwise, the configuration will be generated in
|
||||
~/.config/home-manager. The output directory will be created if it does not exist.
|
||||
.sp
|
||||
If the
|
||||
.Fl -switch
|
||||
option is given, then the generated configuration is activated.
|
||||
.sp
|
||||
Note, this command will not overwrite any existing files. It is therefore safe to initialize a configuration, edit it, and then re-run the
|
||||
.Cm init
|
||||
command with
|
||||
.Fl -switch
|
||||
enabled to activate the configuration.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm instantiate
|
||||
.RS 15
|
||||
Instantiate the configuration and print the resulting derivation\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm edit
|
||||
.RS 16
|
||||
Open the home configuration using the editor indicated by \fBEDITOR\fR\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm expire-generations Ar timestamp
|
||||
.RS 4
|
||||
Remove generations older than
|
||||
.Ar timestamp
|
||||
where
|
||||
.Ar timestamp
|
||||
is interpreted as in the
|
||||
.Fl d
|
||||
argument of the
|
||||
\fBdate\fR(1)
|
||||
tool. For example
|
||||
-30 days or 2018-01-01.
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.It Cm generations
|
||||
.RS 4
|
||||
List all home environment generations\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm help
|
||||
.RS 4
|
||||
Print tool help.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm news
|
||||
.RS 4
|
||||
Show news entries in a pager.
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.It Cm option Ar option.name
|
||||
.RS 4
|
||||
Inspect the given option name in the home configuration, like
|
||||
\fBnixos-option\fR(8)\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm packages
|
||||
.RS 4
|
||||
List all packages installed in home-manager-path.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm remove-generations Ar ID \&...
|
||||
.RS 4
|
||||
Remove indicated generations. Use the
|
||||
.Cm generations
|
||||
sub-command to find suitable generation numbers.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm switch
|
||||
.RS 4
|
||||
Build and activate the configuration\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm uninstall
|
||||
.RS 4
|
||||
Remove Home Manager from the user environment\&. This will
|
||||
.sp
|
||||
.RE
|
||||
.RS 4
|
||||
.Bl -bullet
|
||||
.It
|
||||
remove all managed files from the home directory,
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.It
|
||||
remove packages installed through Home Manager from the user profile, and
|
||||
.RE
|
||||
.sp
|
||||
.RS 4
|
||||
.It
|
||||
remove all Home Manager generations and make them available for immediate garbage collection\&.
|
||||
.RE
|
||||
.El
|
||||
.sp
|
||||
.RE
|
||||
.El
|
||||
.
|
||||
.Sh OPTIONS
|
||||
.Pp
|
||||
The tool accepts the options
|
||||
.Pp
|
||||
.Bl -tag -width Ds
|
||||
.It Cm Fl A Ar attrPath
|
||||
.RS 4
|
||||
Optional attribute that selects a configuration expression in the configuration file. That is, if
|
||||
home.nix contains
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
{
|
||||
joe\-at\-work = {pkgs, \&.\&.\&.}: { home\&.packages = [ pkgs\&.fortune ]; };
|
||||
joe\-at\-home = {pkgs, \&.\&.\&.}: { home\&.packages = [ pkgs\&.cowsay ]; };
|
||||
}
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
then the command
|
||||
\fBhome\-manager switch \-A joe\-at\-work\fR
|
||||
will activate the profile containing the fortune program\&.
|
||||
.RE
|
||||
.PP
|
||||
.It Cm Fl I Ar path
|
||||
.RS 4
|
||||
Add a path to the Nix expression search path. For example, to build a Home Manager profile using a specific Nixpkgs run
|
||||
.Cm home-manager Fl I Ar nixpkgs=/absolute/path/to/nixpkgs build.
|
||||
By default
|
||||
.Ar <nixpkgs>
|
||||
is used.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl -flake Ar flake-uri[#name]
|
||||
.RS 4
|
||||
Build Home Manager configuration from the flake, which must contain the output homeConfigurations.name. If no name is specified it will first try username@hostname and then username.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl b Ar extension
|
||||
.RS 4
|
||||
Enable automatic resolution of collisions between unmanaged and managed files\&. The name of the original file will be suffixed by the given extension\&. For example,
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
$ \fBhome\-manager \-b bck switch\fR
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
will cause a colliding file
|
||||
~/\&.config/foo\&.conf
|
||||
to be moved to
|
||||
~/\&.config/foo\&.conf\&.bck\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl f Ar path, Fl -file Ar path
|
||||
.RS 4
|
||||
Indicates the path to the Home Manager configuration file. If not given,
|
||||
$XDG_CONFIG_HOME/home-manager/home.nix
|
||||
is used.
|
||||
.RE
|
||||
.Pp
|
||||
.It Cm Fl h, Fl -help
|
||||
.RS 4
|
||||
Prints usage information for the
|
||||
\fBhome\-manager\fR
|
||||
tool.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl -version
|
||||
.RS 4
|
||||
Prints the version number of the
|
||||
\fBhome\-manager\fR
|
||||
tool.
|
||||
.RE
|
||||
.Pp
|
||||
.It Cm Fl n, Fl -dry-run
|
||||
.RS 4
|
||||
Perform a dry-run of the given operation, only prints what actions would be taken.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl -option Ar name Ar value
|
||||
.RS 4
|
||||
Passed on to
|
||||
\fBnix-build\fR(1)\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl -cores Ar number
|
||||
.RS 4
|
||||
Passed on to
|
||||
\fBnix-build\fR(1)\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl j Ar number, Fl -max-jobs Ar number
|
||||
.RS 4
|
||||
Passed on to
|
||||
\fBnix-build\fR(1)\&.
|
||||
.RE
|
||||
.\" TODO
|
||||
.Pp
|
||||
.It Cm Fl -debug
|
||||
.RS 4
|
||||
Passed on to
|
||||
\fBnix-build\fR(1)\&.
|
||||
.RE
|
||||
.Pp
|
||||
.It Cm Fl -impure
|
||||
.RS 4
|
||||
Passed on to
|
||||
\fBnix-build\fR(1)\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl -keep-failed
|
||||
.RS 4
|
||||
Passed on to
|
||||
\fBnix-build\fR(1)\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl -keep-going
|
||||
.RS 4
|
||||
Passed on to
|
||||
\fBnix-build\fR(1)\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl L, Fl -print-build-logs
|
||||
.RS 4
|
||||
Passed on to
|
||||
\fBnix build\fR()
|
||||
when building from a flake\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl -show-trace
|
||||
.RS 4
|
||||
Passed on to
|
||||
\fBnix-build\fR(1)\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl -(no-)substitute
|
||||
.RS 4
|
||||
Passed on to
|
||||
\fBnix-build\fR(1)\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl -no-out-link
|
||||
.RS 4
|
||||
Passed on to
|
||||
\fBnix-build\fR(1)
|
||||
when running
|
||||
\fBhome\-manager build\fR\&.
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl -refresh
|
||||
.RS 4
|
||||
Passed on to
|
||||
\fBnix-build\fR(1)
|
||||
.RE
|
||||
.Pp
|
||||
|
||||
.It Cm Fl v, Fl -verbose
|
||||
.RS 4
|
||||
Activates verbose output\&.
|
||||
.RE
|
||||
.El
|
||||
|
||||
.Sh FILES
|
||||
.Pp
|
||||
$XDG_DATA_HOME/home\-manager/news\-read\-ids
|
||||
.RS 4
|
||||
Identifiers of news items that have been shown\&. Can be deleted to reset the read news indicator\&.
|
||||
.RE
|
||||
|
||||
.Sh BUGS
|
||||
.Pp
|
||||
Please report any bugs on the
|
||||
\m[blue]\fBproject issue tracker\fR\m[]\&.
|
||||
|
||||
.Sh SEE ALSO
|
||||
.Pp
|
||||
\fBhome-configuration.nix\fR(5)
|
||||
|
||||
.Sh AUTHOR
|
||||
.Pp
|
||||
\fBHome Manager contributors\fR
|
||||
.RS 4
|
||||
Author.
|
||||
.RE
|
||||
|
||||
.Sh COPYRIGHT
|
||||
.br
|
||||
Copyright \(co 2017\(en2022 Home Manager contributors
|
||||
.br
|
36
third_party/home-manager/docs/html-open-tool.nix
vendored
Normal file
36
third_party/home-manager/docs/html-open-tool.nix
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ writeShellScriptBin, makeDesktopItem, symlinkJoin }:
|
||||
{ html, pathName ? "home-manager", projectName ? pathName
|
||||
, name ? "${pathName}-help" }:
|
||||
let
|
||||
helpScript = writeShellScriptBin name ''
|
||||
set -euo pipefail
|
||||
|
||||
if [[ ! -v BROWSER || -z $BROWSER ]]; then
|
||||
for candidate in xdg-open open w3m; do
|
||||
BROWSER="$(type -P $candidate || true)"
|
||||
if [[ -x $BROWSER ]]; then
|
||||
break;
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [[ ! -v BROWSER || -z $BROWSER ]]; then
|
||||
echo "$0: unable to start a web browser; please set \$BROWSER"
|
||||
exit 1
|
||||
else
|
||||
exec "$BROWSER" "${html}/share/doc/${pathName}/index.xhtml"
|
||||
fi
|
||||
'';
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "${pathName}-manual";
|
||||
desktopName = "${projectName} Manual";
|
||||
genericName = "View ${projectName} documentation in a web browser";
|
||||
icon = "nix-snowflake";
|
||||
exec = "${helpScript}/bin/${name}";
|
||||
categories = [ "System" ];
|
||||
};
|
||||
in symlinkJoin {
|
||||
inherit name;
|
||||
paths = [ helpScript desktopItem ];
|
||||
}
|
347
third_party/home-manager/docs/installation.adoc
vendored
347
third_party/home-manager/docs/installation.adoc
vendored
|
@ -1,347 +0,0 @@
|
|||
[[ch-installation]]
|
||||
== Installing Home Manager
|
||||
|
||||
:nix-darwin: https://github.com/LnL7/nix-darwin/
|
||||
:nixos-wiki-flakes: https://nixos.wiki/wiki/Flakes
|
||||
|
||||
Home Manager can be used in three primary ways:
|
||||
|
||||
1. Using the standalone `home-manager` tool. For platforms other than
|
||||
NixOS and Darwin, this is the only available choice. It is also
|
||||
recommended for people on NixOS or Darwin that want to manage their
|
||||
home directory independently of the system as a whole. See
|
||||
<<sec-install-standalone>> for instructions on how to perform this
|
||||
installation.
|
||||
|
||||
2. As a module within a NixOS system configuration. This allows the
|
||||
user profiles to be built together with the system when running
|
||||
`nixos-rebuild`. See <<sec-install-nixos-module>> for a description of
|
||||
this setup.
|
||||
|
||||
3. As a module within a {nix-darwin}[nix-darwin] system configuration.
|
||||
This allows the user profiles to be built together with the system
|
||||
when running `darwin-rebuild`. See <<sec-install-nix-darwin-module>>
|
||||
for a description of this setup.
|
||||
|
||||
[NOTE]
|
||||
In this chapter we describe how to install Home Manager in the
|
||||
standard way using channels. If you prefer to use
|
||||
{nixos-wiki-flakes}[Nix Flakes] then please see the instructions in
|
||||
<<ch-nix-flakes>>.
|
||||
|
||||
[[sec-install-standalone]]
|
||||
=== Standalone installation
|
||||
|
||||
:nix-allowed-users: https://nixos.org/nix/manual/#conf-allowed-users
|
||||
:nixos-allowed-users: https://nixos.org/manual/nixos/stable/options.html#opt-nix.settings.allowed-users
|
||||
:bash: https://www.gnu.org/software/bash/
|
||||
:zsh: http://zsh.sourceforge.net/
|
||||
:fish: https://fishshell.com
|
||||
:plugin-foreign-env: https://github.com/oh-my-fish/plugin-foreign-env
|
||||
:babelfish: https://github.com/bouk/babelfish
|
||||
|
||||
1. Make sure you have a working Nix installation. Specifically, make
|
||||
sure that your user is able to build and install Nix packages. For
|
||||
example, you should be able to successfully run a command like
|
||||
`nix-instantiate '<nixpkgs>' -A hello` without having to switch to the
|
||||
root user. For a multi-user install of Nix this means that your user
|
||||
must be covered by the {nix-allowed-users}[`allowed-users`] Nix
|
||||
option. On NixOS you can control this option using the
|
||||
{nixos-allowed-users}[`nix.settings.allowed-users`] system option.
|
||||
|
||||
2. Add the appropriate Home Manager channel. If you are following
|
||||
Nixpkgs master or an unstable channel you can run
|
||||
+
|
||||
[source,console]
|
||||
----
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
----
|
||||
+
|
||||
and if you follow a Nixpkgs version 23.05 channel you can run
|
||||
+
|
||||
[source,console]
|
||||
----
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
----
|
||||
|
||||
3. Run the Home Manager installation command and create the first Home
|
||||
Manager generation:
|
||||
+
|
||||
[source,console]
|
||||
$ nix-shell '<home-manager>' -A install
|
||||
+
|
||||
Once finished, Home Manager should be active and available in your
|
||||
user environment.
|
||||
|
||||
4. If you do not plan on having Home Manager manage your shell
|
||||
configuration then you must source the
|
||||
+
|
||||
[source,bash]
|
||||
$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||
+
|
||||
file in your shell configuration. Alternatively source
|
||||
+
|
||||
[source,bash]
|
||||
/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh
|
||||
+
|
||||
when managing home configuration together with system configuration.
|
||||
+
|
||||
This file can be sourced directly by POSIX.2-like shells such as
|
||||
{bash}[Bash] or {zsh}[Z shell]. {fish}[Fish] users can use utilities
|
||||
such as {plugin-foreign-env}[foreign-env] or {babelfish}[babelfish].
|
||||
+
|
||||
For example, if you use Bash then add
|
||||
+
|
||||
[source,bash]
|
||||
----
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
----
|
||||
+
|
||||
to your `~/.profile` file.
|
||||
|
||||
If instead of using channels you want to run Home Manager from a Git
|
||||
checkout of the repository then you can use the
|
||||
<<opt-programs.home-manager.path>> option to specify the absolute path
|
||||
to the repository.
|
||||
|
||||
Once installed you can see <<ch-usage>> for a more detailed
|
||||
description of Home Manager and how to use it.
|
||||
|
||||
[[sec-install-nixos-module]]
|
||||
=== NixOS module
|
||||
|
||||
Home Manager provides a NixOS module that allows you to prepare user
|
||||
environments directly from the system configuration file, which often
|
||||
is more convenient than using the `home-manager` tool. It also opens
|
||||
up additional possibilities, for example, to automatically configure
|
||||
user environments in NixOS declarative containers or on systems
|
||||
deployed through NixOps.
|
||||
|
||||
To make the NixOS module available for use you must `import` it into
|
||||
your system configuration. This is most conveniently done by adding a
|
||||
Home Manager channel to the root user. For example, if you are
|
||||
following Nixpkgs master or an unstable channel, you can run
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||
$ sudo nix-channel --update
|
||||
----
|
||||
|
||||
and if you follow a Nixpkgs version 23.05 channel, you can run
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz home-manager
|
||||
$ sudo nix-channel --update
|
||||
----
|
||||
|
||||
It is then possible to add
|
||||
|
||||
[source,nix]
|
||||
imports = [ <home-manager/nixos> ];
|
||||
|
||||
to your system `configuration.nix` file, which will introduce a new
|
||||
NixOS option called `home-manager.users` whose type is an attribute
|
||||
set that maps user names to Home Manager configurations.
|
||||
|
||||
For example, a NixOS configuration may include the lines
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
users.users.eve.isNormalUser = true;
|
||||
home-manager.users.eve = { pkgs, ... }: {
|
||||
home.packages = [ pkgs.atool pkgs.httpie ];
|
||||
programs.bash.enable = true;
|
||||
};
|
||||
----
|
||||
|
||||
and after a `sudo nixos-rebuild switch` the user eve's environment should
|
||||
include a basic Bash configuration and the packages atool and httpie.
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
If `nixos-rebuild switch` does not result in the environment you expect,
|
||||
you can take a look at the output of the Home Manager activation script output using
|
||||
|
||||
[source,console]
|
||||
$ systemctl status "home-manager-$USER.service"
|
||||
====
|
||||
|
||||
If you do not plan on having Home Manager manage your shell
|
||||
configuration then you must add either
|
||||
|
||||
[source,bash]
|
||||
----
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
----
|
||||
|
||||
or
|
||||
|
||||
[source,bash]
|
||||
----
|
||||
. "/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh"
|
||||
----
|
||||
|
||||
to your shell configuration, depending on whether
|
||||
<<nixos-opt-home-manager.useUserPackages>> is enabled. This file can
|
||||
be sourced directly by POSIX.2-like shells such as {bash}[Bash] or
|
||||
{zsh}[Z shell]. {fish}[Fish] users can use utilities such as
|
||||
{plugin-foreign-env}[foreign-env] or {babelfish}[babelfish].
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
By default packages will be installed to `$HOME/.nix-profile` but they
|
||||
can be installed to `/etc/profiles` if
|
||||
|
||||
[source,nix]
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
is added to the system configuration. This is necessary if, for
|
||||
example, you wish to use `nixos-rebuild build-vm`. This option may
|
||||
become the default value in the future.
|
||||
====
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
By default, Home Manager uses a private `pkgs` instance that is
|
||||
configured via the `home-manager.users.<name>.nixpkgs` options. To
|
||||
instead use the global `pkgs` that is configured via the system level
|
||||
`nixpkgs` options, set
|
||||
|
||||
[source,nix]
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
This saves an extra Nixpkgs evaluation, adds consistency, and removes
|
||||
the dependency on `NIX_PATH`, which is otherwise used for importing
|
||||
Nixpkgs.
|
||||
====
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
Home Manager will pass `osConfig` as a module argument to any modules
|
||||
you create. This contains the system's NixOS configuration.
|
||||
|
||||
[source,nix]
|
||||
{ lib, pkgs, osConfig, ... }:
|
||||
====
|
||||
|
||||
Once installed you can see <<ch-usage>> for a more detailed
|
||||
description of Home Manager and how to use it.
|
||||
|
||||
[[sec-install-nix-darwin-module]]
|
||||
=== nix-darwin module
|
||||
|
||||
Home Manager provides a module that allows you to prepare user
|
||||
environments directly from the {nix-darwin}[nix-darwin] configuration
|
||||
file, which often is more convenient than using the `home-manager`
|
||||
tool.
|
||||
|
||||
To make the NixOS module available for use you must `import` it into
|
||||
your system configuration. This is most conveniently done by adding a
|
||||
Home Manager channel. For example, if you are following Nixpkgs master
|
||||
or an unstable channel, you can run
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
----
|
||||
|
||||
and if you follow a Nixpkgs version 23.05 channel, you can run
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
----
|
||||
|
||||
It is then possible to add
|
||||
|
||||
[source,nix]
|
||||
imports = [ <home-manager/nix-darwin> ];
|
||||
|
||||
to your nix-darwin `configuration.nix` file, which will introduce a
|
||||
new NixOS option called `home-manager` whose type is an attribute set
|
||||
that maps user names to Home Manager configurations.
|
||||
|
||||
For example, a nix-darwin configuration may include the lines
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
users.users.eve = {
|
||||
name = "eve";
|
||||
home = "/Users/eve";
|
||||
}
|
||||
home-manager.users.eve = { pkgs, ... }: {
|
||||
home.packages = [ pkgs.atool pkgs.httpie ];
|
||||
programs.bash.enable = true;
|
||||
};
|
||||
----
|
||||
|
||||
and after a `darwin-rebuild switch` the user eve's environment
|
||||
should include a basic Bash configuration and the packages atool and
|
||||
httpie.
|
||||
|
||||
If you do not plan on having Home Manager manage your shell
|
||||
configuration then you must add either
|
||||
|
||||
[source,bash]
|
||||
----
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
----
|
||||
|
||||
or
|
||||
|
||||
[source,bash]
|
||||
----
|
||||
. "/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh"
|
||||
----
|
||||
|
||||
to your shell configuration, depending on whether
|
||||
<<nix-darwin-opt-home-manager.useUserPackages>> is enabled. This file
|
||||
can be sourced directly by POSIX.2-like shells such as {bash}[Bash] or
|
||||
{zsh}[Z shell]. {fish}[Fish] users can use utilities such as
|
||||
{plugin-foreign-env}[foreign-env] or {babelfish}[babelfish].
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
By default user packages will not be ignored in favor of
|
||||
`environment.systemPackages`, but they will be installed to
|
||||
`/etc/profiles/per-user/$USERNAME` if
|
||||
|
||||
[source,nix]
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
is added to the nix-darwin configuration. This option may become the
|
||||
default value in the future.
|
||||
====
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
By default, Home Manager uses a private `pkgs` instance that is
|
||||
configured via the `home-manager.users.<name>.nixpkgs` options. To
|
||||
instead use the global `pkgs` that is configured via the system level
|
||||
`nixpkgs` options, set
|
||||
|
||||
[source,nix]
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
This saves an extra Nixpkgs evaluation, adds consistency, and removes
|
||||
the dependency on `NIX_PATH`, which is otherwise used for importing
|
||||
Nixpkgs.
|
||||
====
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
Home Manager will pass `osConfig` as a module argument to any modules
|
||||
you create. This contains the system's nix-darwin configuration.
|
||||
|
||||
[source,nix]
|
||||
{ lib, pkgs, osConfig, ... }:
|
||||
====
|
||||
|
||||
Once installed you can see <<ch-usage>> for a more detailed
|
||||
description of Home Manager and how to use it.
|
|
@ -1,40 +0,0 @@
|
|||
<refentry xmlns="http://docbook.org/ns/docbook"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<refmeta>
|
||||
<refentrytitle><filename>home-configuration.nix</filename></refentrytitle>
|
||||
<manvolnum>5</manvolnum>
|
||||
<refmiscinfo class="source">Home Manager</refmiscinfo>
|
||||
<!-- <refmiscinfo class="version"><xi:include href="version.txt" parse="text"/></refmiscinfo> -->
|
||||
</refmeta>
|
||||
<refnamediv>
|
||||
<refname><filename>home-configuration.nix</filename></refname>
|
||||
<refpurpose>Home Manager configuration specification</refpurpose>
|
||||
</refnamediv>
|
||||
<refsection>
|
||||
<title>Description</title>
|
||||
<simpara>
|
||||
The file <filename>~/.config/home-manager/home.nix</filename> contains the
|
||||
declarative specification of your Home Manager configuration. The command
|
||||
<command>home-manager</command> takes this file and realises the user
|
||||
environment configuration specified therein.
|
||||
</simpara>
|
||||
</refsection>
|
||||
<refsection>
|
||||
<title>Options</title>
|
||||
<para>
|
||||
You can use the following options in
|
||||
<filename>home-configuration.nix</filename>:
|
||||
</para>
|
||||
<xi:include href="./nmd-result/home-manager-options.xml" xpointer="home-manager-options" />
|
||||
</refsection>
|
||||
<refsection>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<citerefentry>
|
||||
<refentrytitle>home-manager</refentrytitle>
|
||||
<manvolnum>1</manvolnum>
|
||||
</citerefentry>
|
||||
</para>
|
||||
</refsection>
|
||||
</refentry>
|
713
third_party/home-manager/docs/man-home-manager.xml
vendored
713
third_party/home-manager/docs/man-home-manager.xml
vendored
|
@ -1,713 +0,0 @@
|
|||
<refentry xmlns="http://docbook.org/ns/docbook"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<refmeta>
|
||||
<refentrytitle><command>home-manager</command>
|
||||
</refentrytitle><manvolnum>1</manvolnum>
|
||||
<refmiscinfo class="source">Home Manager</refmiscinfo>
|
||||
</refmeta>
|
||||
<refnamediv>
|
||||
<refname><command>home-manager</command>
|
||||
</refname><refpurpose>reconfigure a user environment</refpurpose>
|
||||
</refnamediv>
|
||||
<refsynopsisdiv>
|
||||
<cmdsynopsis>
|
||||
<command>home-manager</command> <group choice="req">
|
||||
<arg choice="plain">
|
||||
build
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
init <arg>--switch</arg> <arg><replaceable>dir</replaceable></arg>
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
instantiate
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
edit
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
expire-generations <replaceable>timestamp</replaceable>
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
generations
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
help
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
news
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
option <replaceable>option.name</replaceable>
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
packages
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
remove-generations <replaceable>ID …</replaceable>
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
switch
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
uninstall
|
||||
</arg>
|
||||
</group>
|
||||
<sbr />
|
||||
<arg>
|
||||
-A <replaceable>attrPath</replaceable>
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
-I <replaceable>path</replaceable>
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--flake <replaceable>flake-uri</replaceable>
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
-b <replaceable>ext</replaceable>
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
<group choice="req">
|
||||
<arg choice="plain">
|
||||
-f
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
--file
|
||||
</arg>
|
||||
</group> <replaceable>path</replaceable>
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
<group choice="req">
|
||||
<arg choice="plain">
|
||||
-h
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
--help
|
||||
</arg>
|
||||
</group>
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--version
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
<group choice="req">
|
||||
<arg choice="plain">
|
||||
-n
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
--dry-run
|
||||
</arg>
|
||||
</group>
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--option <replaceable>name</replaceable> <replaceable>value</replaceable>
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--cores <replaceable>number</replaceable>
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
<group choice="req">
|
||||
<arg choice="plain">
|
||||
-j
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
--max-jobs
|
||||
</arg>
|
||||
</group>
|
||||
<replaceable>number</replaceable>
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--debug
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--impure
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--keep-failed
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--keep-going
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
<group choice="req">
|
||||
<arg choice="plain">
|
||||
-L
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
--print-build-logs
|
||||
</arg>
|
||||
</group>
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--show-trace
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--(no-)substitute
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--no-out-link
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
--refresh
|
||||
</arg>
|
||||
|
||||
<arg>
|
||||
<group choice="req">
|
||||
<arg choice="plain">
|
||||
-v
|
||||
</arg>
|
||||
|
||||
<arg choice="plain">
|
||||
--verbose
|
||||
</arg>
|
||||
</group>
|
||||
</arg>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
<refsection>
|
||||
<title>Description</title>
|
||||
<para>
|
||||
This command updates the user environment so that it corresponds to the
|
||||
configuration specified in
|
||||
<filename>$XDG_CONFIG_HOME/home-manager/home.nix</filename> or
|
||||
<filename>$XDG_CONFIG_HOME/home-manager/flake.nix</filename>.
|
||||
</para>
|
||||
<para>
|
||||
All operations using this tool expects a sub-command that indicates the
|
||||
operation to perform. It must be one of
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>build</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Build configuration into a <filename>result</filename> directory.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>init</option> [<option>--switch</option>] [<replaceable>dir</replaceable>]
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Generates an initial <filename>home.nix</filename> file for the
|
||||
current user. If Nix flakes are enabled, then this command also
|
||||
generates a <filename>flake.nix</filename> file.
|
||||
</simpara>
|
||||
<simpara>
|
||||
If a path <replaceable>dir</replaceable> is given then the
|
||||
configuration will be generated in that directory. Otherwise, the
|
||||
configuration will be generated in
|
||||
<filename>~/.config/home-manager</filename>. The output directory will
|
||||
be created if it does not exist.
|
||||
</simpara>
|
||||
<simpara>
|
||||
If the <option>--switch</option> option is given, then the generated
|
||||
configuration is activated.
|
||||
</simpara>
|
||||
<simpara>
|
||||
Note, this command will not overwrite any existing files. It is
|
||||
therefore safe to initialize a configuration, edit it, and then re-run
|
||||
the <option>init</option> command with <option>--switch</option>
|
||||
enabled to activate the configuration.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>instantiate</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Instantiate the configuration and print the resulting derivation.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>edit</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Open the home configuration using the editor indicated by
|
||||
<envar>EDITOR</envar>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>expire-generations <replaceable>timestamp</replaceable></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Remove generations older than <replaceable>timestamp</replaceable> where
|
||||
<replaceable>timestamp</replaceable> is interpreted as in the
|
||||
<option>-d</option> argument of the <citerefentry>
|
||||
<refentrytitle>date</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry> tool. For example <literal>-30
|
||||
days</literal> or <literal>2018-01-01</literal>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>generations</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
List all home environment generations.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>help</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Print tool help.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>news</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Show news entries in a pager.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>option <replaceable>option.name</replaceable></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Inspect the given option name in the home configuration, like <citerefentry>
|
||||
<refentrytitle>nixos-option</refentrytitle>
|
||||
<manvolnum>8</manvolnum> </citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>packages</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
List all packages installed in <varname>home-manager-path</varname>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>remove-generations <replaceable>ID …</replaceable></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Remove indicated generations. Use the <option>generations</option>
|
||||
sub-command to find suitable generation numbers.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>switch</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Build and activate the configuration.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>uninstall</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Remove Home Manager from the user environment. This will
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
remove all managed files from the home directory,
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
remove packages installed through Home Manager from the user profile,
|
||||
and
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
remove all Home Manager generations and make them available
|
||||
for immediate garbage collection.
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsection>
|
||||
<refsection>
|
||||
<title>Options</title>
|
||||
<para>
|
||||
The tool accepts the options
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-A <replaceable>attrPath</replaceable></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Optional attribute that selects a configuration expression in the
|
||||
configuration file. That is, if <filename>home.nix</filename> contains
|
||||
<programlisting language="nix">
|
||||
{
|
||||
joe-at-work = {pkgs, ...}: { home.packages = [ pkgs.fortune ]; };
|
||||
joe-at-home = {pkgs, ...}: { home.packages = [ pkgs.cowsay ]; };
|
||||
}
|
||||
</programlisting>
|
||||
then the command <command>home-manager switch -A joe-at-work</command>
|
||||
will activate the profile containing the fortune program.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-I <replaceable>path</replaceable></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Add a path to the Nix expression search path. For example, to build a
|
||||
Home Manager profile using a specific Nixpkgs run <command>home-manager
|
||||
-I nixpkgs=/absolute/path/to/nixpkgs build</command>. By default
|
||||
<literal><nixpkgs></literal> is used.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--flake <replaceable>flake-uri[#name]</replaceable></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Build Home Manager configuration from the flake, which must contain the
|
||||
output homeConfigurations.name. If no name is specified it will first try
|
||||
username@hostname and then username.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-b <replaceable>extension</replaceable></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Enable automatic resolution of collisions between unmanaged and managed
|
||||
files. The name of the original file will be suffixed by the given
|
||||
extension. For example,
|
||||
<screen>
|
||||
<prompt>$</prompt> <userinput>home-manager -b bck switch</userinput>
|
||||
</screen>
|
||||
will cause a colliding file <filename>~/.config/foo.conf</filename> to be
|
||||
moved to <filename>~/.config/foo.conf.bck</filename>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-f <replaceable>path</replaceable></option>
|
||||
</term>
|
||||
<term>
|
||||
<option>--file <replaceable>path</replaceable></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Indicates the path to the Home Manager configuration file. If not given,
|
||||
<filename>$XDG_CONFIG_HOME/home-manager/home.nix</filename> is used.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-h</option>
|
||||
</term>
|
||||
<term>
|
||||
<option>--help</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Prints usage information for the <command>home-manager</command> tool.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--version</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Prints the version number of the <command>home-manager</command> tool.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-n</option>
|
||||
</term>
|
||||
<term>
|
||||
<option>--dry-run</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Perform a dry-run of the given operation, only prints what actions would
|
||||
be taken.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--option <replaceable>name</replaceable> <replaceable>value</replaceable></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--cores <replaceable>number</replaceable></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-j <replaceable>number</replaceable></option>
|
||||
</term>
|
||||
<term>
|
||||
<option>--max-jobs <replaceable>number</replaceable></option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--debug</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--impure</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--keep-failed</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--keep-going</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-L</option>
|
||||
</term>
|
||||
<term>
|
||||
<option>--print-build-logs</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix build</refentrytitle>
|
||||
</citerefentry>
|
||||
when building from a flake.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--show-trace</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--(no-)substitute</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--no-out-link</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>
|
||||
when running <command>home-manager build</command>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--refresh</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Passed on to <citerefentry>
|
||||
<refentrytitle>nix-build</refentrytitle>
|
||||
<manvolnum>1</manvolnum> </citerefentry>
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>-v</option>
|
||||
</term>
|
||||
<term>
|
||||
<option>--verbose</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Activates verbose output.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsection>
|
||||
<refsection>
|
||||
<title>Files</title>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<filename>$XDG_DATA_HOME/home-manager/news-read-ids</filename>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Identifiers of news items that have been shown. Can be deleted to reset
|
||||
the read news indicator.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsection>
|
||||
<refsection>
|
||||
<title>Bugs</title>
|
||||
<para>
|
||||
Please report any bugs on the
|
||||
<link
|
||||
xlink:href="https://github.com/nix-community/home-manager/issues">project
|
||||
issue tracker</link>.
|
||||
</para>
|
||||
</refsection>
|
||||
<refsection>
|
||||
<title>See also</title>
|
||||
<para>
|
||||
<citerefentry>
|
||||
<refentrytitle>home-configuration.nix</refentrytitle>
|
||||
<manvolnum>5</manvolnum> </citerefentry>
|
||||
</para>
|
||||
</refsection>
|
||||
</refentry>
|
12
third_party/home-manager/docs/man-pages.xml
vendored
12
third_party/home-manager/docs/man-pages.xml
vendored
|
@ -1,12 +0,0 @@
|
|||
<reference xmlns="http://docbook.org/ns/docbook"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||
<title>Home Manager Reference Pages</title>
|
||||
<info>
|
||||
<author><personname>Home Manager contributors</personname></author>
|
||||
<copyright><year>2017–2022</year><holder>Home Manager contributors</holder>
|
||||
</copyright>
|
||||
</info>
|
||||
<xi:include href="man-configuration.xml" />
|
||||
<xi:include href="man-home-manager.xml" />
|
||||
</reference>
|
57
third_party/home-manager/docs/manual.xml
vendored
57
third_party/home-manager/docs/manual.xml
vendored
|
@ -1,57 +0,0 @@
|
|||
<book xmlns="http://docbook.org/ns/docbook"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
version="5.0"
|
||||
xml:id="book-home-manager-manual">
|
||||
<info>
|
||||
<title>Home Manager Manual</title>
|
||||
</info>
|
||||
<preface>
|
||||
<title>Preface</title>
|
||||
<para>
|
||||
This manual will eventually describe how to install, use, and extend Home
|
||||
Manager.
|
||||
</para>
|
||||
<para>
|
||||
If you encounter problems then please reach out on the IRC channel
|
||||
<link xlink:href="https://webchat.oftc.net/?channels=home-manager">#home-manager</link>
|
||||
hosted by <link xlink:href="https://oftc.net/">OFTC</link>.
|
||||
There is also a <link xlink:href="https://matrix.to/#/%23hm:rycee.net">Matrix room</link>,
|
||||
which is bridged to the IRC channel.
|
||||
If your problem is caused by a bug in Home Manager then it should
|
||||
be reported on the
|
||||
<link xlink:href="https://github.com/nix-community/home-manager/issues">Home Manager issue tracker</link>.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Commands prefixed with <literal>$ sudo</literal> have to be run as root, either
|
||||
requiring to login as root user or temporarily switching to it using
|
||||
<literal>sudo</literal> for example.
|
||||
</para>
|
||||
</note>
|
||||
</preface>
|
||||
<xi:include href="installation.xml" />
|
||||
<xi:include href="usage.xml" />
|
||||
<xi:include href="nix-flakes.xml" />
|
||||
<xi:include href="writing-modules.xml" />
|
||||
<xi:include href="contributing.xml" />
|
||||
<xi:include href="3rd-party.xml" />
|
||||
<xi:include href="faq.xml" />
|
||||
<appendix xml:id="ch-options">
|
||||
<title>Configuration Options</title>
|
||||
<xi:include href="./nmd-result/home-manager-options.xml" xpointer="home-manager-options" />
|
||||
</appendix>
|
||||
<appendix xml:id="ch-nixos-options">
|
||||
<title>NixOS Module Options</title>
|
||||
<xi:include href="./nmd-result/nixos-options.xml" xpointer="nixos-options" />
|
||||
</appendix>
|
||||
<appendix xml:id="ch-nix-darwin-options">
|
||||
<title>nix-darwin Module Options</title>
|
||||
<xi:include href="./nmd-result/nix-darwin-options.xml" xpointer="nix-darwin-options" />
|
||||
</appendix>
|
||||
<appendix xml:id="ch-tools">
|
||||
<title>Tools</title>
|
||||
<xi:include href="./man-home-manager.xml" />
|
||||
</appendix>
|
||||
<xi:include href="./release-notes/release-notes.xml" />
|
||||
</book>
|
14
third_party/home-manager/docs/manual/3rd-party.md
vendored
Normal file
14
third_party/home-manager/docs/manual/3rd-party.md
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Third-Party Tools and Extensions {#ch-3rd-party}
|
||||
|
||||
Here is a collection of tools and extensions that relate to Home
|
||||
Manager. Note, these are maintained outside the regular Home Manager
|
||||
flow so quality and support may vary wildly. If you encounter problems
|
||||
then please raise them in the corresponding project, not as issues in
|
||||
the Home Manager tracker.
|
||||
|
||||
If you have made something interesting related to Home Manager then you
|
||||
are encouraged to create a PR that expands this chapter.
|
||||
|
||||
```{=include=} sections
|
||||
3rd-party/collections.md
|
||||
```
|
11
third_party/home-manager/docs/manual/3rd-party/collections.md
vendored
Normal file
11
third_party/home-manager/docs/manual/3rd-party/collections.md
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Module Collections {#sec-3rd-party-module-collections}
|
||||
|
||||
- [xhmm --- extra Home Manager
|
||||
modules](https://github.com/schuelermine/xhmm)
|
||||
|
||||
A collection of modules maintained by Anselm Schüler.
|
||||
|
||||
- [Stylix --- System-wide colorscheming and
|
||||
typography](https://github.com/danth/stylix/)
|
||||
|
||||
Configure your applications to get coherent color scheme and font.
|
27
third_party/home-manager/docs/manual/contributing.md
vendored
Normal file
27
third_party/home-manager/docs/manual/contributing.md
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Contributing {#ch-contributing}
|
||||
|
||||
Contributions to Home Manager are very welcome. To make the process as
|
||||
smooth as possible for both you and the Home Manager maintainers we
|
||||
provide some guidelines that we ask you to follow. See [Getting
|
||||
started](#sec-contrib-getting-started) for information on how to set up
|
||||
a suitable development environment and [Guidelines](#sec-guidelines) for
|
||||
the actual guidelines.
|
||||
|
||||
This text is mainly directed at those who would like to make code
|
||||
contributions to Home Manager. If you just want to report a bug then
|
||||
first look among the already [open
|
||||
issues](https://github.com/nix-community/home-manager/issues), if you
|
||||
find one matching yours then feel free to comment on it to add any
|
||||
additional information you may have. If no matching issue exists then go
|
||||
to the [new
|
||||
issue](https://github.com/nix-community/home-manager/issues/new) page
|
||||
and write a description of your problem. Include as much information as
|
||||
you can, ideally also include relevant excerpts from your Home Manager
|
||||
configuration.
|
||||
|
||||
```{=include=} sections
|
||||
contributing/getting-started.md
|
||||
contributing/guidelines.md
|
||||
contributing/news.md
|
||||
contributing/tests.md
|
||||
```
|
43
third_party/home-manager/docs/manual/contributing/getting-started.md
vendored
Normal file
43
third_party/home-manager/docs/manual/contributing/getting-started.md
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
# Getting started {#sec-contrib-getting-started}
|
||||
|
||||
If you have not previously forked Home Manager then you need to do that
|
||||
first. Have a look at GitHub's [Fork a
|
||||
repo](https://help.github.com/articles/fork-a-repo/) for instructions on
|
||||
how to do this.
|
||||
|
||||
Once you have a fork of Home Manager you should create a branch starting
|
||||
at the most recent `master` branch. Give your branch a reasonably
|
||||
descriptive name. Commit your changes to this branch and when you are
|
||||
happy with the result and it fulfills [Guidelines](#sec-guidelines) then
|
||||
push the branch to GitHub and [create a pull
|
||||
request](https://help.github.com/articles/creating-a-pull-request/).
|
||||
|
||||
Assuming your clone is at `$HOME/devel/home-manager` then you can make
|
||||
the `home-manager` command use it by either
|
||||
|
||||
1. overriding the default path by using the `-I` command line option:
|
||||
|
||||
``` shell
|
||||
$ home-manager -I home-manager=$HOME/devel/home-manager
|
||||
```
|
||||
|
||||
or, if using [flakes](#sec-flakes-standalone):
|
||||
|
||||
``` shell
|
||||
$ home-manager --override-input home-manager ~/devel/home-manager
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
2. changing the default path by ensuring your configuration includes
|
||||
|
||||
``` nix
|
||||
programs.home-manager.enable = true;
|
||||
programs.home-manager.path = "$HOME/devel/home-manager";
|
||||
```
|
||||
|
||||
and running `home-manager switch` to activate the change.
|
||||
Afterwards, `home-manager build` and `home-manager switch` will use
|
||||
your cloned repository.
|
||||
|
||||
The first option is good if you only temporarily want to use your clone.
|
221
third_party/home-manager/docs/manual/contributing/guidelines.md
vendored
Normal file
221
third_party/home-manager/docs/manual/contributing/guidelines.md
vendored
Normal file
|
@ -0,0 +1,221 @@
|
|||
# Guidelines {#sec-guidelines}
|
||||
|
||||
If your contribution satisfy the following rules then there is a good
|
||||
chance it will be merged without too much trouble. The rules are
|
||||
enforced by the Home Manager maintainers and to a lesser extent the Home
|
||||
Manager CI system.
|
||||
|
||||
If you are uncertain how these rules affect the change you would like to
|
||||
make then feel free to start a discussion in the
|
||||
[#home-manager](https://webchat.oftc.net/?channels=home-manager) IRC
|
||||
channel, ideally before you start developing.
|
||||
|
||||
## Maintain backward compatibility {#sec-guidelines-back-compat}
|
||||
|
||||
Your contribution should not cause another user's existing configuration
|
||||
to break unless there is a very good reason and the change should be
|
||||
announced to the user through an
|
||||
[assertion](https://nixos.org/manual/nixos/stable/index.html#sec-assertions)
|
||||
or similar.
|
||||
|
||||
Remember that Home Manager is used in many different environments and
|
||||
you should consider how your change may effect others. For example,
|
||||
|
||||
- Does your change work for people that do not use NixOS? Consider
|
||||
other GNU/Linux distributions and macOS.
|
||||
|
||||
- Does your change work for people whose configuration is built on one
|
||||
system and deployed on another system?
|
||||
|
||||
## Keep forward compatibility in mind {#sec-guidelines-forward-compat}
|
||||
|
||||
The master branch of Home Manager tracks the unstable channel of
|
||||
Nixpkgs, which may update package versions at any time. It is therefore
|
||||
important to consider how a package update may affect your code and try
|
||||
to reduce the risk of breakage.
|
||||
|
||||
The most effective way to reduce this risk is to follow the advice in
|
||||
[Add only valuable options](#sec-guidelines-valuable-options).
|
||||
|
||||
## Add only valuable options {#sec-guidelines-valuable-options}
|
||||
|
||||
When creating a new module it is tempting to include every option
|
||||
supported by the software. This is *strongly* discouraged. Providing
|
||||
many options increases maintenance burden and risk of breakage
|
||||
considerably. This is why only the most [important software
|
||||
options](https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md#valuable-options)
|
||||
should be modeled explicitly. Less important options should be
|
||||
expressible through an `extraConfig` escape hatch.
|
||||
|
||||
A good rule of thumb for the first implementation of a module is to only
|
||||
add explicit options for those settings that absolutely must be set for
|
||||
the software to function correctly. It follows that a module for
|
||||
software that provides sensible default values for all settings would
|
||||
require no explicit options at all.
|
||||
|
||||
If the software uses a structured configuration format like a JSON,
|
||||
YAML, INI, TOML, or even a plain list of key/value pairs then consider
|
||||
using a `settings` option as described in [Nix RFC
|
||||
42](https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md).
|
||||
|
||||
## Add relevant tests {#sec-guidelines-add-tests}
|
||||
|
||||
If at all possible, make sure to add new tests and expand existing tests
|
||||
so that your change will keep working in the future. See
|
||||
[Tests](#sec-tests) for more information about the Home Manager test
|
||||
suite.
|
||||
|
||||
All contributed code *must* pass the test suite.
|
||||
|
||||
## Add relevant documentation {#sec-guidelines-module-maintainer}
|
||||
|
||||
Many code changes require changing the documentation as well. Module
|
||||
options should be documented with [Nixpkgs-flavoured
|
||||
Markdown](https://nixos.org/manual/nixpkgs/unstable/#sec-contributing-markup).
|
||||
Home Manager is itself documented using a combination of
|
||||
[DocBook](https://tdg.docbook.org/) and
|
||||
[AsciiDoc](https://asciidoc.org/). All text is hosted in Home Manager's
|
||||
Git repository.
|
||||
|
||||
The HTML version of the manual containing both the module option
|
||||
descriptions and the documentation of Home Manager can be generated and
|
||||
opened by typing the following in a shell within a clone of the Home
|
||||
Manager Git repository:
|
||||
|
||||
``` shell
|
||||
$ nix-build -A docs.html
|
||||
$ xdg-open ./result/share/doc/home-manager/index.html
|
||||
```
|
||||
|
||||
When you have made changes to a module, it is a good idea to check that
|
||||
the man page version of the module options looks good:
|
||||
|
||||
``` shell
|
||||
$ nix-build -A docs.manPages
|
||||
$ man ./result/share/man/man5/home-configuration.nix.5.gz
|
||||
```
|
||||
|
||||
## Add yourself as a module maintainer {#_add_yourself_as_a_module_maintainer}
|
||||
|
||||
Every new module *must* include a named maintainer using the
|
||||
`meta.maintainers` attribute. If you are a user of a module that
|
||||
currently lacks a maintainer then please consider adopting it.
|
||||
|
||||
If you are present in the nixpkgs maintainer list then you can use that
|
||||
entry. If you are not then you can add yourself to
|
||||
`modules/lib/maintainers.nix` in the Home Manager project.
|
||||
|
||||
Maintainers are encouraged to join the IRC or Matrix channel and
|
||||
participate when they have opportunity.
|
||||
|
||||
## Format your code {#sec-guidelines-code-style}
|
||||
|
||||
Make sure your code is formatted as described in [Code
|
||||
Style](#sec-code-style). To maintain consistency throughout the project
|
||||
you are encouraged to browse through existing code and adopt its style
|
||||
also in new code.
|
||||
|
||||
## Format your commit messages {#sec-guidelines-commit-message-style}
|
||||
|
||||
Similar to [Format your code](#sec-guidelines-code-style) we encourage a
|
||||
consistent commit message format as described in
|
||||
[Commits](#sec-commit-style).
|
||||
|
||||
## Format your news entries {#sec-guidelines-news-style}
|
||||
|
||||
If your contribution includes a change that should be communicated to
|
||||
users of Home Manager then you can add a news entry. The entry must be
|
||||
formatted as described in [News](#sec-news).
|
||||
|
||||
When new modules are added a news entry should be included but you do
|
||||
not need to create this entry manually. The merging maintainer will
|
||||
create the entry for you. This is to reduce the risk of merge conflicts.
|
||||
|
||||
## Use conditional modules and news {#sec-guidelines-conditional-modules}
|
||||
|
||||
Home Manager includes a number of modules that are only usable on some
|
||||
of the supported platforms. The most common example of platform specific
|
||||
modules are those that define systemd user services, which only works on
|
||||
Linux systems.
|
||||
|
||||
If you add a module that is platform specific then make sure to include
|
||||
a condition in the `loadModule` function call. This will make the module
|
||||
accessible only on systems where the condition evaluates to `true`.
|
||||
|
||||
Similarly, if you are adding a news entry then it should be shown only
|
||||
to users that may find it relevant, see [News](#sec-news) for a
|
||||
description of conditional news.
|
||||
|
||||
## Mind the license {#sec-guidelines-licensing}
|
||||
|
||||
The Home Manager project is covered by the MIT license and we can only
|
||||
accept contributions that fall under this license, or are licensed in a
|
||||
compatible way. When you contribute self written code and documentation
|
||||
it is assumed that you are doing so under the MIT license.
|
||||
|
||||
A potential gotcha with respect to licensing are option descriptions.
|
||||
Often it is convenient to copy from the upstream software documentation.
|
||||
When this is done it is important to verify that the license of the
|
||||
upstream documentation allows redistribution under the terms of the MIT
|
||||
license.
|
||||
|
||||
## Commits {#sec-commit-style}
|
||||
|
||||
The commits in your pull request should be reasonably self-contained,
|
||||
that is, each commit should make sense in isolation. In particular, you
|
||||
will be asked to amend any commit that introduces syntax errors or
|
||||
similar problems even if they are fixed in a later commit.
|
||||
|
||||
The commit messages should follow the [seven
|
||||
rules](https://chris.beams.io/posts/git-commit/#seven-rules), except for
|
||||
\"Capitalize the subject line\". We also ask you to include the affected
|
||||
code component or module in the first line. That is, a commit message
|
||||
should follow the template
|
||||
|
||||
{component}: {description}
|
||||
|
||||
{long description}
|
||||
|
||||
where `{component}` refers to the code component (or module) your change
|
||||
affects, `{description}` is a very brief description of your change, and
|
||||
`{long description}` is an optional clarifying description. As a rare
|
||||
exception, if there is no clear component, or your change affects many
|
||||
components, then the `{component}` part is optional. See
|
||||
[example_title](#ex-commit-message) for a commit message that fulfills
|
||||
these requirements.
|
||||
|
||||
## Example commit {#ex-commit-message}
|
||||
|
||||
The commit
|
||||
[69f8e47e9e74c8d3d060ca22e18246b7f7d988ef](https://github.com/nix-community/home-manager/commit/69f8e47e9e74c8d3d060ca22e18246b7f7d988ef)
|
||||
contains the commit message
|
||||
|
||||
```
|
||||
|
||||
starship: allow running in Emacs if vterm is used
|
||||
|
||||
The vterm buffer is backed by libvterm and can handle Starship prompts
|
||||
without issues.
|
||||
```
|
||||
|
||||
which ticks all the boxes necessary to be accepted in Home Manager.
|
||||
|
||||
Finally, when adding a new module, say `programs/foo.nix`, we use the
|
||||
fixed commit format `foo: add module`. You can, of course, still include
|
||||
a long description if you wish.
|
||||
|
||||
## Code Style {#sec-code-style}
|
||||
|
||||
The code in Home Manager is formatted by the
|
||||
[nixfmt](https://github.com/serokell/nixfmt/) tool and the formatting is
|
||||
checked in the pull request tests. Run the `format` tool inside the
|
||||
project repository before submitting your pull request.
|
||||
|
||||
Keep lines at a reasonable width, ideally 80 characters or less. This
|
||||
also applies to string literals.
|
||||
|
||||
We prefer `lowerCamelCase` for variable and attribute names with the
|
||||
accepted exception of variables directly referencing packages in Nixpkgs
|
||||
which use a hyphenated style. For example, the Home Manager option
|
||||
`services.gpg-agent.enableSshSupport` references the `gpg-agent` package
|
||||
in Nixpkgs.
|
57
third_party/home-manager/docs/manual/contributing/news.md
vendored
Normal file
57
third_party/home-manager/docs/manual/contributing/news.md
vendored
Normal file
|
@ -0,0 +1,57 @@
|
|||
# News {#sec-news}
|
||||
|
||||
Home Manager includes a system for presenting news to the user. When
|
||||
making a change you, therefore, have the option to also include an
|
||||
associated news entry. In general, a news entry should only be added for
|
||||
truly noteworthy news. For example, a bug fix or new option does
|
||||
generally not need a news entry.
|
||||
|
||||
If you do have a change worthy of a news entry then please add one in
|
||||
[`news.nix`](https://github.com/nix-community/home-manager/blob/master/modules/misc/news.nix)
|
||||
but you should follow some basic guidelines:
|
||||
|
||||
- The entry timestamp should be in ISO-8601 format having \"+00:00\"
|
||||
as time zone. For example, \"2017-09-13T17:10:14+00:00\". A suitable
|
||||
timestamp can be produced by the command
|
||||
|
||||
``` shell
|
||||
$ date --iso-8601=second --universal
|
||||
```
|
||||
|
||||
- The entry condition should be as specific as possible. For example,
|
||||
if you are changing or deprecating a specific option then you could
|
||||
restrict the news to those users who actually use this option.
|
||||
|
||||
- Wrap the news message so that it will fit in the typical terminal,
|
||||
that is, at most 80 characters wide. Ideally a bit less.
|
||||
|
||||
- Unlike commit messages, news will be read without any connection to
|
||||
the Home Manager source code. It is therefore important to make the
|
||||
message understandable in isolation and to those who do not have
|
||||
knowledge of the Home Manager internals. To this end it should be
|
||||
written in more descriptive, prose like way.
|
||||
|
||||
- If you refer to an option then write its full attribute path. That
|
||||
is, instead of writing
|
||||
|
||||
The option 'foo' has been deprecated, please use 'bar' instead.
|
||||
|
||||
it should read
|
||||
|
||||
The option 'services.myservice.foo' has been deprecated, please
|
||||
use 'services.myservice.bar' instead.
|
||||
|
||||
- A new module, say `foo.nix`, should always include a news entry that
|
||||
has a message along the lines of
|
||||
|
||||
A new module is available: 'services.foo'.
|
||||
|
||||
If the module is platform specific, e.g., a service module using
|
||||
systemd, then a condition like
|
||||
|
||||
``` nix
|
||||
condition = hostPlatform.isLinux;
|
||||
```
|
||||
|
||||
should be added. If you contribute a module then you don't need to
|
||||
add this entry, the merger will create an entry for you.
|
38
third_party/home-manager/docs/manual/contributing/tests.md
vendored
Normal file
38
third_party/home-manager/docs/manual/contributing/tests.md
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Tests {#sec-tests}
|
||||
|
||||
Home Manager includes a basic test suite and it is highly recommended to
|
||||
include at least one test when adding a module. Tests are typically in
|
||||
the form of \"golden tests\" where, for example, a generated
|
||||
configuration file is compared to a known correct file.
|
||||
|
||||
It is relatively easy to create tests by modeling the existing tests,
|
||||
found in the `tests` project directory. For a full reference to the
|
||||
functions available in test scripts, you can look at NMT's
|
||||
[bash-lib](https://git.sr.ht/~rycee/nmt/tree/master/item/bash-lib).
|
||||
|
||||
The full Home Manager test suite can be run by executing
|
||||
|
||||
``` shell
|
||||
$ nix-shell --pure tests -A run.all
|
||||
```
|
||||
|
||||
in the project root. List all test cases through
|
||||
|
||||
``` shell
|
||||
$ nix-shell --pure tests -A list
|
||||
```
|
||||
|
||||
and run an individual test, for example `alacritty-empty-settings`,
|
||||
through
|
||||
|
||||
``` shell
|
||||
$ nix-shell --pure tests -A run.alacritty-empty-settings
|
||||
```
|
||||
|
||||
However, those invocations will impurely source the system's nixpkgs,
|
||||
and may cause failures. To run against the nixpkgs from the flake.lock,
|
||||
use instead e.g.
|
||||
|
||||
``` shell
|
||||
$ nix develop --ignore-environment .#all
|
||||
```
|
10
third_party/home-manager/docs/manual/faq.md
vendored
Normal file
10
third_party/home-manager/docs/manual/faq.md
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Frequently Asked Questions (FAQ) {#ch-faq}
|
||||
|
||||
```{=include=} sections
|
||||
faq/collision.md
|
||||
faq/session-variables.md
|
||||
faq/multiple-users-machines.md
|
||||
faq/ca-desrt-dconf.md
|
||||
faq/unstable.md
|
||||
faq/override-package-module.md
|
||||
```
|
19
third_party/home-manager/docs/manual/faq/ca-desrt-dconf.md
vendored
Normal file
19
third_party/home-manager/docs/manual/faq/ca-desrt-dconf.md
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Why do I get an error message about `ca.desrt.dconf` or `dconf.service`? {#_why_do_i_get_an_error_message_about_literal_ca_desrt_dconf_literal_or_literal_dconf_service_literal}
|
||||
|
||||
You are most likely trying to configure something that uses dconf but
|
||||
the DBus session is not aware of the dconf service. The full error you
|
||||
might get is
|
||||
|
||||
error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files
|
||||
|
||||
or
|
||||
|
||||
error: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit dconf.service not found.
|
||||
|
||||
The solution on NixOS is to add
|
||||
|
||||
``` nix
|
||||
programs.dconf.enable = true;
|
||||
```
|
||||
|
||||
to your system configuration.
|
47
third_party/home-manager/docs/manual/faq/collision.md
vendored
Normal file
47
third_party/home-manager/docs/manual/faq/collision.md
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
# Why is there a collision error when switching generation? {#_why_is_there_a_collision_error_when_switching_generation}
|
||||
|
||||
Home Manager currently installs packages into the user environment,
|
||||
precisely as if the packages were installed through `nix-env --install`.
|
||||
This means that you will get a collision error if your Home Manager
|
||||
configuration attempts to install a package that you already have
|
||||
installed manually, that is, packages that shows up when you run
|
||||
`nix-env --query`.
|
||||
|
||||
For example, imagine you have the `hello` package installed in your
|
||||
environment
|
||||
|
||||
``` shell
|
||||
$ nix-env --query
|
||||
hello-2.10
|
||||
```
|
||||
|
||||
and your Home Manager configuration contains
|
||||
|
||||
``` nix
|
||||
home.packages = [ pkgs.hello ];
|
||||
```
|
||||
|
||||
Then attempting to switch to this configuration will result in an error
|
||||
similar to
|
||||
|
||||
``` shell
|
||||
$ home-manager switch
|
||||
these derivations will be built:
|
||||
/nix/store/xg69wsnd1rp8xgs9qfsjal017nf0ldhm-home-manager-path.drv
|
||||
[…]
|
||||
Activating installPackages
|
||||
replacing old ‘home-manager-path’
|
||||
installing ‘home-manager-path’
|
||||
building path(s) ‘/nix/store/b5c0asjz9f06l52l9812w6k39ifr49jj-user-environment’
|
||||
Wide character in die at /nix/store/64jc9gd2rkbgdb4yjx3nrgc91bpjj5ky-buildenv.pl line 79.
|
||||
collision between ‘/nix/store/fmwa4axzghz11cnln5absh31nbhs9lq1-home-manager-path/bin/hello’ and ‘/nix/store/c2wyl8b9p4afivpcz8jplc9kis8rj36d-hello-2.10/bin/hello’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
|
||||
builder for ‘/nix/store/b37x3s7pzxbasfqhaca5dqbf3pjjw0ip-user-environment.drv’ failed with exit code 2
|
||||
error: build of ‘/nix/store/b37x3s7pzxbasfqhaca5dqbf3pjjw0ip-user-environment.drv’ failed
|
||||
```
|
||||
|
||||
The solution is typically to uninstall the package from the environment
|
||||
using `nix-env --uninstall` and reattempt the Home Manager generation
|
||||
switch.
|
||||
|
||||
You could also opt to unistall *all* of the packages from your profile
|
||||
with `nix-env --uninstall '*'`.
|
39
third_party/home-manager/docs/manual/faq/multiple-users-machines.md
vendored
Normal file
39
third_party/home-manager/docs/manual/faq/multiple-users-machines.md
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
# How to set up a configuration for multiple users/machines? {#_how_to_set_up_a_configuration_for_multiple_users_machines}
|
||||
|
||||
A typical way to prepare a repository of configurations for multiple
|
||||
logins and machines is to prepare one \"top-level\" file for each unique
|
||||
combination.
|
||||
|
||||
For example, if you have two machines, called \"kronos\" and \"rhea\" on
|
||||
which you want to configure your user \"jane\" then you could create the
|
||||
files
|
||||
|
||||
- `kronos-jane.nix`,
|
||||
|
||||
- `rhea-jane.nix`, and
|
||||
|
||||
- `common.nix`
|
||||
|
||||
in your repository. On the kronos and rhea machines you can then make
|
||||
`~jane/.config/home-manager/home.nix` be a symbolic link to the
|
||||
corresponding file in your configuration repository.
|
||||
|
||||
The `kronos-jane.nix` and `rhea-jane.nix` files follow the format
|
||||
|
||||
``` nix
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [ ./common.nix ];
|
||||
|
||||
# Various options that are specific for this machine/user.
|
||||
}
|
||||
```
|
||||
|
||||
while the `common.nix` file contains configuration shared across the two
|
||||
logins. Of course, instead of just a single `common.nix` file you can
|
||||
have multiple ones, even one per program or service.
|
||||
|
||||
You can get some inspiration from the [Post your home-manager home.nix
|
||||
file!](https://www.reddit.com/r/NixOS/comments/9bb9h9/post_your_homemanager_homenix_file/)
|
||||
Reddit thread.
|
44
third_party/home-manager/docs/manual/faq/override-package-module.md
vendored
Normal file
44
third_party/home-manager/docs/manual/faq/override-package-module.md
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
# How do I override the package used by a module? {#_how_do_i_override_the_package_used_by_a_module}
|
||||
|
||||
By default Home Manager will install the package provided by your chosen
|
||||
`nixpkgs` channel but occasionally you might end up needing to change
|
||||
this package. This can typically be done in two ways.
|
||||
|
||||
1. If the module provides a `package` option, such as
|
||||
`programs.beets.package`, then this is the recommended way to
|
||||
perform the override. For example,
|
||||
|
||||
``` nix
|
||||
programs.beets.package = pkgs.beets.override { enableCheck = true; };
|
||||
```
|
||||
|
||||
2. If no `package` option is available then you can typically override
|
||||
the relevant package using an
|
||||
[overlay](https://nixos.org/nixpkgs/manual/#chap-overlays).
|
||||
|
||||
For example, if you want to use the `programs.skim` module but use
|
||||
the `skim` package from Nixpkgs unstable, then a configuration like
|
||||
|
||||
``` nix
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
let
|
||||
|
||||
pkgsUnstable = import <nixpkgs-unstable> {};
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
programs.skim.enable = true;
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
skim = pkgsUnstable.skim;
|
||||
})
|
||||
];
|
||||
|
||||
# …
|
||||
}
|
||||
```
|
||||
|
||||
should work OK.
|
24
third_party/home-manager/docs/manual/faq/session-variables.md
vendored
Normal file
24
third_party/home-manager/docs/manual/faq/session-variables.md
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Why are the session variables not set? {#_why_are_the_session_variables_not_set}
|
||||
|
||||
Home Manager is only able to set session variables automatically if it
|
||||
manages your Bash, Z shell, or fish shell configuration. To enable such
|
||||
management you use [programs.bash.enable](#opt-programs.bash.enable),
|
||||
[programs.zsh.enable](#opt-programs.zsh.enable), or [programs.fish.enable](#opt-programs.fish.enable).
|
||||
|
||||
If you don't want to let Home Manager manage your shell then you will
|
||||
have to manually source the
|
||||
`~/.nix-profile/etc/profile.d/hm-session-vars.sh` file in an appropriate
|
||||
way. In Bash and Z shell this can be done by adding
|
||||
|
||||
``` bash
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
```
|
||||
|
||||
to your `.profile` and `.zshrc` files, respectively. The
|
||||
`hm-session-vars.sh` file should work in most Bourne-like shells. For
|
||||
fish shell, it is possible to source it using [the foreign-env
|
||||
plugin](https://github.com/oh-my-fish/plugin-foreign-env)
|
||||
|
||||
``` bash
|
||||
fenv source "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" > /dev/null
|
||||
```
|
36
third_party/home-manager/docs/manual/faq/unstable.md
vendored
Normal file
36
third_party/home-manager/docs/manual/faq/unstable.md
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
# How do I install packages from Nixpkgs unstable? {#_how_do_i_install_packages_from_nixpkgs_unstable}
|
||||
|
||||
If you are using a stable version of Nixpkgs but would like to install
|
||||
some particular packages from Nixpkgs unstable -- or some other channel
|
||||
-- then you can import the unstable Nixpkgs and refer to its packages
|
||||
within your configuration. Something like
|
||||
|
||||
``` nix
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
let
|
||||
|
||||
pkgsUnstable = import <nixpkgs-unstable> {};
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
home.packages = [
|
||||
pkgsUnstable.foo
|
||||
];
|
||||
|
||||
# …
|
||||
}
|
||||
```
|
||||
|
||||
should work provided you have a Nix channel called `nixpkgs-unstable`.
|
||||
|
||||
You can add the `nixpkgs-unstable` channel by running
|
||||
|
||||
``` shell
|
||||
$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
|
||||
$ nix-channel --update
|
||||
```
|
||||
|
||||
Note, the package will not be affected by any package overrides,
|
||||
overlays, etc.
|
35
third_party/home-manager/docs/manual/installation.md
vendored
Normal file
35
third_party/home-manager/docs/manual/installation.md
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Installing Home Manager {#ch-installation}
|
||||
|
||||
Home Manager can be used in three primary ways:
|
||||
|
||||
1. Using the standalone `home-manager` tool. For platforms other than
|
||||
NixOS and Darwin, this is the only available choice. It is also
|
||||
recommended for people on NixOS or Darwin that want to manage their
|
||||
home directory independently of the system as a whole. See
|
||||
[Standalone installation](#sec-install-standalone) for instructions
|
||||
on how to perform this installation.
|
||||
|
||||
2. As a module within a NixOS system configuration. This allows the
|
||||
user profiles to be built together with the system when running
|
||||
`nixos-rebuild`. See [NixOS module](#sec-install-nixos-module) for a
|
||||
description of this setup.
|
||||
|
||||
3. As a module within a
|
||||
[nix-darwin](https://github.com/LnL7/nix-darwin/) system
|
||||
configuration. This allows the user profiles to be built together
|
||||
with the system when running `darwin-rebuild`. See [nix-darwin
|
||||
module](#sec-install-nix-darwin-module) for a description of this
|
||||
setup.
|
||||
|
||||
:::{.note}
|
||||
In this chapter we describe how to install Home Manager in the standard
|
||||
way using channels. If you prefer to use [Nix
|
||||
Flakes](https://nixos.wiki/wiki/Flakes) then please see the instructions
|
||||
in [nix flakes](#ch-nix-flakes).
|
||||
:::
|
||||
|
||||
```{=include=} sections
|
||||
installation/standalone.md
|
||||
installation/nixos.md
|
||||
installation/nix-darwin.md
|
||||
```
|
115
third_party/home-manager/docs/manual/installation/nix-darwin.md
vendored
Normal file
115
third_party/home-manager/docs/manual/installation/nix-darwin.md
vendored
Normal file
|
@ -0,0 +1,115 @@
|
|||
# nix-darwin module {#sec-install-nix-darwin-module}
|
||||
|
||||
Home Manager provides a module that allows you to prepare user
|
||||
environments directly from the
|
||||
[nix-darwin](https://github.com/LnL7/nix-darwin/) configuration file,
|
||||
which often is more convenient than using the `home-manager` tool.
|
||||
|
||||
To make the NixOS module available for use you must `import` it into
|
||||
your system configuration. This is most conveniently done by adding a
|
||||
Home Manager channel. For example, if you are following Nixpkgs master
|
||||
or an unstable channel, you can run
|
||||
|
||||
``` shell
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
```
|
||||
|
||||
and if you follow a Nixpkgs version 23.11 channel, you can run
|
||||
|
||||
``` shell
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
```
|
||||
|
||||
It is then possible to add
|
||||
|
||||
``` nix
|
||||
imports = [ <home-manager/nix-darwin> ];
|
||||
```
|
||||
|
||||
to your nix-darwin `configuration.nix` file, which will introduce a new
|
||||
NixOS option called `home-manager` whose type is an attribute set that
|
||||
maps user names to Home Manager configurations.
|
||||
|
||||
For example, a nix-darwin configuration may include the lines
|
||||
|
||||
``` nix
|
||||
users.users.eve = {
|
||||
name = "eve";
|
||||
home = "/Users/eve";
|
||||
};
|
||||
home-manager.users.eve = { pkgs, ... }: {
|
||||
home.packages = [ pkgs.atool pkgs.httpie ];
|
||||
programs.bash.enable = true;
|
||||
|
||||
# The state version is required and should stay at the version you
|
||||
# originally installed.
|
||||
home.stateVersion = "23.11";
|
||||
};
|
||||
```
|
||||
|
||||
and after a `darwin-rebuild switch` the user eve's environment should
|
||||
include a basic Bash configuration and the packages atool and httpie.
|
||||
|
||||
If you do not plan on having Home Manager manage your shell
|
||||
configuration then you must add either
|
||||
|
||||
``` bash
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
``` bash
|
||||
. "/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh"
|
||||
```
|
||||
|
||||
to your shell configuration, depending on whether
|
||||
[home-manager.useUserPackages](#nix-darwin-opt-home-manager.useUserPackages) is enabled. This
|
||||
file can be sourced directly by POSIX.2-like shells such as
|
||||
[Bash](https://www.gnu.org/software/bash/) or [Z
|
||||
shell](http://zsh.sourceforge.net/). [Fish](https://fishshell.com) users
|
||||
can use utilities such as
|
||||
[foreign-env](https://github.com/oh-my-fish/plugin-foreign-env) or
|
||||
[babelfish](https://github.com/bouk/babelfish).
|
||||
|
||||
:::{.note}
|
||||
By default user packages will not be ignored in favor of
|
||||
`environment.systemPackages`, but they will be installed to
|
||||
`/etc/profiles/per-user/$USERNAME` if
|
||||
|
||||
``` nix
|
||||
home-manager.useUserPackages = true;
|
||||
```
|
||||
|
||||
is added to the nix-darwin configuration. This option may become the
|
||||
default value in the future.
|
||||
:::
|
||||
|
||||
:::{.note}
|
||||
By default, Home Manager uses a private `pkgs` instance that is
|
||||
configured via the `home-manager.users.<name>.nixpkgs` options. To
|
||||
instead use the global `pkgs` that is configured via the system level
|
||||
`nixpkgs` options, set
|
||||
|
||||
``` nix
|
||||
home-manager.useGlobalPkgs = true;
|
||||
```
|
||||
|
||||
This saves an extra Nixpkgs evaluation, adds consistency, and removes
|
||||
the dependency on `NIX_PATH`, which is otherwise used for importing
|
||||
Nixpkgs.
|
||||
:::
|
||||
|
||||
:::{.note}
|
||||
Home Manager will pass `osConfig` as a module argument to any modules
|
||||
you create. This contains the system's nix-darwin configuration.
|
||||
|
||||
``` nix
|
||||
{ lib, pkgs, osConfig, ... }:
|
||||
```
|
||||
:::
|
||||
|
||||
Once installed you can see [Using Home Manager](#ch-usage) for a more detailed
|
||||
description of Home Manager and how to use it.
|
125
third_party/home-manager/docs/manual/installation/nixos.md
vendored
Normal file
125
third_party/home-manager/docs/manual/installation/nixos.md
vendored
Normal file
|
@ -0,0 +1,125 @@
|
|||
# NixOS module {#sec-install-nixos-module}
|
||||
|
||||
Home Manager provides a NixOS module that allows you to prepare user
|
||||
environments directly from the system configuration file, which often is
|
||||
more convenient than using the `home-manager` tool. It also opens up
|
||||
additional possibilities, for example, to automatically configure user
|
||||
environments in NixOS declarative containers or on systems deployed
|
||||
through NixOps.
|
||||
|
||||
To make the NixOS module available for use you must `import` it into
|
||||
your system configuration. This is most conveniently done by adding a
|
||||
Home Manager channel to the root user. For example, if you are following
|
||||
Nixpkgs master or an unstable channel, you can run
|
||||
|
||||
``` shell
|
||||
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||
$ sudo nix-channel --update
|
||||
```
|
||||
|
||||
and if you follow a Nixpkgs version 23.11 channel, you can run
|
||||
|
||||
``` shell
|
||||
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager
|
||||
$ sudo nix-channel --update
|
||||
```
|
||||
|
||||
It is then possible to add
|
||||
|
||||
``` nix
|
||||
imports = [ <home-manager/nixos> ];
|
||||
```
|
||||
|
||||
to your system `configuration.nix` file, which will introduce a new
|
||||
NixOS option called `home-manager.users` whose type is an attribute set
|
||||
that maps user names to Home Manager configurations.
|
||||
|
||||
For example, a NixOS configuration may include the lines
|
||||
|
||||
``` nix
|
||||
users.users.eve.isNormalUser = true;
|
||||
home-manager.users.eve = { pkgs, ... }: {
|
||||
home.packages = [ pkgs.atool pkgs.httpie ];
|
||||
programs.bash.enable = true;
|
||||
|
||||
# The state version is required and should stay at the version you
|
||||
# originally installed.
|
||||
home.stateVersion = "23.11";
|
||||
};
|
||||
```
|
||||
|
||||
and after a `sudo nixos-rebuild switch` the user eve's environment
|
||||
should include a basic Bash configuration and the packages atool and
|
||||
httpie.
|
||||
|
||||
:::{.note}
|
||||
If `nixos-rebuild switch` does not result in the environment you expect,
|
||||
you can take a look at the output of the Home Manager activation script
|
||||
output using
|
||||
|
||||
``` shell
|
||||
$ systemctl status "home-manager-$USER.service"
|
||||
```
|
||||
:::
|
||||
|
||||
If you do not plan on having Home Manager manage your shell
|
||||
configuration then you must add either
|
||||
|
||||
``` bash
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
``` bash
|
||||
. "/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh"
|
||||
```
|
||||
|
||||
to your shell configuration, depending on whether
|
||||
[home-manager.useUserPackages](#nixos-opt-home-manager.useUserPackages) is enabled. This file can
|
||||
be sourced directly by POSIX.2-like shells such as
|
||||
[Bash](https://www.gnu.org/software/bash/) or [Z
|
||||
shell](http://zsh.sourceforge.net/). [Fish](https://fishshell.com) users
|
||||
can use utilities such as
|
||||
[foreign-env](https://github.com/oh-my-fish/plugin-foreign-env) or
|
||||
[babelfish](https://github.com/bouk/babelfish).
|
||||
|
||||
:::{.note}
|
||||
By default packages will be installed to `$HOME/.nix-profile` but they
|
||||
can be installed to `/etc/profiles` if
|
||||
|
||||
``` nix
|
||||
home-manager.useUserPackages = true;
|
||||
```
|
||||
|
||||
is added to the system configuration. This is necessary if, for example,
|
||||
you wish to use `nixos-rebuild build-vm`. This option may become the
|
||||
default value in the future.
|
||||
:::
|
||||
|
||||
:::{.note}
|
||||
By default, Home Manager uses a private `pkgs` instance that is
|
||||
configured via the `home-manager.users.<name>.nixpkgs` options. To
|
||||
instead use the global `pkgs` that is configured via the system level
|
||||
`nixpkgs` options, set
|
||||
|
||||
``` nix
|
||||
home-manager.useGlobalPkgs = true;
|
||||
```
|
||||
|
||||
This saves an extra Nixpkgs evaluation, adds consistency, and removes
|
||||
the dependency on `NIX_PATH`, which is otherwise used for importing
|
||||
Nixpkgs.
|
||||
:::
|
||||
|
||||
:::{.note}
|
||||
Home Manager will pass `osConfig` as a module argument to any modules
|
||||
you create. This contains the system's NixOS configuration.
|
||||
|
||||
``` nix
|
||||
{ lib, pkgs, osConfig, ... }:
|
||||
```
|
||||
:::
|
||||
|
||||
Once installed you can see [Using Home Manager](#ch-usage) for a more detailed
|
||||
description of Home Manager and how to use it.
|
75
third_party/home-manager/docs/manual/installation/standalone.md
vendored
Normal file
75
third_party/home-manager/docs/manual/installation/standalone.md
vendored
Normal file
|
@ -0,0 +1,75 @@
|
|||
# Standalone installation {#sec-install-standalone}
|
||||
|
||||
1. Make sure you have a working Nix installation. Specifically, make
|
||||
sure that your user is able to build and install Nix packages. For
|
||||
example, you should be able to successfully run a command like
|
||||
`nix-instantiate '<nixpkgs>' -A hello` without having to switch to
|
||||
the root user. For a multi-user install of Nix this means that your
|
||||
user must be covered by the
|
||||
[`allowed-users`](https://nixos.org/nix/manual/#conf-allowed-users)
|
||||
Nix option. On NixOS you can control this option using the
|
||||
[`nix.settings.allowed-users`](https://nixos.org/manual/nixos/stable/options.html#opt-nix.settings.allowed-users)
|
||||
system option.
|
||||
|
||||
2. Add the appropriate Home Manager channel. If you are following
|
||||
Nixpkgs master or an unstable channel you can run
|
||||
|
||||
``` shell
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
```
|
||||
|
||||
and if you follow a Nixpkgs version 23.11 channel you can run
|
||||
|
||||
``` shell
|
||||
$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager
|
||||
$ nix-channel --update
|
||||
```
|
||||
|
||||
3. Run the Home Manager installation command and create the first Home
|
||||
Manager generation:
|
||||
|
||||
``` shell
|
||||
$ nix-shell '<home-manager>' -A install
|
||||
```
|
||||
|
||||
Once finished, Home Manager should be active and available in your
|
||||
user environment.
|
||||
|
||||
4. If you do not plan on having Home Manager manage your shell
|
||||
configuration then you must source the
|
||||
|
||||
``` bash
|
||||
$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||
```
|
||||
|
||||
file in your shell configuration. Alternatively source
|
||||
|
||||
``` bash
|
||||
/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh
|
||||
```
|
||||
|
||||
when managing home configuration together with system configuration.
|
||||
|
||||
This file can be sourced directly by POSIX.2-like shells such as
|
||||
[Bash](https://www.gnu.org/software/bash/) or [Z
|
||||
shell](http://zsh.sourceforge.net/). [Fish](https://fishshell.com)
|
||||
users can use utilities such as
|
||||
[foreign-env](https://github.com/oh-my-fish/plugin-foreign-env) or
|
||||
[babelfish](https://github.com/bouk/babelfish).
|
||||
|
||||
For example, if you use Bash then add
|
||||
|
||||
``` bash
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
```
|
||||
|
||||
to your `~/.profile` file.
|
||||
|
||||
If instead of using channels you want to run Home Manager from a Git
|
||||
checkout of the repository then you can use the
|
||||
[home-manager.path](#opt-programs.home-manager.path) option to specify the absolute
|
||||
path to the repository.
|
||||
|
||||
Once installed you can see [Using Home Manager](#ch-usage) for a more detailed
|
||||
description of Home Manager and how to use it.
|
32
third_party/home-manager/docs/manual/manpage-urls.json
vendored
Normal file
32
third_party/home-manager/docs/manual/manpage-urls.json
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"gnunet.conf(5)": "https://docs.gnunet.org/users/configuration.html",
|
||||
"mpd(1)": "https://mpd.readthedocs.io/en/latest/mpd.1.html",
|
||||
"mpd.conf(5)": "https://mpd.readthedocs.io/en/latest/mpd.conf.5.html",
|
||||
"nix.conf(5)": "https://nixos.org/manual/nix/stable/command-ref/conf-file.html",
|
||||
|
||||
"journald.conf(5)": "https://www.freedesktop.org/software/systemd/man/journald.conf.html",
|
||||
"logind.conf(5)": "https://www.freedesktop.org/software/systemd/man/logind.conf.html",
|
||||
"networkd.conf(5)": "https://www.freedesktop.org/software/systemd/man/networkd.conf.html",
|
||||
"systemd.automount(5)": "https://www.freedesktop.org/software/systemd/man/systemd.automount.html",
|
||||
"systemd.exec(5)": "https://www.freedesktop.org/software/systemd/man/systemd.exec.html",
|
||||
"systemd.link(5)": "https://www.freedesktop.org/software/systemd/man/systemd.link.html",
|
||||
"systemd.mount(5)": "https://www.freedesktop.org/software/systemd/man/systemd.mount.html",
|
||||
"systemd.netdev(5)": "https://www.freedesktop.org/software/systemd/man/systemd.netdev.html",
|
||||
"systemd.network(5)": "https://www.freedesktop.org/software/systemd/man/systemd.network.html",
|
||||
"systemd.nspawn(5)": "https://www.freedesktop.org/software/systemd/man/systemd.nspawn.html",
|
||||
"systemd.path(5)": "https://www.freedesktop.org/software/systemd/man/systemd.path.html",
|
||||
"systemd.resource-control(5)": "https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html",
|
||||
"systemd.scope(5)": "https://www.freedesktop.org/software/systemd/man/systemd.scope.html",
|
||||
"systemd.service(5)": "https://www.freedesktop.org/software/systemd/man/systemd.service.html",
|
||||
"systemd.slice(5)": "https://www.freedesktop.org/software/systemd/man/systemd.slice.html",
|
||||
"systemd.socket(5)": "https://www.freedesktop.org/software/systemd/man/systemd.socket.html",
|
||||
"systemd.timer(5)": "https://www.freedesktop.org/software/systemd/man/systemd.timer.html",
|
||||
"systemd.unit(5)": "https://www.freedesktop.org/software/systemd/man/systemd.unit.html",
|
||||
"systemd-system.conf(5)": "https://www.freedesktop.org/software/systemd/man/systemd-system.conf.html",
|
||||
"systemd-user.conf(5)": "https://www.freedesktop.org/software/systemd/man/systemd-user.conf.html",
|
||||
"timesyncd.conf(5)": "https://www.freedesktop.org/software/systemd/man/timesyncd.conf.html",
|
||||
"tmpfiles.d(5)": "https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html",
|
||||
"systemd.time(7)": "https://www.freedesktop.org/software/systemd/man/systemd.time.html",
|
||||
"systemd-fstab-generator(8)": "https://www.freedesktop.org/software/systemd/man/systemd-fstab-generator.html",
|
||||
"systemd-networkd-wait-online.service(8)": "https://www.freedesktop.org/software/systemd/man/systemd-networkd-wait-online.service.html"
|
||||
}
|
33
third_party/home-manager/docs/manual/manual.md
vendored
Normal file
33
third_party/home-manager/docs/manual/manual.md
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Home Manager Manual {#home-manager-manual}
|
||||
|
||||
## Version 24.05 (unstable)
|
||||
|
||||
|
||||
```{=include=} preface
|
||||
preface.md
|
||||
```
|
||||
|
||||
```{=include=} parts
|
||||
installation.md
|
||||
usage.md
|
||||
nix-flakes.md
|
||||
writing-modules.md
|
||||
contributing.md
|
||||
3rd-party.md
|
||||
faq.md
|
||||
```
|
||||
|
||||
```{=include=} appendix html:into-file=//options.xhtml
|
||||
options.md
|
||||
```
|
||||
|
||||
```{=include=} appendix html:into-file=//nixos-options.xhtml
|
||||
nixos-options.md
|
||||
```
|
||||
|
||||
```{=include=} appendix html:into-file=//nix-darwin-options.xhtml
|
||||
nix-darwin-options.md
|
||||
```
|
||||
```{=include=} appendix html:into-file=//release-notes.xhtml
|
||||
release-notes/release-notes.md
|
||||
```
|
7
third_party/home-manager/docs/manual/nix-darwin-options.md
vendored
Normal file
7
third_party/home-manager/docs/manual/nix-darwin-options.md
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
# nix-darwin Configuration Options {#ch-nix-darwin-options}
|
||||
|
||||
```{=include=} options
|
||||
id-prefix: nix-darwin-opt-
|
||||
list-id: nix-darwin-options
|
||||
source: @OPTIONS_JSON@
|
||||
```
|
35
third_party/home-manager/docs/manual/nix-flakes.md
vendored
Normal file
35
third_party/home-manager/docs/manual/nix-flakes.md
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Nix Flakes {#ch-nix-flakes}
|
||||
|
||||
Home Manager is compatible with [Nix
|
||||
Flakes](https://nixos.wiki/wiki/Flakes). But please be aware that this
|
||||
support is still experimental and may change in backwards
|
||||
incompatible ways.
|
||||
|
||||
Just like in the standard installation you can use the Home Manager
|
||||
flake in three ways:
|
||||
|
||||
1. Using the standalone `home-manager` tool. For platforms other than
|
||||
NixOS and Darwin, this is the only available choice. It is also
|
||||
recommended for people on NixOS or Darwin that want to manage their
|
||||
home directory independently of the system as a whole. See
|
||||
[Standalone setup](#sec-flakes-standalone) for instructions on how
|
||||
to perform this installation.
|
||||
|
||||
2. As a module within a NixOS system configuration. This allows the
|
||||
user profiles to be built together with the system when running
|
||||
`nixos-rebuild`. See [NixOS module](#sec-flakes-nixos-module) for a
|
||||
description of this setup.
|
||||
|
||||
3. This allows the user profiles to be built together with the system
|
||||
when running `darwin-rebuild`. See [nix-darwin
|
||||
module](#sec-flakes-nix-darwin-module) for a description of this
|
||||
setup.
|
||||
|
||||
```{=include=} sections
|
||||
nix-flakes/prerequisites.md
|
||||
nix-flakes/standalone.md
|
||||
nix-flakes/nixos.md
|
||||
nix-flakes/nix-darwin.md
|
||||
```
|
||||
|
||||
|
47
third_party/home-manager/docs/manual/nix-flakes/nix-darwin.md
vendored
Normal file
47
third_party/home-manager/docs/manual/nix-flakes/nix-darwin.md
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
# nix-darwin module {#sec-flakes-nix-darwin-module}
|
||||
|
||||
The flake-based setup of the Home Manager nix-darwin module is similar
|
||||
to that of NixOS. The `flake.nix` would be:
|
||||
|
||||
``` nix
|
||||
{
|
||||
description = "Darwin configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
darwin.url = "github:lnl7/nix-darwin";
|
||||
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = inputs@{ nixpkgs, home-manager, darwin, ... }: {
|
||||
darwinConfigurations = {
|
||||
hostname = darwin.lib.darwinSystem {
|
||||
system = "x86_64-darwin";
|
||||
modules = [
|
||||
./configuration.nix
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.jdoe = import ./home.nix;
|
||||
|
||||
# Optionally, use home-manager.extraSpecialArgs to pass
|
||||
# arguments to home.nix
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
and it is also rebuilt with the nix-darwin generations. The rebuild
|
||||
command here may be `darwin-rebuild switch --flake <flake-uri>`.
|
||||
|
||||
You can use the above `flake.nix` as a template in `~/.config/darwin` by
|
||||
|
||||
``` shell
|
||||
$ nix flake new ~/.config/darwin -t github:nix-community/home-manager#nix-darwin
|
||||
```
|
47
third_party/home-manager/docs/manual/nix-flakes/nixos.md
vendored
Normal file
47
third_party/home-manager/docs/manual/nix-flakes/nixos.md
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
# NixOS module {#sec-flakes-nixos-module}
|
||||
|
||||
To use Home Manager as a NixOS module, a bare-minimum `flake.nix` would
|
||||
be as follows:
|
||||
|
||||
``` nix
|
||||
{
|
||||
description = "NixOS configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = inputs@{ nixpkgs, home-manager, ... }: {
|
||||
nixosConfigurations = {
|
||||
hostname = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.jdoe = import ./home.nix;
|
||||
|
||||
# Optionally, use home-manager.extraSpecialArgs to pass
|
||||
# arguments to home.nix
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
The Home Manager configuration is then part of the NixOS configuration
|
||||
and is automatically rebuilt with the system when using the appropriate
|
||||
command for the system, such as
|
||||
`nixos-rebuild switch --flake <flake-uri>`.
|
||||
|
||||
You can use the above `flake.nix` as a template in `/etc/nixos` by
|
||||
|
||||
``` shell
|
||||
$ nix flake new /etc/nixos -t github:nix-community/home-manager#nixos
|
||||
```
|
42
third_party/home-manager/docs/manual/nix-flakes/prerequisites.md
vendored
Normal file
42
third_party/home-manager/docs/manual/nix-flakes/prerequisites.md
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
# Prerequisites {#sec-flakes-prerequisites}
|
||||
|
||||
- Install Nix 2.4 or later, or have it in `nix-shell`.
|
||||
|
||||
- Enable experimental features `nix-command` and `flakes`.
|
||||
|
||||
- When using NixOS, add the following to your `configuration.nix`
|
||||
and rebuild your system.
|
||||
|
||||
``` nix
|
||||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
};
|
||||
```
|
||||
|
||||
- If you are not using NixOS, add the following to `nix.conf`
|
||||
(located at `~/.config/nix/` or `/etc/nix/nix.conf`).
|
||||
|
||||
``` bash
|
||||
experimental-features = nix-command flakes
|
||||
```
|
||||
|
||||
You may need to restart the Nix daemon with, for example,
|
||||
`sudo systemctl restart nix-daemon.service`.
|
||||
|
||||
- Alternatively, you can enable flakes on a per-command basis with
|
||||
the following additional flags to `nix` and `home-manager`:
|
||||
|
||||
``` shell
|
||||
$ nix --extra-experimental-features "nix-command flakes" <sub-commands>
|
||||
$ home-manager --extra-experimental-features "nix-command flakes" <sub-commands>
|
||||
```
|
||||
|
||||
- Prepare your Home Manager configuration (`home.nix`).
|
||||
|
||||
Unlike the channel-based setup, `home.nix` will be evaluated when
|
||||
the flake is built, so it must be present before bootstrap of Home
|
||||
Manager from the flake. See [Configuration Example](#sec-usage-configuration) for
|
||||
introduction about writing a Home Manager configuration.
|
62
third_party/home-manager/docs/manual/nix-flakes/standalone.md
vendored
Normal file
62
third_party/home-manager/docs/manual/nix-flakes/standalone.md
vendored
Normal file
|
@ -0,0 +1,62 @@
|
|||
# Standalone setup {#sec-flakes-standalone}
|
||||
|
||||
To prepare an initial Home Manager configuration for your logged in
|
||||
user, you can run the Home Manager `init` command directly from its
|
||||
flake.
|
||||
|
||||
For example, if you are using the unstable version of Nixpkgs or NixOS,
|
||||
then to generate and activate a basic configuration run the command
|
||||
|
||||
``` shell
|
||||
$ nix run home-manager/master -- init --switch
|
||||
```
|
||||
|
||||
For Nixpkgs or NixOS version 23.11 run
|
||||
|
||||
``` shell
|
||||
$ nix run home-manager/release-23.11 -- init --switch
|
||||
```
|
||||
|
||||
This will generate a `flake.nix` and a `home.nix` file in
|
||||
`~/.config/home-manager`, creating the directory if it does not exist.
|
||||
|
||||
If you omit the `--switch` option then the activation will not happen.
|
||||
This is useful if you want to inspect and edit the configuration before
|
||||
activating it.
|
||||
|
||||
``` shell
|
||||
$ nix run home-manager/$branch -- init
|
||||
$ # Edit files in ~/.config/home-manager
|
||||
$ nix run home-manager/$branch -- init --switch
|
||||
```
|
||||
|
||||
Where `$branch` is one of `master` or `release-23.11`.
|
||||
|
||||
After the initial activation has completed successfully then building
|
||||
and activating your flake-based configuration is as simple as
|
||||
|
||||
``` shell
|
||||
$ home-manager switch
|
||||
```
|
||||
|
||||
It is possible to override the default configuration directory, if you
|
||||
want. For example,
|
||||
|
||||
``` shell
|
||||
$ nix run home-manager/$branch -- init --switch ~/hmconf
|
||||
$ # And after the initial activation.
|
||||
$ home-manager switch --flake ~/hmconf
|
||||
```
|
||||
|
||||
::: {.note}
|
||||
The flake inputs are not automatically updated by Home Manager. You need
|
||||
to use the standard `nix flake update` command for that.
|
||||
|
||||
If you only want to update a single flake input, then the command
|
||||
`nix flake lock --update-input <input>` can be used.
|
||||
|
||||
You can also pass flake-related options such as `--recreate-lock-file`
|
||||
or `--update-input <input>` to `home-manager` when building or
|
||||
switching, and these options will be forwarded to `nix build`. See the
|
||||
[NixOS Wiki page](https://nixos.wiki/wiki/Flakes) for details.
|
||||
:::
|
7
third_party/home-manager/docs/manual/nixos-options.md
vendored
Normal file
7
third_party/home-manager/docs/manual/nixos-options.md
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
# NixOS Configuration Options {#ch-nixos-options}
|
||||
|
||||
```{=include=} options
|
||||
id-prefix: nixos-opt-
|
||||
list-id: nixos-options
|
||||
source: @OPTIONS_JSON@
|
||||
```
|
7
third_party/home-manager/docs/manual/options.md
vendored
Normal file
7
third_party/home-manager/docs/manual/options.md
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Home Manager Configuration Options {#ch-options}
|
||||
|
||||
```{=include=} options
|
||||
id-prefix: opt-
|
||||
list-id: home-manager-options
|
||||
source: @OPTIONS_JSON@
|
||||
```
|
20
third_party/home-manager/docs/manual/preface.md
vendored
Normal file
20
third_party/home-manager/docs/manual/preface.md
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Preface {#preface}
|
||||
|
||||
This manual will eventually describe how to install, use, and extend Home
|
||||
Manager.
|
||||
|
||||
If you encounter problems then please reach out on the IRC channel
|
||||
[#home-manager](https://webchat.oftc.net/?channels=home-manager)
|
||||
hosted by [OFTC](https://oftc.net/).
|
||||
There is also a [Matrix room](https://matrix.to/#/%23hm:rycee.net),
|
||||
which is bridged to the IRC channel.
|
||||
If your problem is caused by a bug in Home Manager then it should
|
||||
be reported on the
|
||||
[Home Manager issue tracker](https://github.com/nix-community/home-manager/issues).
|
||||
|
||||
|
||||
:::{.note}
|
||||
Commands prefixed with `$ sudo` have to be run as root, either
|
||||
requiring to login as root user or temporarily switching to it using
|
||||
`sudo` for example.
|
||||
:::
|
63
third_party/home-manager/docs/manual/usage.md
vendored
Normal file
63
third_party/home-manager/docs/manual/usage.md
vendored
Normal file
|
@ -0,0 +1,63 @@
|
|||
# Using Home Manager {#ch-usage}
|
||||
|
||||
Your use of Home Manager is centered around the configuration file,
|
||||
which is typically found at `~/.config/home-manager/home.nix` in the
|
||||
standard installation or `~/.config/home-manager/flake.nix` in a Nix
|
||||
flake based installation.
|
||||
|
||||
::: {.note}
|
||||
The default configuration used to be placed in `~/.config/nixpkgs`¸ so
|
||||
you may see references to that elsewhere. The old directory still works
|
||||
but Home Manager will print a warning message when used.
|
||||
:::
|
||||
|
||||
This configuration file can be *built* and *activated*.
|
||||
|
||||
Building a configuration produces a directory in the Nix store that
|
||||
contains all files and programs that should be available in your home
|
||||
directory and Nix user profile, respectively. The build step also checks
|
||||
that the configuration is valid and it will fail with an error if you,
|
||||
for example, assign a value to an option that does not exist or assign a
|
||||
value of the wrong type. Some modules also have custom assertions that
|
||||
perform more detailed, module specific, checks.
|
||||
|
||||
Concretely, if your configuration contains
|
||||
|
||||
``` nix
|
||||
programs.emacs.enable = "yes";
|
||||
```
|
||||
|
||||
then building it, for example using `home-manager build`, will result in
|
||||
an error message saying something like
|
||||
|
||||
```console
|
||||
$ home-manager build
|
||||
error: A definition for option `programs.emacs.enable' is not of type `boolean'. Definition values:
|
||||
- In `/home/jdoe/.config/home-manager/home.nix': "yes"
|
||||
(use '--show-trace' to show detailed location information)
|
||||
```
|
||||
|
||||
The message indicates that you must provide a Boolean value for this
|
||||
option, that is, either `true` or `false`. The documentation of each
|
||||
option will state the expected type, for
|
||||
[programs.emacs.enable](#opt-programs.emacs.enable) you will see "Type: boolean". You
|
||||
there also find information about the default value and a description of
|
||||
the option. You can find the complete option documentation in
|
||||
[Home Manager Configuration Options](#ch-options) or directly in the terminal by running
|
||||
|
||||
``` shell
|
||||
man home-configuration.nix
|
||||
```
|
||||
|
||||
Once a configuration is successfully built, it can be activated. The
|
||||
activation performs the steps necessary to make the files, programs, and
|
||||
services available in your user environment. The `home-manager switch`
|
||||
command performs a combined build and activation.
|
||||
|
||||
```{=include=} sections
|
||||
usage/configuration.md
|
||||
usage/rollbacks.md
|
||||
usage/dotfiles.md
|
||||
usage/graphical.md
|
||||
usage/updating.md
|
||||
```
|
112
third_party/home-manager/docs/manual/usage/configuration.md
vendored
Normal file
112
third_party/home-manager/docs/manual/usage/configuration.md
vendored
Normal file
|
@ -0,0 +1,112 @@
|
|||
# Configuration Example {#sec-usage-configuration}
|
||||
|
||||
A fresh install of Home Manager will generate a minimal
|
||||
`~/.config/home-manager/home.nix` file containing something like
|
||||
|
||||
``` nix
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = "jdoe";
|
||||
home.homeDirectory = "/home/jdoe";
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
# configuration is compatible with. This helps avoid breakage
|
||||
# when a new Home Manager release introduces backwards
|
||||
# incompatible changes.
|
||||
#
|
||||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
home.stateVersion = "23.11";
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
```
|
||||
|
||||
You can use this as a base for your further configurations.
|
||||
|
||||
::: {.note}
|
||||
If you are not very familiar with the Nix language and NixOS modules
|
||||
then it is encouraged to start with small and simple changes. As you
|
||||
learn you can gradually grow the configuration with confidence.
|
||||
:::
|
||||
|
||||
As an example, let us expand the initial configuration file to also
|
||||
install the htop and fortune packages, install Emacs with a few extra
|
||||
packages available, and enable the user gpg-agent service.
|
||||
|
||||
To satisfy the above setup we should elaborate the `home.nix` file as
|
||||
follows:
|
||||
|
||||
``` nix
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = "jdoe";
|
||||
home.homeDirectory = "/home/jdoe";
|
||||
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = [
|
||||
pkgs.htop
|
||||
pkgs.fortune
|
||||
];
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
# configuration is compatible with. This helps avoid breakage
|
||||
# when a new Home Manager release introduces backwards
|
||||
# incompatible changes.
|
||||
#
|
||||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
home.stateVersion = "23.11";
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
extraPackages = epkgs: [
|
||||
epkgs.nix-mode
|
||||
epkgs.magit
|
||||
];
|
||||
};
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
defaultCacheTtl = 1800;
|
||||
enableSshSupport = true;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
- Nixpkgs packages can be installed to the user profile using
|
||||
[home.packages](#opt-home.packages).
|
||||
|
||||
- The option names of a program module typically start with
|
||||
`programs.<package name>`.
|
||||
|
||||
- Similarly, for a service module, the names start with
|
||||
`services.<package name>`. Note in some cases a package has both
|
||||
programs *and* service options -- Emacs is such an example.
|
||||
|
||||
To activate this configuration you can run
|
||||
|
||||
``` shell
|
||||
home-manager switch
|
||||
```
|
||||
|
||||
or if you are not feeling so lucky,
|
||||
|
||||
``` shell
|
||||
home-manager build
|
||||
```
|
||||
|
||||
which will create a `result` link to a directory containing an
|
||||
activation script and the generated home directory files.
|
36
third_party/home-manager/docs/manual/usage/dotfiles.md
vendored
Normal file
36
third_party/home-manager/docs/manual/usage/dotfiles.md
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Keeping your \~ safe from harm {#sec-usage-dotfiles}
|
||||
|
||||
To configure programs and services Home Manager must write various
|
||||
things to your home directory. To prevent overwriting any existing files
|
||||
when switching to a new generation, Home Manager will attempt to detect
|
||||
collisions between existing files and generated files. If any such
|
||||
collision is detected the activation will terminate before changing
|
||||
anything on your computer.
|
||||
|
||||
For example, suppose you have a wonderful, painstakingly created
|
||||
`~/.config/git/config` and add
|
||||
|
||||
``` nix
|
||||
{
|
||||
# …
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Jane Doe";
|
||||
userEmail = "jane.doe@example.org";
|
||||
};
|
||||
|
||||
# …
|
||||
}
|
||||
```
|
||||
|
||||
to your configuration. Attempting to switch to the generation will then
|
||||
result in
|
||||
|
||||
``` shell
|
||||
$ home-manager switch
|
||||
…
|
||||
Activating checkLinkTargets
|
||||
Existing file '/home/jdoe/.config/git/config' is in the way
|
||||
Please move the above files and try again
|
||||
```
|
32
third_party/home-manager/docs/manual/usage/graphical.md
vendored
Normal file
32
third_party/home-manager/docs/manual/usage/graphical.md
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Graphical services {#sec-usage-graphical}
|
||||
|
||||
Home Manager includes a number of services intended to run in a
|
||||
graphical session, for example `xscreensaver` and `dunst`.
|
||||
Unfortunately, such services will not be started automatically unless
|
||||
you let Home Manager start your X session. That is, you have something
|
||||
like
|
||||
|
||||
``` nix
|
||||
{
|
||||
# …
|
||||
|
||||
services.xserver.enable = true;
|
||||
|
||||
# …
|
||||
}
|
||||
```
|
||||
|
||||
in your system configuration and
|
||||
|
||||
``` nix
|
||||
{
|
||||
# …
|
||||
|
||||
xsession.enable = true;
|
||||
xsession.windowManager.command = "…";
|
||||
|
||||
# …
|
||||
}
|
||||
```
|
||||
|
||||
in your Home Manager configuration.
|
32
third_party/home-manager/docs/manual/usage/rollbacks.md
vendored
Normal file
32
third_party/home-manager/docs/manual/usage/rollbacks.md
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Rollbacks {#sec-usage-rollbacks}
|
||||
|
||||
While the `home-manager` tool does not explicitly support rollbacks at
|
||||
the moment it is relatively easy to perform one manually. The steps to
|
||||
do so are
|
||||
|
||||
1. Run `home-manager generations` to determine which generation you
|
||||
wish to rollback to:
|
||||
|
||||
``` shell
|
||||
$ home-manager generations
|
||||
2018-01-04 11:56 : id 765 -> /nix/store/kahm1rxk77mnvd2l8pfvd4jkkffk5ijk-home-manager-generation
|
||||
2018-01-03 10:29 : id 764 -> /nix/store/2wsmsliqr5yynqkdyjzb1y57pr5q2lsj-home-manager-generation
|
||||
2018-01-01 12:21 : id 763 -> /nix/store/mv960kl9chn2lal5q8lnqdp1ygxngcd1-home-manager-generation
|
||||
2017-12-29 21:03 : id 762 -> /nix/store/6c0k1r03fxckql4vgqcn9ccb616ynb94-home-manager-generation
|
||||
2017-12-25 18:51 : id 761 -> /nix/store/czc5y6vi1rvnkfv83cs3rn84jarcgsgh-home-manager-generation
|
||||
…
|
||||
```
|
||||
|
||||
2. Copy the Nix store path of the generation you chose, e.g.,
|
||||
|
||||
/nix/store/mv960kl9chn2lal5q8lnqdp1ygxngcd1-home-manager-generation
|
||||
|
||||
for generation 763.
|
||||
|
||||
3. Run the `activate` script inside the copied store path:
|
||||
|
||||
``` shell
|
||||
$ /nix/store/mv960kl9chn2lal5q8lnqdp1ygxngcd1-home-manager-generation/activate
|
||||
Starting home manager activation
|
||||
…
|
||||
```
|
12
third_party/home-manager/docs/manual/usage/updating.md
vendored
Normal file
12
third_party/home-manager/docs/manual/usage/updating.md
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Updating {#sec-updating}
|
||||
|
||||
If you have installed Home Manager using the Nix channel method then
|
||||
updating Home Manager is done by first updating the channel. You can
|
||||
then switch to the updated Home Manager environment.
|
||||
|
||||
``` shell
|
||||
$ nix-channel --update
|
||||
…
|
||||
unpacking channels...
|
||||
$ home-manager switch
|
||||
```
|
13
third_party/home-manager/docs/manual/writing-modules.md
vendored
Normal file
13
third_party/home-manager/docs/manual/writing-modules.md
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Writing Home Manager Modules {#ch-writing-modules}
|
||||
|
||||
The module system in Home Manager is based entirely on the NixOS module
|
||||
system so we will here only highlight aspects that are specific for Home
|
||||
Manager. For information about the module system as such please refer to
|
||||
the [Writing NixOS
|
||||
Modules](https://nixos.org/nixos/manual/index.html#sec-writing-modules)
|
||||
chapter of the NixOS manual.
|
||||
|
||||
|
||||
```{=include=} sections
|
||||
writing-modules/types.md
|
||||
```
|
368
third_party/home-manager/docs/manual/writing-modules/types.md
vendored
Normal file
368
third_party/home-manager/docs/manual/writing-modules/types.md
vendored
Normal file
|
@ -0,0 +1,368 @@
|
|||
# Option Types {#sec-option-types}
|
||||
|
||||
Overall the basic option types are the same in Home Manager as NixOS. A
|
||||
few Home Manager options, however, make use of custom types that are
|
||||
worth describing in more detail. These are the option types `dagOf` and
|
||||
`gvariant` that are used, for example, by
|
||||
[programs.ssh.matchBlocks](#opt-programs.ssh.matchBlocks) and [dconf.settings](#opt-dconf.settings).
|
||||
|
||||
[]{#sec-option-types-dag}`hm.types.dagOf`
|
||||
|
||||
: Options of this type have attribute sets as values where each member
|
||||
is a node in a [directed acyclic
|
||||
graph](https://en.wikipedia.org/w/index.php?title=Directed_acyclic_graph&oldid=939656095)
|
||||
(DAG). This allows the attribute set entries to express dependency
|
||||
relations among themselves. This can, for example, be used to
|
||||
control the order of match blocks in a OpenSSH client configuration
|
||||
or the order of activation script blocks in
|
||||
[home.activation](#opt-home.activation).
|
||||
|
||||
A number of functions are provided to create DAG nodes. The
|
||||
functions are shown below with examples using an option `foo.bar` of
|
||||
type `hm.types.dagOf types.int`.
|
||||
|
||||
[]{#sec-option-types-dag-entryAnywhere}`hm.dag.entryAnywhere (value: T) : DagEntry<T>`
|
||||
|
||||
: Indicates that `value` can be placed anywhere within the DAG.
|
||||
This is also the default for plain attribute set entries, that
|
||||
is
|
||||
|
||||
``` nix
|
||||
foo.bar = {
|
||||
a = hm.dag.entryAnywhere 0;
|
||||
}
|
||||
```
|
||||
|
||||
and
|
||||
|
||||
``` nix
|
||||
foo.bar = {
|
||||
a = 0;
|
||||
}
|
||||
```
|
||||
|
||||
are equivalent.
|
||||
|
||||
[]{#sec-option-types-dag-entryAfter}`hm.dag.entryAfter (afters: list string) (value: T) : DagEntry<T>`
|
||||
|
||||
: Indicates that `value` must be placed *after* each of the
|
||||
attribute names in the given list. For example
|
||||
|
||||
``` nix
|
||||
foo.bar = {
|
||||
a = 0;
|
||||
b = hm.dag.entryAfter [ "a" ] 1;
|
||||
}
|
||||
```
|
||||
|
||||
would place `b` after `a` in the graph.
|
||||
|
||||
[]{#sec-option-types-dag-entryBefore}`hm.dag.entryBefore (befores: list string) (value: T) : DagEntry<T>`
|
||||
|
||||
: Indicates that `value` must be placed *before* each of the
|
||||
attribute names in the given list. For example
|
||||
|
||||
``` nix
|
||||
foo.bar = {
|
||||
b = hm.dag.entryBefore [ "a" ] 1;
|
||||
a = 0;
|
||||
}
|
||||
```
|
||||
|
||||
would place `b` before `a` in the graph.
|
||||
|
||||
[]{#sec-option-types-dag-entryBetween}`hm.dag.entryBetween (befores: list string) (afters: list string) (value: T) : DagEntry<T>`
|
||||
|
||||
: Indicates that `value` must be placed *before* the attribute
|
||||
names in the first list and *after* the attribute names in the
|
||||
second list. For example
|
||||
|
||||
``` nix
|
||||
foo.bar = {
|
||||
a = 0;
|
||||
c = hm.dag.entryBetween [ "b" ] [ "a" ] 2;
|
||||
b = 1;
|
||||
}
|
||||
```
|
||||
|
||||
would place `c` before `b` and after `a` in the graph.
|
||||
|
||||
There are also a set of functions that generate a DAG from a list.
|
||||
These are convenient when you just want to have a linear list of DAG
|
||||
entries, without having to manually enter the relationship between
|
||||
each entry. Each of these functions take a `tag` as argument and the
|
||||
DAG entries will be named `${tag}-${index}`.
|
||||
|
||||
[]{#sec-option-types-dag-entriesAnywhere}`hm.dag.entriesAnywhere (tag: string) (values: [T]) : Dag<T>`
|
||||
|
||||
: Creates a DAG with the given values with each entry labeled
|
||||
using the given tag. For example
|
||||
|
||||
``` nix
|
||||
foo.bar = hm.dag.entriesAnywhere "a" [ 0 1 ];
|
||||
```
|
||||
|
||||
is equivalent to
|
||||
|
||||
``` nix
|
||||
foo.bar = {
|
||||
a-0 = 0;
|
||||
a-1 = hm.dag.entryAfter [ "a-0" ] 1;
|
||||
}
|
||||
```
|
||||
|
||||
[]{#sec-option-types-dag-entriesAfter}`hm.dag.entriesAfter (tag: string) (afters: list string) (values: [T]) : Dag<T>`
|
||||
|
||||
: Creates a DAG with the given values with each entry labeled
|
||||
using the given tag. The list of values are placed are placed
|
||||
*after* each of the attribute names in `afters`. For example
|
||||
|
||||
``` nix
|
||||
foo.bar =
|
||||
{ b = 0; }
|
||||
// hm.dag.entriesAfter "a" [ "b" ] [ 1 2 ];
|
||||
```
|
||||
|
||||
is equivalent to
|
||||
|
||||
``` nix
|
||||
foo.bar = {
|
||||
b = 0;
|
||||
a-0 = hm.dag.entryAfter [ "b" ] 1;
|
||||
a-1 = hm.dag.entryAfter [ "a-0" ] 2;
|
||||
}
|
||||
```
|
||||
|
||||
[]{#sec-option-types-dag-entriesBefore}`hm.dag.entriesBefore (tag: string) (befores: list string) (values: [T]) : Dag<T>`
|
||||
|
||||
: Creates a DAG with the given values with each entry labeled
|
||||
using the given tag. The list of values are placed *before* each
|
||||
of the attribute names in `befores`. For example
|
||||
|
||||
``` nix
|
||||
foo.bar =
|
||||
{ b = 0; }
|
||||
// hm.dag.entriesBefore "a" [ "b" ] [ 1 2 ];
|
||||
```
|
||||
|
||||
is equivalent to
|
||||
|
||||
``` nix
|
||||
foo.bar = {
|
||||
b = 0;
|
||||
a-0 = 1;
|
||||
a-1 = hm.dag.entryBetween [ "b" ] [ "a-0" ] 2;
|
||||
}
|
||||
```
|
||||
|
||||
[]{#sec-option-types-dag-entriesBetween}`hm.dag.entriesBetween (tag: string) (befores: list string) (afters: list string) (values: [T]) : Dag<T>`
|
||||
|
||||
: Creates a DAG with the given values with each entry labeled
|
||||
using the given tag. The list of values are placed *before* each
|
||||
of the attribute names in `befores` and *after* each of the
|
||||
attribute names in `afters`. For example
|
||||
|
||||
``` nix
|
||||
foo.bar =
|
||||
{ b = 0; c = 3; }
|
||||
// hm.dag.entriesBetween "a" [ "b" ] [ "c" ] [ 1 2 ];
|
||||
```
|
||||
|
||||
is equivalent to
|
||||
|
||||
``` nix
|
||||
foo.bar = {
|
||||
b = 0;
|
||||
c = 3;
|
||||
a-0 = hm.dag.entryAfter [ "c" ] 1;
|
||||
a-1 = hm.dag.entryBetween [ "b" ] [ "a-0" ] 2;
|
||||
}
|
||||
```
|
||||
|
||||
[]{#sec-option-types-gvariant}`hm.types.gvariant`
|
||||
|
||||
: This type is useful for options representing
|
||||
[GVariant](https://docs.gtk.org/glib/struct.Variant.html#description)
|
||||
values. The type accepts all primitive GVariant types as well as
|
||||
arrays, tuples, "maybe" types, and dictionaries.
|
||||
|
||||
Some Nix values are automatically coerced to matching GVariant value
|
||||
but the GVariant model is richer so you may need to use one of the
|
||||
provided constructor functions. Examples assume an option `foo.bar`
|
||||
of type `hm.types.gvariant`.
|
||||
|
||||
[]{#sec-option-types-gvariant-mkBoolean}`hm.gvariant.mkBoolean (v: bool)`
|
||||
|
||||
: Takes a Nix value `v` to a GVariant `boolean` value (GVariant
|
||||
format string `b`). Note, Nix booleans are automatically coerced
|
||||
using this function. That is,
|
||||
|
||||
``` nix
|
||||
foo.bar = hm.gvariant.mkBoolean true;
|
||||
```
|
||||
|
||||
is equivalent to
|
||||
|
||||
``` nix
|
||||
foo.bar = true;
|
||||
```
|
||||
|
||||
[]{#sec-option-types-gvariant-mkString}`hm.gvariant.mkString (v: string)`
|
||||
|
||||
: Takes a Nix value `v` to a GVariant `string` value (GVariant
|
||||
format string `s`). Note, Nix strings are automatically coerced
|
||||
using this function. That is,
|
||||
|
||||
``` nix
|
||||
foo.bar = hm.gvariant.mkString "a string";
|
||||
```
|
||||
|
||||
is equivalent to
|
||||
|
||||
``` nix
|
||||
foo.bar = "a string";
|
||||
```
|
||||
|
||||
[]{#sec-option-types-gvariant-mkObjectpath}`hm.gvariant.mkObjectpath (v: string)`
|
||||
|
||||
: Takes a Nix value `v` to a GVariant `objectpath` value (GVariant
|
||||
format string `o`).
|
||||
|
||||
[]{#sec-option-types-gvariant-mkUchar}`hm.gvariant.mkUchar (v: string)`
|
||||
|
||||
: Takes a Nix value `v` to a GVariant `uchar` value (GVariant
|
||||
format string `y`).
|
||||
|
||||
[]{#sec-option-types-gvariant-mkInt16}`hm.gvariant.mkInt16 (v: int)`
|
||||
|
||||
: Takes a Nix value `v` to a GVariant `int16` value (GVariant
|
||||
format string `n`).
|
||||
|
||||
[]{#sec-option-types-gvariant-mkUint16}`hm.gvariant.mkUint16 (v: int)`
|
||||
|
||||
: Takes a Nix value `v` to a GVariant `uint16` value (GVariant
|
||||
format string `q`).
|
||||
|
||||
[]{#sec-option-types-gvariant-mkInt32}`hm.gvariant.mkInt32 (v: int)`
|
||||
|
||||
: Takes a Nix value `v` to a GVariant `int32` value (GVariant
|
||||
format string `i`). Note, Nix integers are automatically coerced
|
||||
using this function. That is,
|
||||
|
||||
``` nix
|
||||
foo.bar = hm.gvariant.mkInt32 7;
|
||||
```
|
||||
|
||||
is equivalent to
|
||||
|
||||
``` nix
|
||||
foo.bar = 7;
|
||||
```
|
||||
|
||||
[]{#sec-option-types-gvariant-mkUint32}`hm.gvariant.mkUint32 (v: int)`
|
||||
|
||||
: Takes a Nix value `v` to a GVariant `uint32` value (GVariant
|
||||
format string `u`).
|
||||
|
||||
[]{#sec-option-types-gvariant-mkInt64}`hm.gvariant.mkInt64 (v: int)`
|
||||
|
||||
: Takes a Nix value `v` to a GVariant `int64` value (GVariant
|
||||
format string `x`).
|
||||
|
||||
[]{#sec-option-types-gvariant-mkUint64}`hm.gvariant.mkUint64 (v: int)`
|
||||
|
||||
: Takes a Nix value `v` to a GVariant `uint64` value (GVariant
|
||||
format string `t`).
|
||||
|
||||
[]{#sec-option-types-gvariant-mkDouble}`hm.gvariant.mkDouble (v: double)`
|
||||
|
||||
: Takes a Nix value `v` to a GVariant `double` value (GVariant
|
||||
format string `d`). Note, Nix floats are automatically coerced
|
||||
using this function. That is,
|
||||
|
||||
``` nix
|
||||
foo.bar = hm.gvariant.mkDouble 3.14;
|
||||
```
|
||||
|
||||
is equivalent to
|
||||
|
||||
``` nix
|
||||
foo.bar = 3.14;
|
||||
```
|
||||
|
||||
[]{#sec-option-types-gvariant-mkArray}`hm.gvariant.mkArray type elements`
|
||||
|
||||
: Builds a GVariant array containing the given list of elements,
|
||||
where each element is a GVariant value of the given type
|
||||
(GVariant format string `a${type}`). The `type` value can be
|
||||
constructed using
|
||||
|
||||
- `hm.gvariant.type.string` (GVariant format string `s`)
|
||||
|
||||
- `hm.gvariant.type.boolean` (GVariant format string `b`)
|
||||
|
||||
- `hm.gvariant.type.uchar` (GVariant format string `y`)
|
||||
|
||||
- `hm.gvariant.type.int16` (GVariant format string `n`)
|
||||
|
||||
- `hm.gvariant.type.uint16` (GVariant format string `q`)
|
||||
|
||||
- `hm.gvariant.type.int32` (GVariant format string `i`)
|
||||
|
||||
- `hm.gvariant.type.uint32` (GVariant format string `u`)
|
||||
|
||||
- `hm.gvariant.type.int64` (GVariant format string `x`)
|
||||
|
||||
- `hm.gvariant.type.uint64` (GVariant format string `t`)
|
||||
|
||||
- `hm.gvariant.type.double` (GVariant format string `d`)
|
||||
|
||||
- `hm.gvariant.type.variant` (GVariant format string `v`)
|
||||
|
||||
- `hm.gvariant.type.arrayOf type` (GVariant format string
|
||||
`a${type}`)
|
||||
|
||||
- `hm.gvariant.type.maybeOf type` (GVariant format string
|
||||
`m${type}`)
|
||||
|
||||
- `hm.gvariant.type.tupleOf types` (GVariant format string
|
||||
`(${lib.concatStrings types})`)
|
||||
|
||||
- `hm.gvariant.type.dictionaryEntryOf [keyType valueType]`
|
||||
(GVariant format string `{${keyType}${valueType}}`)
|
||||
|
||||
where `type` and `types` are themselves a type and list of
|
||||
types, respectively.
|
||||
|
||||
[]{#sec-option-types-gvariant-mkEmptyArray}`hm.gvariant.mkEmptyArray type`
|
||||
|
||||
: An alias of
|
||||
[`hm.gvariant.mkArray type []`](#sec-option-types-gvariant-mkArray).
|
||||
|
||||
[]{#sec-option-types-gvariant-mkNothing}`hm.gvariant.mkNothing type`
|
||||
|
||||
: Builds a GVariant maybe value (GVariant format string
|
||||
`m${type}`) whose (non-existent) element is of the given type.
|
||||
The `type` value is constructed as described for the
|
||||
[`mkArray`](#sec-option-types-gvariant-mkArray) function above.
|
||||
|
||||
[]{#sec-option-types-gvariant-mkJust}`hm.gvariant.mkJust element`
|
||||
|
||||
: Builds a GVariant maybe value (GVariant format string
|
||||
`m${element.type}`) containing the given GVariant element.
|
||||
|
||||
[]{#sec-option-types-gvariant-mkTuple}`hm.gvariant.mkTuple elements`
|
||||
|
||||
: Builds a GVariant tuple containing the given list of elements,
|
||||
where each element is a GVariant value.
|
||||
|
||||
[]{#sec-option-types-gvariant-mkVariant}`hm.gvariant.mkVariant element`
|
||||
|
||||
: Builds a GVariant variant (GVariant format string `v`) which
|
||||
contains the value of a GVariant element.
|
||||
|
||||
[]{#sec-option-types-gvariant-mkDictionaryEntry}`hm.gvariant.mkDictionaryEntry [key value]`
|
||||
|
||||
: Builds a GVariant dictionary entry containing the given list of
|
||||
elements (GVariant format string `{${key.type}${value.type}}`),
|
||||
where each element is a GVariant value.
|
228
third_party/home-manager/docs/nix-flakes.adoc
vendored
228
third_party/home-manager/docs/nix-flakes.adoc
vendored
|
@ -1,228 +0,0 @@
|
|||
[[ch-nix-flakes]]
|
||||
== Nix Flakes
|
||||
|
||||
:nixos-wiki-flakes: https://nixos.wiki/wiki/Flakes
|
||||
|
||||
Home Manager is compatible with {nixos-wiki-flakes}[Nix Flakes]. But
|
||||
please be aware that the support it is still experimental and may
|
||||
change in backwards incompatible ways.
|
||||
|
||||
Just like in the standard installation you can use the Home Manager
|
||||
flake in three ways:
|
||||
|
||||
1. Using the standalone `home-manager` tool. For platforms other than
|
||||
NixOS and Darwin, this is the only available choice. It is also
|
||||
recommended for people on NixOS or Darwin that want to manage their
|
||||
home directory independently of the system as a whole. See
|
||||
<<sec-flakes-standalone>> for instructions on how to perform this
|
||||
installation.
|
||||
|
||||
2. As a module within a NixOS system configuration. This allows the
|
||||
user profiles to be built together with the system when running
|
||||
`nixos-rebuild`. See <<sec-flakes-nixos-module>> for a description of
|
||||
this setup.
|
||||
|
||||
3. As a module within a {nix-darwin}[nix-darwin] system configuration.
|
||||
This allows the user profiles to be built together with the system
|
||||
when running `darwin-rebuild`. See <<sec-flakes-nix-darwin-module>>
|
||||
for a description of this setup.
|
||||
|
||||
[[sec-flakes-prerequisites]]
|
||||
=== Prerequisites
|
||||
|
||||
* Install Nix 2.4 or later, or have it in `nix-shell`.
|
||||
|
||||
* Enable experimental features `nix-command` and `flakes`.
|
||||
+
|
||||
** When using NixOS, add the following to your `configuration.nix` and rebuild your system.
|
||||
+
|
||||
[source,nix]
|
||||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
};
|
||||
+
|
||||
** If you are not using NixOS, add the following to `nix.conf` (located at `~/.config/nix/` or `/etc/nix/nix.conf`).
|
||||
+
|
||||
[source,bash]
|
||||
experimental-features = nix-command flakes
|
||||
+
|
||||
You may need to restart the Nix daemon with, for example, `sudo systemctl restart nix-daemon.service`.
|
||||
+
|
||||
** Alternatively, you can enable flakes on a per-command basis with the following additional flags to `nix` and `home-manager`:
|
||||
+
|
||||
[source,console]
|
||||
----
|
||||
$ nix --extra-experimental-features "nix-command flakes" <sub-commands>
|
||||
$ home-manager --extra-experimental-features "nix-command flakes" <sub-commands>
|
||||
----
|
||||
|
||||
* Prepare your Home Manager configuration (`home.nix`).
|
||||
+
|
||||
Unlike the channel-based setup,
|
||||
`home.nix` will be evaluated when the flake is built,
|
||||
so it must be present before bootstrap of Home Manager from the flake.
|
||||
See <<sec-usage-configuration>> for introduction about
|
||||
writing a Home Manager configuration.
|
||||
|
||||
[[sec-flakes-standalone]]
|
||||
=== Standalone setup
|
||||
|
||||
To prepare an initial Home Manager configuration for your logged in user,
|
||||
you can run the Home Manager `init` command directly from its flake.
|
||||
|
||||
For example, if you are using the unstable version of Nixpkgs or NixOS,
|
||||
then to generate and activate a basic configuration run the command
|
||||
|
||||
[source,console]
|
||||
$ nix run home-manager/master -- init --switch
|
||||
|
||||
For Nixpkgs or NixOS version 23.05 run
|
||||
|
||||
[source,console]
|
||||
$ nix run home-manager/release-23.05 -- init --switch
|
||||
|
||||
This will generate a `flake.nix` and a `home.nix` file in
|
||||
`~/.config/home-manager`, creating the directory if it does not exist.
|
||||
|
||||
If you omit the `--switch` option then the activation will not happen.
|
||||
This is useful if you want to inspect and edit the configuration before activating it.
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ nix run home-manager/$branch -- init
|
||||
$ # Edit files in ~/.config/home-manager
|
||||
$ nix run home-manager/$branch -- init --switch
|
||||
----
|
||||
|
||||
Where `$branch` is one of `master` or `release-23.05`.
|
||||
|
||||
After the initial activation has completed successfully then building
|
||||
and activating your flake-based configuration is as simple as
|
||||
|
||||
[source,console]
|
||||
$ home-manager switch
|
||||
|
||||
It is possible to override the default configuration directory, if you want.
|
||||
For example,
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ nix run home-manager/$branch -- init --switch ~/hmconf
|
||||
$ # And after the initial activation.
|
||||
$ home-manager switch --flake ~/hmconf
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
The flake inputs are not automatically updated by Home Manager.
|
||||
You need to use the standard `nix flake update` command for that.
|
||||
|
||||
If you only want to update a single flake input,
|
||||
then the command `nix flake lock --update-input <input>` can be used.
|
||||
|
||||
You can also pass flake-related options
|
||||
such as `--recreate-lock-file` or `--update-input <input>`
|
||||
to `home-manager` when building or switching,
|
||||
and these options will be forwarded to `nix build`.
|
||||
See the {nixos-wiki-flakes}[NixOS Wiki page] for details.
|
||||
====
|
||||
|
||||
[[sec-flakes-nixos-module]]
|
||||
=== NixOS module
|
||||
|
||||
To use Home Manager as a NixOS module,
|
||||
a bare-minimum `flake.nix` would be as follows:
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
description = "NixOS configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = inputs@{ nixpkgs, home-manager, ... }: {
|
||||
nixosConfigurations = {
|
||||
hostname = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.jdoe = import ./home.nix;
|
||||
|
||||
# Optionally, use home-manager.extraSpecialArgs to pass
|
||||
# arguments to home.nix
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
----
|
||||
|
||||
The Home Manager configuration is then part of the NixOS configuration
|
||||
and is automatically rebuilt with the system when using the appropriate command
|
||||
for the system, such as `nixos-rebuild switch --flake <flake-uri>`.
|
||||
|
||||
You can use the above `flake.nix` as a template in `/etc/nixos` by
|
||||
|
||||
[source,console]
|
||||
$ nix flake new /etc/nixos -t github:nix-community/home-manager#nixos
|
||||
|
||||
[[sec-flakes-nix-darwin-module]]
|
||||
=== nix-darwin module
|
||||
|
||||
The flake-based setup of the Home Manager nix-darwin module
|
||||
is similar to that of NixOS. The `flake.nix` would be:
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
description = "Darwin configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
darwin.url = "github:lnl7/nix-darwin";
|
||||
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = inputs@{ nixpkgs, home-manager, darwin, ... }: {
|
||||
darwinConfigurations = {
|
||||
hostname = darwin.lib.darwinSystem {
|
||||
system = "x86_64-darwin";
|
||||
modules = [
|
||||
./configuration.nix
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.jdoe = import ./home.nix;
|
||||
|
||||
# Optionally, use home-manager.extraSpecialArgs to pass
|
||||
# arguments to home.nix
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
----
|
||||
|
||||
and it is also rebuilt with the nix-darwin generations.
|
||||
The rebuild command here may be `darwin-rebuild switch --flake <flake-uri>`.
|
||||
|
||||
You can use the above `flake.nix` as a template in `~/.config/darwin` by
|
||||
|
||||
[source,console]
|
||||
$ nix flake new ~/.config/darwin -t github:nix-community/home-manager#nix-darwin
|
|
@ -1,31 +0,0 @@
|
|||
[[ch-release-notes]]
|
||||
[appendix]
|
||||
== Release Notes
|
||||
|
||||
This section lists the release notes for stable versions of Home Manager and the current unstable version.
|
||||
|
||||
:leveloffset: 1
|
||||
|
||||
include::rl-2311.adoc[]
|
||||
|
||||
include::rl-2305.adoc[]
|
||||
|
||||
include::rl-2211.adoc[]
|
||||
|
||||
include::rl-2205.adoc[]
|
||||
|
||||
include::rl-2111.adoc[]
|
||||
|
||||
include::rl-2105.adoc[]
|
||||
|
||||
include::rl-2009.adoc[]
|
||||
|
||||
include::rl-2003.adoc[]
|
||||
|
||||
include::rl-1909.adoc[]
|
||||
|
||||
include::rl-1903.adoc[]
|
||||
|
||||
include::rl-1809.adoc[]
|
||||
|
||||
:leveloffset: 0
|
19
third_party/home-manager/docs/release-notes/release-notes.md
vendored
Normal file
19
third_party/home-manager/docs/release-notes/release-notes.md
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Release Notes {#ch-release-notes}
|
||||
|
||||
This section lists the release notes for stable versions of Home Manager
|
||||
and the current unstable version.
|
||||
|
||||
```{=include=} chapters
|
||||
rl-2405.md
|
||||
rl-2311.md
|
||||
rl-2305.md
|
||||
rl-2211.md
|
||||
rl-2205.md
|
||||
rl-2111.md
|
||||
rl-2105.md
|
||||
rl-2009.md
|
||||
rl-2003.md
|
||||
rl-1909.md
|
||||
rl-1903.md
|
||||
rl-1809.md
|
||||
```
|
|
@ -1,4 +1,3 @@
|
|||
[[sec-release-18.09]]
|
||||
== Release 18.09
|
||||
# Release 18.09 {#sec-release-18.09}
|
||||
|
||||
The 18.09 release branch became the stable branch in September, 2018.
|
|
@ -1,59 +0,0 @@
|
|||
[[sec-release-19.03]]
|
||||
== Release 19.03
|
||||
|
||||
The 19.03 release branch became the stable branch in April, 2019.
|
||||
|
||||
[[sec-release-19.03-highlights]]
|
||||
=== Highlights
|
||||
:opt-home-file-source: opt-home.file._name_.source
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* The <<{opt-home-file-source}>> option now allows source files to be
|
||||
hidden, that is, having a name starting with the `.` character. It
|
||||
also allows the source file name to contain characters not typically
|
||||
allowed for Nix store paths. For example, your configuration can now
|
||||
contain things such as
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
home.file."my file".source = ./. + "/file with spaces!";
|
||||
----
|
||||
|
||||
* The type used for the systemd unit options under
|
||||
<<opt-systemd.user.services>>, <<opt-systemd.user.sockets>>, etc. has
|
||||
been changed to offer more robust merging of configurations. If you
|
||||
don't override values within systemd units then you are not affected
|
||||
by this change. Unfortunately, if you do override unit values you may
|
||||
encounter errors.
|
||||
+
|
||||
In particular, if you get an error saying that a ``unique option'' is
|
||||
``defined multiple times'' then you need to use the
|
||||
https://nixos.org/nixos/manual/#sec-option-definitions-setting-priorities[`mkForce`]
|
||||
function. For example,
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
systemd.user.services.foo.Service.ExecStart = "/foo/bar";
|
||||
----
|
||||
+
|
||||
becomes
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
systemd.user.services.foo.Service.ExecStart = lib.mkForce "/foo/bar";
|
||||
----
|
||||
+
|
||||
We had to make this change because the old merging was causing too
|
||||
many confusing situations for people.
|
||||
|
||||
[[sec-release-19.03-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the <<opt-home.stateVersion>> option is set
|
||||
to ``19.03'' or later.
|
||||
|
||||
* There is now an option <<opt-programs.beets.enable>> that defaults
|
||||
to `false`. Before the module would be active if the
|
||||
<<opt-programs.beets.settings>> option was non-empty.
|
52
third_party/home-manager/docs/release-notes/rl-1903.md
vendored
Normal file
52
third_party/home-manager/docs/release-notes/rl-1903.md
vendored
Normal file
|
@ -0,0 +1,52 @@
|
|||
# Release 19.03 {#sec-release-19.03}
|
||||
|
||||
The 19.03 release branch became the stable branch in April, 2019.
|
||||
|
||||
## Highlights {#sec-release-19.03-highlights}
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
- The [home.file._name_.source](#opt-home.file._name_.source) option now allows source
|
||||
files to be hidden, that is, having a name starting with the `.`
|
||||
character. It also allows the source file name to contain characters
|
||||
not typically allowed for Nix store paths. For example, your
|
||||
configuration can now contain things such as
|
||||
|
||||
``` nix
|
||||
home.file."my file".source = ./. + "/file with spaces!";
|
||||
```
|
||||
|
||||
- The type used for the systemd unit options under
|
||||
[systemd.user.sockets](#opt-systemd.user.sockets),
|
||||
etc. has been changed to offer more robust merging of
|
||||
configurations. If you don't override values within systemd units
|
||||
then you are not affected by this change. Unfortunately, if you do
|
||||
override unit values you may encounter errors.
|
||||
|
||||
In particular, if you get an error saying that a "unique option" is
|
||||
"defined multiple times" then you need to use the
|
||||
[`mkForce`](https://nixos.org/nixos/manual/#sec-option-definitions-setting-priorities)
|
||||
function. For example,
|
||||
|
||||
``` nix
|
||||
systemd.user.services.foo.Service.ExecStart = "/foo/bar";
|
||||
```
|
||||
|
||||
becomes
|
||||
|
||||
``` nix
|
||||
systemd.user.services.foo.Service.ExecStart = lib.mkForce "/foo/bar";
|
||||
```
|
||||
|
||||
We had to make this change because the old merging was causing too
|
||||
many confusing situations for people.
|
||||
|
||||
## State Version Changes {#sec-release-19.03-state-version-changes}
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the [home.stateVersion](#opt-home.stateVersion) option is
|
||||
set to "19.03" or later.
|
||||
|
||||
- There is now an option [programs.beets.enable](#opt-programs.beets.enable) that
|
||||
defaults to `false`. Before the module would be active if the
|
||||
[programs.beets.settings](#opt-programs.beets.settings) option was non-empty.
|
|
@ -1,31 +0,0 @@
|
|||
[[sec-release-19.09]]
|
||||
== Release 19.09
|
||||
|
||||
The 19.09 release branch became the stable branch in October, 2019.
|
||||
|
||||
[[sec-release-19.09-highlights]]
|
||||
=== Highlights
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* The `programs.firefox.enableGoogleTalk` and
|
||||
`programs.firefox.enableIcedTea` options are now deprecated
|
||||
and will only work if Firefox ESR 52.x is used.
|
||||
|
||||
* The `home-manager` tool now provides an `uninstall` sub-command that
|
||||
can be used to uninstall Home Manager, if used in the standalone
|
||||
mode. That is, not as a NixOS module.
|
||||
|
||||
[[sec-release-19.09-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
"19.09" or later.
|
||||
|
||||
* The <<opt-programs.firefox.package>> option now expects a wrapped
|
||||
Firefox package and defaults to `pkgs.firefox`.
|
||||
|
||||
* The options <<opt-home.keyboard.layout>> and
|
||||
<<opt-home.keyboard.variant>> now default to `null`, which indicates
|
||||
that the system value should be used.
|
28
third_party/home-manager/docs/release-notes/rl-1909.md
vendored
Normal file
28
third_party/home-manager/docs/release-notes/rl-1909.md
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Release 19.09 {#sec-release-19.09}
|
||||
|
||||
The 19.09 release branch became the stable branch in October, 2019.
|
||||
|
||||
## Highlights {#sec-release-19.09-highlights}
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
- The `programs.firefox.enableGoogleTalk` and
|
||||
`programs.firefox.enableIcedTea` options are now deprecated and will
|
||||
only work if Firefox ESR 52.x is used.
|
||||
|
||||
- The `home-manager` tool now provides an `uninstall` sub-command that
|
||||
can be used to uninstall Home Manager, if used in the standalone
|
||||
mode. That is, not as a NixOS module.
|
||||
|
||||
## State Version Changes {#sec-release-19.09-state-version-changes}
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
\"19.09\" or later.
|
||||
|
||||
- The [programs.firefox.package](#opt-programs.firefox.package) option now expects a
|
||||
wrapped Firefox package and defaults to `pkgs.firefox`.
|
||||
|
||||
- The options [home.keyboard.layout](#opt-home.keyboard.layout) and
|
||||
[home.keyboard.variant](#opt-home.keyboard.variant) now default to `null`, which
|
||||
indicates that the system value should be used.
|
|
@ -1,126 +0,0 @@
|
|||
[[sec-release-20.03]]
|
||||
== Release 20.03
|
||||
|
||||
The 20.03 release branch became the stable branch in April, 2020.
|
||||
|
||||
[[sec-release-20.03-highlights]]
|
||||
=== Highlights
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* Assigning a list to the <<opt-home.file>>, <<opt-xdg.configFile>>,
|
||||
and <<opt-xdg.dataFile>> options is now deprecated and will produce a
|
||||
warning message if used. Specifically, if your configuration currently
|
||||
contains something like
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
home.file = [
|
||||
{
|
||||
target = ".config/foo.txt";
|
||||
text = "bar";
|
||||
}
|
||||
]
|
||||
----
|
||||
+
|
||||
then it should be updated to instead use the equivalent attribute set form
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
home.file = {
|
||||
".config/foo.txt".text = "bar";
|
||||
}
|
||||
----
|
||||
+
|
||||
Support for the list form will be removed in Home Manager version
|
||||
20.09.
|
||||
|
||||
* The `lib` function attribute given to modules is now enriched with
|
||||
an attribute `hm` containing extra library functions specific for Home
|
||||
Manager. More specifically, `lib.hm` is now the same as `config.lib`
|
||||
and should be the preferred choice since it is more robust.
|
||||
+
|
||||
Therefore, if your configuration makes use of, for example,
|
||||
`config.lib.dag` to create activation script blocks, it is recommended
|
||||
to change to `lib.hm.dag`.
|
||||
+
|
||||
Note, in the unlikely case that you are
|
||||
+
|
||||
** using Home Manager's NixOS or nix-darwin module,
|
||||
** have made your own Home Manager module containing an top-level
|
||||
option named `config` or `options`, and
|
||||
** assign to this option in your system configuration inside a plain
|
||||
attribute set, i.e., without a function argument,
|
||||
|
||||
+
|
||||
then you must update your configuration to perform the option
|
||||
assignment inside a `config` attribute. For example, instead of
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
home-manager.users.jane = { config = "foo"; };
|
||||
----
|
||||
+
|
||||
use
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
home-manager.users.jane = { config.config = "foo"; };
|
||||
----
|
||||
|
||||
* The `services.compton` module has been deprecated and instead the
|
||||
new module `services.picom` should be used. This is because Nixpkgs no
|
||||
longer packages compton, and instead packages the (mostly) compatible
|
||||
fork called picom.
|
||||
|
||||
* The list form of the <<opt-programs.ssh.matchBlocks>> option has
|
||||
been deprecated and configurations requiring match blocks in a defined
|
||||
order should switch to using DAG entries instead. For example, a
|
||||
configuration
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.ssh.matchBlocks = [
|
||||
{
|
||||
host = "alpha.foo.com";
|
||||
user = "jd";
|
||||
}
|
||||
{
|
||||
host = "*.foo.com";
|
||||
user = "john.doe";
|
||||
}
|
||||
];
|
||||
----
|
||||
+
|
||||
can be expressed along the lines of
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.ssh.matchBlocks = {
|
||||
"*.example.com" = {
|
||||
user = "john.doe";
|
||||
}
|
||||
"alpha.example.com" = lib.hm.dag.entryBefore ["*.example.com"] {
|
||||
user = "jd";
|
||||
}
|
||||
};
|
||||
----
|
||||
+
|
||||
Support for the list form will be removed in Home Manager version
|
||||
20.09.
|
||||
|
||||
[[sec-release-20.03-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
"20.03" or later.
|
||||
|
||||
* The <<opt-programs.zsh.history.path>> option is no longer prepended
|
||||
by `$HOME`, which allows specifying absolute paths, for example,
|
||||
using the xdg module. Also, the default value is fixed to
|
||||
`$HOME/.zsh_history` and `dotDir` path is not prepended to it
|
||||
anymore.
|
||||
* The newsboat module will now default in displaying `queries` before `urls` in
|
||||
its main window. This makes sense in the case when one has a lot of URLs and
|
||||
few queries.
|
122
third_party/home-manager/docs/release-notes/rl-2003.md
vendored
Normal file
122
third_party/home-manager/docs/release-notes/rl-2003.md
vendored
Normal file
|
@ -0,0 +1,122 @@
|
|||
# Release 20.03 {#sec-release-20.03}
|
||||
|
||||
The 20.03 release branch became the stable branch in April, 2020.
|
||||
|
||||
## Highlights {#sec-release-20.03-highlights}
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
- Assigning a list to the [home.file](#opt-home.file),
|
||||
[xdg.dataFile](#opt-xdg.dataFile) options is
|
||||
now deprecated and will produce a warning message if used.
|
||||
Specifically, if your configuration currently contains something
|
||||
like
|
||||
|
||||
``` nix
|
||||
home.file = [
|
||||
{
|
||||
target = ".config/foo.txt";
|
||||
text = "bar";
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
then it should be updated to instead use the equivalent attribute
|
||||
set form
|
||||
|
||||
``` nix
|
||||
home.file = {
|
||||
".config/foo.txt".text = "bar";
|
||||
}
|
||||
```
|
||||
|
||||
Support for the list form will be removed in Home Manager version
|
||||
20.09.
|
||||
|
||||
- The `lib` function attribute given to modules is now enriched with
|
||||
an attribute `hm` containing extra library functions specific for
|
||||
Home Manager. More specifically, `lib.hm` is now the same as
|
||||
`config.lib` and should be the preferred choice since it is more
|
||||
robust.
|
||||
|
||||
Therefore, if your configuration makes use of, for example,
|
||||
`config.lib.dag` to create activation script blocks, it is
|
||||
recommended to change to `lib.hm.dag`.
|
||||
|
||||
Note, in the unlikely case that you are
|
||||
|
||||
- using Home Manager's NixOS or nix-darwin module,
|
||||
|
||||
- have made your own Home Manager module containing an top-level
|
||||
option named `config` or `options`, and
|
||||
|
||||
- assign to this option in your system configuration inside a
|
||||
plain attribute set, i.e., without a function argument,
|
||||
|
||||
then you must update your configuration to perform the option
|
||||
assignment inside a `config` attribute. For example, instead of
|
||||
|
||||
``` nix
|
||||
home-manager.users.jane = { config = "foo"; };
|
||||
```
|
||||
|
||||
use
|
||||
|
||||
``` nix
|
||||
home-manager.users.jane = { config.config = "foo"; };
|
||||
```
|
||||
|
||||
- The `services.compton` module has been deprecated and instead the
|
||||
new module `services.picom` should be used. This is because Nixpkgs
|
||||
no longer packages compton, and instead packages the (mostly)
|
||||
compatible fork called picom.
|
||||
|
||||
- The list form of the [programs.ssh.matchBlocks](#opt-programs.ssh.matchBlocks) option has
|
||||
been deprecated and configurations requiring match blocks in a
|
||||
defined order should switch to using DAG entries instead. For
|
||||
example, a configuration
|
||||
|
||||
``` nix
|
||||
programs.ssh.matchBlocks = [
|
||||
{
|
||||
host = "alpha.foo.com";
|
||||
user = "jd";
|
||||
}
|
||||
{
|
||||
host = "*.foo.com";
|
||||
user = "john.doe";
|
||||
}
|
||||
];
|
||||
```
|
||||
|
||||
can be expressed along the lines of
|
||||
|
||||
``` nix
|
||||
programs.ssh.matchBlocks = {
|
||||
"*.example.com" = {
|
||||
user = "john.doe";
|
||||
}
|
||||
"alpha.example.com" = lib.hm.dag.entryBefore ["*.example.com"] {
|
||||
user = "jd";
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
Support for the list form will be removed in Home Manager version
|
||||
20.09.
|
||||
|
||||
## State Version Changes {#sec-release-20.03-state-version-changes}
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
\"20.03\" or later.
|
||||
|
||||
- The [programs.zsh.history.path](#opt-programs.zsh.history.path) option is no longer
|
||||
prepended by `$HOME`, which allows specifying absolute paths, for
|
||||
example, using the xdg module. Also, the default value is fixed to
|
||||
`$HOME/.zsh_history` and `dotDir` path is not prepended to it
|
||||
anymore.
|
||||
|
||||
- The newsboat module will now default in displaying `queries` before
|
||||
`urls` in its main window. This makes sense in the case when one has
|
||||
a lot of URLs and few queries.
|
|
@ -1,96 +0,0 @@
|
|||
[[sec-release-20.09]]
|
||||
== Release 20.09
|
||||
|
||||
The 20.09 release branch became the stable branch in late September, 2020.
|
||||
|
||||
[[sec-release-20.09-highlights]]
|
||||
=== Highlights
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* Nothing has happened.
|
||||
|
||||
[[sec-release-20.09-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
"20.09" or later.
|
||||
|
||||
* The options <<opt-home.homeDirectory>> and <<opt-home.username>> no
|
||||
longer have default values and must therefore be provided in your
|
||||
configuration. Previously their values would default to the content of
|
||||
the environment variables `HOME` and `USER`, respectively.
|
||||
+
|
||||
--
|
||||
Further, the options <<opt-xdg.cacheHome>>, <<opt-xdg.configHome>>,
|
||||
and <<opt-xdg.dataHome>> will no longer be affected by the
|
||||
`XDG_CACHE_HOME`, `XDG_CONFIG_HOME`, and `XDG_DATA_HOME` environment
|
||||
variables. They now unconditionally default to
|
||||
|
||||
- `"${config.home.homeDirectory}/.cache"`,
|
||||
- `"${config.home.homeDirectory}/.config"`, and
|
||||
- `"${config.home.homeDirectory}/.local/share"`.
|
||||
|
||||
If you choose to switch to state version 20.09 then you must set these
|
||||
options if you use non-default XDG base directory paths.
|
||||
|
||||
The initial configuration generated by
|
||||
|
||||
[source,console]
|
||||
$ nix-shell '<home-manager>' -A install
|
||||
|
||||
will automatically include these options, when necessary.
|
||||
--
|
||||
|
||||
* Git's `smtpEncryption` option is now set to `tls` only if both <<opt-accounts.email.accounts.\_name_.smtp.tls.enable>> and <<opt-accounts.email.accounts.\_name_.smtp.tls.useStartTls>> are `true`. If only <<opt-accounts.email.accounts.\_name_.smtp.tls.enable>> is `true`, `ssl` is used instead.
|
||||
|
||||
* The `nixpkgs` module no longer references `<nixpkgs>`. Before it would do so when building the `pkgs` module argument. Starting with state version 20.09, the `pkgs` argument is instead built from the same Nixpkgs that was used to initialize the Home Manager modules. This is useful, for example, when using Home Manager within a Nix Flake. If you want to keep using `<nixpkgs>` with state version ≥ 20.09 then add
|
||||
+
|
||||
[source,nix]
|
||||
_module.args.pkgsPath = <nixpkgs>;
|
||||
+
|
||||
to your Home Manager configuration.
|
||||
|
||||
* The options `wayland.windowManager.sway.config.bars` and `opt-xsession.windowManager.i3.config.bars` have been changed so that most of the suboptions are now nullable and default to `null`. The default for these two options has been changed to manually set the old defaults for each suboption. The overall effect is that if the `bars` options is not set, then the default remains the same. On the other hand, something like:
|
||||
+
|
||||
--
|
||||
[source,nix]
|
||||
----
|
||||
bars = [ {
|
||||
command = "waybar";
|
||||
} ];
|
||||
----
|
||||
will now create the config:
|
||||
....
|
||||
bar {
|
||||
swaybar_command waybar
|
||||
}
|
||||
....
|
||||
instead of
|
||||
....
|
||||
bar {
|
||||
|
||||
font pango:monospace 8
|
||||
mode dock
|
||||
hidden_state hide
|
||||
position bottom
|
||||
status_command /nix/store/h7s6i9q1z5fxrlyyw5ls8vqxhf5bcs5a-i3status-2.13/bin/i3status
|
||||
swaybar_command waybar
|
||||
workspace_buttons yes
|
||||
strip_workspace_numbers no
|
||||
tray_output primary
|
||||
colors {
|
||||
background #000000
|
||||
statusline #ffffff
|
||||
separator #666666
|
||||
focused_workspace #4c7899 #285577 #ffffff
|
||||
active_workspace #333333 #5f676a #ffffff
|
||||
inactive_workspace #333333 #222222 #888888
|
||||
urgent_workspace #2f343a #900000 #ffffff
|
||||
binding_mode #2f343a #900000 #ffffff
|
||||
}
|
||||
|
||||
}
|
||||
....
|
||||
--
|
112
third_party/home-manager/docs/release-notes/rl-2009.md
vendored
Normal file
112
third_party/home-manager/docs/release-notes/rl-2009.md
vendored
Normal file
|
@ -0,0 +1,112 @@
|
|||
# Release 20.09 {#sec-release-20.09}
|
||||
|
||||
The 20.09 release branch became the stable branch in late September,
|
||||
2020.
|
||||
|
||||
## Highlights {#sec-release-20.09-highlights}
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
- Nothing has happened.
|
||||
|
||||
## State Version Changes {#sec-release-20.09-state-version-changes}
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
\"20.09\" or later.
|
||||
|
||||
- The options [home.homeDirectory](#opt-home.homeDirectory) and
|
||||
[home.username](#opt-home.username) no longer have default values and must
|
||||
therefore be provided in your configuration. Previously their values
|
||||
would default to the content of the environment variables `HOME` and
|
||||
`USER`, respectively.
|
||||
|
||||
Further, the options [xdg.cacheHome](#opt-xdg.cacheHome),
|
||||
[xdg.dataHome](#opt-xdg.dataHome) will no
|
||||
longer be affected by the `XDG_CACHE_HOME`, `XDG_CONFIG_HOME`, and
|
||||
`XDG_DATA_HOME` environment variables. They now unconditionally
|
||||
default to
|
||||
|
||||
- `"${config.home.homeDirectory}/.cache"`,
|
||||
|
||||
- `"${config.home.homeDirectory}/.config"`, and
|
||||
|
||||
- `"${config.home.homeDirectory}/.local/share"`.
|
||||
|
||||
If you choose to switch to state version 20.09 then you must set
|
||||
these options if you use non-default XDG base directory paths.
|
||||
|
||||
The initial configuration generated by
|
||||
|
||||
``` console
|
||||
$ nix-shell '<home-manager>' -A install
|
||||
```
|
||||
|
||||
will automatically include these options, when necessary.
|
||||
|
||||
- Git's `smtpEncryption` option is now set to `tls` only if both
|
||||
[accounts.email.accounts._name_.smtp.tls.enable](#opt-accounts.email.accounts._name_.smtp.tls.enable) and
|
||||
[accounts.email.accounts._name_.smtp.tls.useStartTls](#opt-accounts.email.accounts._name_.smtp.tls.useStartTls) are
|
||||
`true`. If only
|
||||
[accounts.email.accounts._name_.smtp.tls.enable](#opt-accounts.email.accounts._name_.smtp.tls.enable) is
|
||||
`true`, `ssl` is used instead.
|
||||
|
||||
- The `nixpkgs` module no longer references `<nixpkgs>`. Before it
|
||||
would do so when building the `pkgs` module argument. Starting with
|
||||
state version 20.09, the `pkgs` argument is instead built from the
|
||||
same Nixpkgs that was used to initialize the Home Manager modules.
|
||||
This is useful, for example, when using Home Manager within a Nix
|
||||
Flake. If you want to keep using `<nixpkgs>` with state version ≥
|
||||
20.09 then add
|
||||
|
||||
``` nix
|
||||
_module.args.pkgsPath = <nixpkgs>;
|
||||
```
|
||||
|
||||
to your Home Manager configuration.
|
||||
|
||||
- The options `wayland.windowManager.sway.config.bars` and
|
||||
`opt-xsession.windowManager.i3.config.bars` have been changed so
|
||||
that most of the suboptions are now nullable and default to `null`.
|
||||
The default for these two options has been changed to manually set
|
||||
the old defaults for each suboption. The overall effect is that if
|
||||
the `bars` options is not set, then the default remains the same. On
|
||||
the other hand, something like:
|
||||
|
||||
``` nix
|
||||
bars = [ {
|
||||
command = "waybar";
|
||||
} ];
|
||||
```
|
||||
|
||||
will now create the config:
|
||||
|
||||
bar {
|
||||
swaybar_command waybar
|
||||
}
|
||||
|
||||
instead of
|
||||
|
||||
bar {
|
||||
|
||||
font pango:monospace 8
|
||||
mode dock
|
||||
hidden_state hide
|
||||
position bottom
|
||||
status_command /nix/store/h7s6i9q1z5fxrlyyw5ls8vqxhf5bcs5a-i3status-2.13/bin/i3status
|
||||
swaybar_command waybar
|
||||
workspace_buttons yes
|
||||
strip_workspace_numbers no
|
||||
tray_output primary
|
||||
colors {
|
||||
background #000000
|
||||
statusline #ffffff
|
||||
separator #666666
|
||||
focused_workspace #4c7899 #285577 #ffffff
|
||||
active_workspace #333333 #5f676a #ffffff
|
||||
inactive_workspace #333333 #222222 #888888
|
||||
urgent_workspace #2f343a #900000 #ffffff
|
||||
binding_mode #2f343a #900000 #ffffff
|
||||
}
|
||||
|
||||
}
|
|
@ -1,200 +0,0 @@
|
|||
[[sec-release-21.05]]
|
||||
== Release 21.05
|
||||
|
||||
The 21.05 release branch became the stable branch in May, 2021.
|
||||
|
||||
[[sec-release-21.05-highlights]]
|
||||
=== Highlights
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* The `opt-programs.broot.verbs` option is now a list rather than an
|
||||
attribute set. To migrate, move the keys of the attrset into the list
|
||||
items' `invocation` keys. For example,
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.broot.verbs = {
|
||||
"p" = { execution = ":parent"; };
|
||||
};
|
||||
----
|
||||
+
|
||||
becomes
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.broot.verbs = [
|
||||
{
|
||||
invocation = "p";
|
||||
execution = ":parent";
|
||||
}
|
||||
];
|
||||
----
|
||||
|
||||
* The <<opt-programs.mpv.package>> option has been changed to allow custom
|
||||
derivations. The following configuration is now possible:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.mpv.package = (pkgs.wrapMpv (pkgs.mpv-unwrapped.override {
|
||||
vapoursynthSupport = true;
|
||||
}) {
|
||||
extraMakeWrapperArgs = [
|
||||
"--prefix" "LD_LIBRARY_PATH" ":" "${pkgs.vapoursynth-mvtools}/lib/vapoursynth"
|
||||
];
|
||||
});
|
||||
----
|
||||
+
|
||||
As a result of this change, <<opt-programs.mpv.package>> is no longer the
|
||||
resulting derivation. Use the newly introduced `programs.mpv.finalPackage`
|
||||
instead.
|
||||
|
||||
* The <<opt-programs.rofi.extraConfig>> option is now an attribute set rather
|
||||
than a string. To migrate, move each line into the attribute set,
|
||||
removing the `rofi.` prefix from the keys. For example,
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.rofi.extraConfig = ''
|
||||
rofi.show-icons: true
|
||||
rofi.modi: drun,emoji,ssh
|
||||
'';
|
||||
----
|
||||
+
|
||||
becomes
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.rofi.extraConfig = {
|
||||
show-icons = true;
|
||||
modi = "drun,emoji,ssh";
|
||||
};
|
||||
----
|
||||
+
|
||||
* The <<opt-programs.rofi.theme>> option now supports defining a theme
|
||||
using an attribute set, the following configuration is now possible:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.rofi.theme = let
|
||||
# Necessary to avoid quoting non-string values
|
||||
inherit (config.lib.formats.rasi) mkLiteral;
|
||||
in {
|
||||
"@import" = "~/.config/rofi/theme.rasi";
|
||||
|
||||
"*" = {
|
||||
background-color = mkLiteral "#000000";
|
||||
foreground-color = mkLiteral "rgba ( 250, 251, 252, 100 % )";
|
||||
border-color = mkLiteral "#FFFFFF";
|
||||
width = 512;
|
||||
};
|
||||
|
||||
"#textbox-prompt-colon" = {
|
||||
expand = false;
|
||||
str = ":";
|
||||
margin = mkLiteral "0px 0.3em 0em 0em";
|
||||
text-color = mkLiteral "@foreground-color";
|
||||
};
|
||||
};
|
||||
----
|
||||
|
||||
|
||||
* The `services.redshift.extraOptions` and `services.gammastep.extraOptions`
|
||||
options were removed in favor of <<opt-services.redshift.settings>> and
|
||||
`services.gammastep.settings`, that are now an attribute set rather
|
||||
than a string. They also support new features not available before, for
|
||||
example:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
services.redshift = {
|
||||
dawnTime = "6:00-7:45";
|
||||
duskTime = "18:35-20:15";
|
||||
settings = {
|
||||
redshift = {
|
||||
gamma = 0.8;
|
||||
adjustment-method = "randr";
|
||||
};
|
||||
|
||||
randr = {
|
||||
screen = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
----
|
||||
+
|
||||
It is recommended to check either
|
||||
https://github.com/jonls/redshift/blob/master/redshift.conf.sample[redshift.conf.sample] or
|
||||
https://gitlab.com/chinstrap/gammastep/-/blob/master/gammastep.conf.sample[gammastep.conf.sample]
|
||||
for the available additional options in each program.
|
||||
|
||||
* Specifying `programs.neomutt.binds.map` or `programs.neomutt.macros.map` as a
|
||||
single string is now deprecated in favor of specfiying it as a list of
|
||||
strings.
|
||||
|
||||
* The `programs.neovim.configure` is deprecated in favor of other `programs.neovim` options;
|
||||
please use the other options at your disposal:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
configure.packages.*.opt -> programs.neovim.plugins = [ { plugin = ...; optional = true; }]
|
||||
configure.packages.*.start -> programs.neovim.plugins = [ { plugin = ...; }]
|
||||
configure.customRC -> programs.neovim.extraConfig
|
||||
----
|
||||
|
||||
* Home Manager now respects the `NO_COLOR` environment variable as per
|
||||
https://no-color.org/[].
|
||||
|
||||
* Qt module now supports <<opt-qt.style.name>> to specify a theme name and
|
||||
<<opt-qt.style.package>> to specify a theme package. If you have set
|
||||
<<opt-qt.platformTheme>> to `gnome`, a <<opt-qt.style.package>> compatible
|
||||
with both Qt and Gtk is now required to be set. For instance:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
qt = {
|
||||
platformTheme = "gnome";
|
||||
style = {
|
||||
name = "adwaita-dark";
|
||||
package = pkgs.adwaita-qt;
|
||||
};
|
||||
};
|
||||
----
|
||||
|
||||
* The library type `fontType` now has a `size` attribute in addition to `name`. For example:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
font = {
|
||||
name = "DejaVu Sans";
|
||||
size = 8;
|
||||
};
|
||||
----
|
||||
|
||||
* The <<opt-programs.htop.settings>> option is introduced to replace individual
|
||||
options in `programs.htop`. To migrate, set the htop options directly in
|
||||
<<opt-programs.htop.settings>>. For example:
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
programs.htop = {
|
||||
enabled = true;
|
||||
settings = {
|
||||
color_scheme = 5;
|
||||
delay = 15;
|
||||
highlight_base_name = 1;
|
||||
highlight_megabytes = 1;
|
||||
highlight_threads = 1;
|
||||
};
|
||||
};
|
||||
----
|
||||
|
||||
[[sec-release-21.05-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
"21.05" or later.
|
||||
|
||||
* The `newsboat` module now stores generated configuration in
|
||||
`$XDG_CONFIG_HOME/newsboat`.
|
194
third_party/home-manager/docs/release-notes/rl-2105.md
vendored
Normal file
194
third_party/home-manager/docs/release-notes/rl-2105.md
vendored
Normal file
|
@ -0,0 +1,194 @@
|
|||
# Release 21.05 {#sec-release-21.05}
|
||||
|
||||
The 21.05 release branch became the stable branch in May, 2021.
|
||||
|
||||
## Highlights {#sec-release-21.05-highlights}
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
- The 'opt-programs.broot.verbs\` option is now a list rather than an
|
||||
attribute set. To migrate, move the keys of the attrset into the
|
||||
list items' `invocation` keys. For example,
|
||||
|
||||
``` nix
|
||||
programs.broot.verbs = {
|
||||
"p" = { execution = ":parent"; };
|
||||
};
|
||||
```
|
||||
|
||||
becomes
|
||||
|
||||
``` nix
|
||||
programs.broot.verbs = [
|
||||
{
|
||||
invocation = "p";
|
||||
execution = ":parent";
|
||||
}
|
||||
];
|
||||
```
|
||||
|
||||
- The [programs.mpv.package](#opt-programs.mpv.package) option has been changed to
|
||||
allow custom derivations. The following configuration is now
|
||||
possible:
|
||||
|
||||
``` nix
|
||||
programs.mpv.package = (pkgs.wrapMpv (pkgs.mpv-unwrapped.override {
|
||||
vapoursynthSupport = true;
|
||||
}) {
|
||||
extraMakeWrapperArgs = [
|
||||
"--prefix" "LD_LIBRARY_PATH" ":" "${pkgs.vapoursynth-mvtools}/lib/vapoursynth"
|
||||
];
|
||||
});
|
||||
```
|
||||
|
||||
As a result of this change, [programs.mpv.package](#opt-programs.mpv.package) is no
|
||||
longer the resulting derivation. Use the newly introduced
|
||||
`programs.mpv.finalPackage` instead.
|
||||
|
||||
- The [programs.rofi.extraConfig](#opt-programs.rofi.extraConfig) option is now an attribute
|
||||
set rather than a string. To migrate, move each line into the
|
||||
attribute set, removing the `rofi.` prefix from the keys. For
|
||||
example,
|
||||
|
||||
``` nix
|
||||
programs.rofi.extraConfig = ''
|
||||
rofi.show-icons: true
|
||||
rofi.modi: drun,emoji,ssh
|
||||
'';
|
||||
```
|
||||
|
||||
becomes
|
||||
|
||||
``` nix
|
||||
programs.rofi.extraConfig = {
|
||||
show-icons = true;
|
||||
modi = "drun,emoji,ssh";
|
||||
};
|
||||
```
|
||||
|
||||
- The [programs.rofi.theme](#opt-programs.rofi.theme) option now supports defining a
|
||||
theme using an attribute set, the following configuration is now
|
||||
possible:
|
||||
|
||||
``` nix
|
||||
programs.rofi.theme = let
|
||||
# Necessary to avoid quoting non-string values
|
||||
inherit (config.lib.formats.rasi) mkLiteral;
|
||||
in {
|
||||
"@import" = "~/.config/rofi/theme.rasi";
|
||||
|
||||
"*" = {
|
||||
background-color = mkLiteral "#000000";
|
||||
foreground-color = mkLiteral "rgba ( 250, 251, 252, 100 % )";
|
||||
border-color = mkLiteral "#FFFFFF";
|
||||
width = 512;
|
||||
};
|
||||
|
||||
"#textbox-prompt-colon" = {
|
||||
expand = false;
|
||||
str = ":";
|
||||
margin = mkLiteral "0px 0.3em 0em 0em";
|
||||
text-color = mkLiteral "@foreground-color";
|
||||
};
|
||||
};
|
||||
```
|
||||
|
||||
- The `services.redshift.extraOptions` and
|
||||
`services.gammastep.extraOptions` options were removed in favor of
|
||||
[services.redshift.settings](#opt-services.redshift.settings) and
|
||||
`services.gammastep.settings`, that are now an attribute set rather
|
||||
than a string. They also support new features not available before,
|
||||
for example:
|
||||
|
||||
``` nix
|
||||
services.redshift = {
|
||||
dawnTime = "6:00-7:45";
|
||||
duskTime = "18:35-20:15";
|
||||
settings = {
|
||||
redshift = {
|
||||
gamma = 0.8;
|
||||
adjustment-method = "randr";
|
||||
};
|
||||
|
||||
randr = {
|
||||
screen = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
```
|
||||
|
||||
It is recommended to check either
|
||||
[redshift.conf.sample](https://github.com/jonls/redshift/blob/master/redshift.conf.sample)
|
||||
or
|
||||
[gammastep.conf.sample](https://gitlab.com/chinstrap/gammastep/-/blob/master/gammastep.conf.sample)
|
||||
for the available additional options in each program.
|
||||
|
||||
- Specifying `programs.neomutt.binds.map` or
|
||||
`programs.neomutt.macros.map` as a single string is now deprecated
|
||||
in favor of specfiying it as a list of strings.
|
||||
|
||||
- The `programs.neovim.configure` is deprecated in favor of other
|
||||
`programs.neovim` options; please use the other options at your
|
||||
disposal:
|
||||
|
||||
``` nix
|
||||
configure.packages.*.opt -> programs.neovim.plugins = [ { plugin = ...; optional = true; }]
|
||||
configure.packages.*.start -> programs.neovim.plugins = [ { plugin = ...; }]
|
||||
configure.customRC -> programs.neovim.extraConfig
|
||||
```
|
||||
|
||||
- Home Manager now respects the `NO_COLOR` environment variable as per
|
||||
<https://no-color.org/>.
|
||||
|
||||
- Qt module now supports [qt.style.name](#opt-qt.style.name) to specify a theme
|
||||
name and [qt.style.package](#opt-qt.style.package) to specify a theme package. If
|
||||
you have set [qt.platformTheme](#opt-qt.platformTheme) to `gnome`, a
|
||||
[qt.style.package](#opt-qt.style.package) compatible with both Qt and Gtk is now
|
||||
required to be set. For instance:
|
||||
|
||||
``` nix
|
||||
qt = {
|
||||
platformTheme = "gnome";
|
||||
style = {
|
||||
name = "adwaita-dark";
|
||||
package = pkgs.adwaita-qt;
|
||||
};
|
||||
};
|
||||
```
|
||||
|
||||
- The library type `fontType` now has a `size` attribute in addition
|
||||
to `name`. For example:
|
||||
|
||||
``` nix
|
||||
font = {
|
||||
name = "DejaVu Sans";
|
||||
size = 8;
|
||||
};
|
||||
```
|
||||
|
||||
- The [programs.htop.settings](#opt-programs.htop.settings) option is introduced to
|
||||
replace individual options in `programs.htop`. To migrate, set the
|
||||
htop options directly in [programs.htop.settings](#opt-programs.htop.settings). For
|
||||
example:
|
||||
|
||||
``` nix
|
||||
programs.htop = {
|
||||
enabled = true;
|
||||
settings = {
|
||||
color_scheme = 5;
|
||||
delay = 15;
|
||||
highlight_base_name = 1;
|
||||
highlight_megabytes = 1;
|
||||
highlight_threads = 1;
|
||||
};
|
||||
};
|
||||
```
|
||||
|
||||
## State Version Changes {#sec-release-21.05-state-version-changes}
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
\"21.05\" or later.
|
||||
|
||||
- The `newsboat` module now stores generated configuration in
|
||||
`$XDG_CONFIG_HOME/newsboat`.
|
|
@ -1,73 +0,0 @@
|
|||
[[sec-release-21.11]]
|
||||
== Release 21.11
|
||||
|
||||
The 21.11 release branch became the stable branch in November, 2021.
|
||||
|
||||
[[sec-release-21.11-highlights]]
|
||||
=== Highlights
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* All Home Manager modules are now loaded on all platforms. With this
|
||||
change you will get a more descriptive error message if you attempt to
|
||||
enable a module that is incompatible with the host platform.
|
||||
+
|
||||
Previously, modules that were platform specific would only be loaded
|
||||
on that particular platform. For example, a module defining a
|
||||
https://systemd.io/[systemd] service would only be loaded when the
|
||||
host platform was Linux. This reduced evaluation times, simplified the
|
||||
generated documentation, and made it impossible to accidentally use
|
||||
modules that do not support the host platform.
|
||||
+
|
||||
While the above benefits are quite nice, avoiding module loads also
|
||||
brings a few problems. For example, the
|
||||
https://nix-community.github.io/home-manager/[public documentation]
|
||||
will only show the options available for Linux hosts and the
|
||||
documentation cannot make references to options within modules that
|
||||
are unavailable on some hosts. Finally, users who wish to use the same
|
||||
configuration file for different platforms cannot do so, even if the
|
||||
platform incompatible options are unused.
|
||||
+
|
||||
Ultimately, the benefits of loading all modules won and the behavior
|
||||
has now changed. For associated discussion see
|
||||
https://github.com/nix-community/home-manager/issues/1906[issue #1906].
|
||||
|
||||
* Rofi version 1.7.0 removed many options that were used by the module and replaced them with custom themes, which are more flexible and powerful.
|
||||
+
|
||||
You can replicate your old configuration by moving those options to <<opt-programs.rofi.theme>>. Keep in mind that the syntax is different so you may need to do some changes.
|
||||
|
||||
* Taskwarrior version 2.6.0 respects XDG Specification for the config file now.
|
||||
Option <<opt-programs.taskwarrior.config>> and friends now generate the config file at
|
||||
`$XDG_CONFIG_HOME/task/taskrc` instead of `~/.taskrc`.
|
||||
|
||||
[[sec-release-21.11-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
"21.11" or later.
|
||||
|
||||
* The <<opt-home.keyboard>> option now defaults to `null`, meaning that Home Manager won't do any keyboard layout management. For example, `setxkbmap` won't be run in X sessions.
|
||||
|
||||
* The <<opt-programs.pet.settings>> option no longer place its value inside a `General` attribute.
|
||||
For example,
|
||||
+
|
||||
[source,nix]
|
||||
programs.pet.settings.editor = "nvim";
|
||||
+
|
||||
becomes
|
||||
+
|
||||
[source,nix]
|
||||
programs.pet.settings.General.editor = "nvim";
|
||||
|
||||
* The <<opt-programs.waybar.settings>> option now allows defining modules directly under <<opt-programs.waybar.settings>>.
|
||||
For example,
|
||||
+
|
||||
[source,nix]
|
||||
programs.waybar.settings.modules."custom/my-module" = { };
|
||||
+
|
||||
becomes
|
||||
+
|
||||
[source,nix]
|
||||
programs.waybar.settings."custom/my-module" = { };
|
||||
|
81
third_party/home-manager/docs/release-notes/rl-2111.md
vendored
Normal file
81
third_party/home-manager/docs/release-notes/rl-2111.md
vendored
Normal file
|
@ -0,0 +1,81 @@
|
|||
# Release 21.11 {#sec-release-21.11}
|
||||
|
||||
The 21.11 release branch became the stable branch in November, 2021.
|
||||
|
||||
## Highlights {#sec-release-21.11-highlights}
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
- All Home Manager modules are now loaded on all platforms. With this
|
||||
change you will get a more descriptive error message if you attempt
|
||||
to enable a module that is incompatible with the host platform.
|
||||
|
||||
Previously, modules that were platform specific would only be loaded
|
||||
on that particular platform. For example, a module defining a
|
||||
[systemd](https://systemd.io/) service would only be loaded when the
|
||||
host platform was Linux. This reduced evaluation times, simplified
|
||||
the generated documentation, and made it impossible to accidentally
|
||||
use modules that do not support the host platform.
|
||||
|
||||
While the above benefits are quite nice, avoiding module loads also
|
||||
brings a few problems. For example, the [public
|
||||
documentation](https://nix-community.github.io/home-manager/) will
|
||||
only show the options available for Linux hosts and the
|
||||
documentation cannot make references to options within modules that
|
||||
are unavailable on some hosts. Finally, users who wish to use the
|
||||
same configuration file for different platforms cannot do so, even
|
||||
if the platform incompatible options are unused.
|
||||
|
||||
Ultimately, the benefits of loading all modules won and the behavior
|
||||
has now changed. For associated discussion see
|
||||
[issue #1906](https://github.com/nix-community/home-manager/issues/1906).
|
||||
|
||||
- Rofi version 1.7.0 removed many options that were used by the module
|
||||
and replaced them with custom themes, which are more flexible and
|
||||
powerful.
|
||||
|
||||
You can replicate your old configuration by moving those options to
|
||||
[programs.rofi.theme](#opt-programs.rofi.theme). Keep in mind that the syntax is
|
||||
different so you may need to do some changes.
|
||||
|
||||
- Taskwarrior version 2.6.0 respects XDG Specification for the config
|
||||
file now. Option [programs.taskwarrior.config](#opt-programs.taskwarrior.config) and friends
|
||||
now generate the config file at `$XDG_CONFIG_HOME/task/taskrc`
|
||||
instead of `~/.taskrc`.
|
||||
|
||||
## State Version Changes {#sec-release-21.11-state-version-changes}
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
\"21.11\" or later.
|
||||
|
||||
- The [home.keyboard](#opt-home.keyboard) option now defaults to `null`, meaning
|
||||
that Home Manager won't do any keyboard layout management. For
|
||||
example, `setxkbmap` won't be run in X sessions.
|
||||
|
||||
- The [programs.pet.settings](#opt-programs.pet.settings) option no longer place its
|
||||
value inside a `General` attribute. For example,
|
||||
|
||||
``` nix
|
||||
programs.pet.settings.editor = "nvim";
|
||||
```
|
||||
|
||||
becomes
|
||||
|
||||
``` nix
|
||||
programs.pet.settings.General.editor = "nvim";
|
||||
```
|
||||
|
||||
- The [programs.waybar.settings](#opt-programs.waybar.settings) option now allows defining
|
||||
modules directly under [programs.waybar.settings](#opt-programs.waybar.settings). For
|
||||
example,
|
||||
|
||||
``` nix
|
||||
programs.waybar.settings.modules."custom/my-module" = { };
|
||||
```
|
||||
|
||||
becomes
|
||||
|
||||
``` nix
|
||||
programs.waybar.settings."custom/my-module" = { };
|
||||
```
|
|
@ -1,44 +0,0 @@
|
|||
[[sec-release-22.05]]
|
||||
== Release 22.05
|
||||
|
||||
The 22.05 release branch became the stable branch in May, 2022.
|
||||
|
||||
[[sec-release-22.05-highlights]]
|
||||
=== Highlights
|
||||
|
||||
:hm-weblate: https://hosted.weblate.org/projects/home-manager/
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* The `programs.waybar.settings.modules` option was removed.
|
||||
Waybar modules should now be declared directly under `programs.waybar.settings`.
|
||||
|
||||
* Home Manager now partially support translation of texts into different languages.
|
||||
Note, the support is quite limited at the moment.
|
||||
Specifically, it only applies to parts of the system written in the Bash language,
|
||||
such as the `home-manager` command line tool and the activation script.
|
||||
+
|
||||
If you would like to contribute to the translation effort
|
||||
then you can do so through the {hm-weblate}[Home Manager Weblate project].
|
||||
|
||||
* A new module, `launchd.agents` was added.
|
||||
Use this to enable services based on macOS LaunchAgents.
|
||||
|
||||
[[sec-release-22.05-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below.
|
||||
These changes are only active if the `home.stateVersion` option is set to "22.05" or later.
|
||||
|
||||
* The <<opt-programs.waybar.settings>> option now allows defining modules directly under <<opt-programs.waybar.settings>>.
|
||||
Defining modules under `programs.waybar.settings.modules` will now be an error.
|
||||
For example,
|
||||
+
|
||||
[source,nix]
|
||||
programs.waybar.settings.modules."custom/my-module" = { };
|
||||
+
|
||||
becomes
|
||||
+
|
||||
[source,nix]
|
||||
programs.waybar.settings."custom/my-module" = { };
|
||||
|
45
third_party/home-manager/docs/release-notes/rl-2205.md
vendored
Normal file
45
third_party/home-manager/docs/release-notes/rl-2205.md
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
# Release 22.05 {#sec-release-22.05}
|
||||
|
||||
The 22.05 release branch became the stable branch in May, 2022.
|
||||
|
||||
## Highlights {#sec-release-22.05-highlights}
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
- The `programs.waybar.settings.modules` option was removed. Waybar
|
||||
modules should now be declared directly under
|
||||
`programs.waybar.settings`.
|
||||
|
||||
- Home Manager now partially support translation of texts into
|
||||
different languages. Note, the support is quite limited at the
|
||||
moment. Specifically, it only applies to parts of the system written
|
||||
in the Bash language, such as the `home-manager` command line tool
|
||||
and the activation script.
|
||||
|
||||
If you would like to contribute to the translation effort then you
|
||||
can do so through the [Home Manager Weblate
|
||||
project](https://hosted.weblate.org/projects/home-manager/).
|
||||
|
||||
- A new module, `launchd.agents` was added. Use this to enable
|
||||
services based on macOS LaunchAgents.
|
||||
|
||||
## State Version Changes {#sec-release-22.05-state-version-changes}
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
\"22.05\" or later.
|
||||
|
||||
- The [programs.waybar.settings](#opt-programs.waybar.settings) option now allows defining
|
||||
modules directly under [programs.waybar.settings](#opt-programs.waybar.settings).
|
||||
Defining modules under `programs.waybar.settings.modules` will now
|
||||
be an error. For example,
|
||||
|
||||
``` nix
|
||||
programs.waybar.settings.modules."custom/my-module" = { };
|
||||
```
|
||||
|
||||
becomes
|
||||
|
||||
``` nix
|
||||
programs.waybar.settings."custom/my-module" = { };
|
||||
```
|
|
@ -1,113 +0,0 @@
|
|||
[[sec-release-22.11]]
|
||||
== Release 22.11
|
||||
|
||||
The 22.11 release branch became the stable branch in November, 2022.
|
||||
|
||||
[[sec-release-22.11-highlights]]
|
||||
=== Highlights
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* The <<opt-home.stateVersion>> option no longer has a default value.
|
||||
It used to default to ``18.09'', which was the Home Manager version
|
||||
that introduced the option. If your configuration does not explicitly
|
||||
set this option then you need to add
|
||||
+
|
||||
[source,nix]
|
||||
home.stateVersion = "18.09";
|
||||
+
|
||||
to your configuration.
|
||||
|
||||
* The Flake function `homeManagerConfiguration` has been simplified.
|
||||
Specifically, the arguments
|
||||
+
|
||||
--
|
||||
- `configuration`,
|
||||
- `username`,
|
||||
- `homeDirectory`,
|
||||
- `stateVersion`,
|
||||
- `extraModules`, and
|
||||
- `system`
|
||||
--
|
||||
+
|
||||
have been removed. Instead use the new `modules` argument, which
|
||||
accepts a list of NixOS modules.
|
||||
+
|
||||
Further, the `pkgs` argument is now mandatory and should be set to
|
||||
`nixpkgs.legacyPackages.${system}` where `nixpkgs` is the Nixpkgs
|
||||
input of your choice.
|
||||
+
|
||||
For example, if your Flake currently contains
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
homeManagerConfiguration {
|
||||
configuration = import ./home.nix;
|
||||
system = "x86_64-linux";
|
||||
username = "jdoe";
|
||||
homeDirectory = "/home/jdoe";
|
||||
stateVersion = "22.05";
|
||||
extraModules = [ ./some-extra-module.nix ];
|
||||
}
|
||||
----
|
||||
+
|
||||
then you can change it to
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
modules = [
|
||||
./home.nix
|
||||
./some-extra-module.nix
|
||||
{
|
||||
home = {
|
||||
username = "jdoe";
|
||||
homeDirectory = "/home/jdoe";
|
||||
stateVersion = "22.05";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
----
|
||||
+
|
||||
Of course, you can move the assignment of <<opt-home.username>>,
|
||||
<<opt-home.homeDirectory>>, and <<opt-home.stateVersion>> to some
|
||||
other file or simply place them in your `home.nix`.
|
||||
|
||||
* The `services.picom` module has been refactored to use structural
|
||||
settings.
|
||||
+
|
||||
As a result `services.picom.extraOptions` has been removed in favor of
|
||||
<<opt-services.picom.settings>>. Also, `services.picom.blur*` were
|
||||
removed since upstream changed the blur settings to be more flexible.
|
||||
You can migrate the blur settings to use
|
||||
<<opt-services.picom.settings>> instead.
|
||||
|
||||
* The `services.compton` module has been removed. It was deprecated in
|
||||
release 20.03. Use `services.picom` instead.
|
||||
|
||||
[[sec-release-22.11-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below.
|
||||
These changes are only active if the `home.stateVersion` option is set to "22.11" or later.
|
||||
|
||||
* The <<opt-services.mpd.musicDirectory>> option now defaults to the
|
||||
value of <<opt-xdg.userDirs.music>> if <<opt-xdg.userDirs.enable>> is
|
||||
enabled. Otherwise it is undefined and must be specified in the user
|
||||
configuration.
|
||||
|
||||
* The activation script now resets `PATH` before running. Before, the
|
||||
user's `PATH` environment variable would be used in the script and
|
||||
this made it possible for commands in the activation script to run
|
||||
arbitrary commands accessible to the user. We now restrict the
|
||||
activation script to commands that are explicitly specified.
|
||||
+
|
||||
There is no official way to restore the old behavior. We attempt to
|
||||
make the activation script as reproducible as possible and honoring
|
||||
the user's `PATH` reduces reproducibility.
|
||||
+
|
||||
If you need to run a command in an activation script block then refer
|
||||
to the command by its absolute command path, such as
|
||||
`${pkgs.hello}/bin/hello`.
|
113
third_party/home-manager/docs/release-notes/rl-2211.md
vendored
Normal file
113
third_party/home-manager/docs/release-notes/rl-2211.md
vendored
Normal file
|
@ -0,0 +1,113 @@
|
|||
# Release 22.11 {#sec-release-22.11}
|
||||
|
||||
The 22.11 release branch became the stable branch in November, 2022.
|
||||
|
||||
## Highlights {#sec-release-22.11-highlights}
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
- The [home.stateVersion](#opt-home.stateVersion) option no longer has a default
|
||||
value. It used to default to "18.09", which was the Home Manager
|
||||
version that introduced the option. If your configuration does not
|
||||
explicitly set this option then you need to add
|
||||
|
||||
``` nix
|
||||
home.stateVersion = "18.09";
|
||||
```
|
||||
|
||||
to your configuration.
|
||||
|
||||
- The Flake function `homeManagerConfiguration` has been simplified.
|
||||
Specifically, the arguments
|
||||
|
||||
- `configuration`,
|
||||
|
||||
- `username`,
|
||||
|
||||
- `homeDirectory`,
|
||||
|
||||
- `stateVersion`,
|
||||
|
||||
- `extraModules`, and
|
||||
|
||||
- `system`
|
||||
|
||||
have been removed. Instead use the new `modules` argument, which
|
||||
accepts a list of NixOS modules.
|
||||
|
||||
Further, the `pkgs` argument is now mandatory and should be set to
|
||||
`nixpkgs.legacyPackages.${system}` where `nixpkgs` is the Nixpkgs
|
||||
input of your choice.
|
||||
|
||||
For example, if your Flake currently contains
|
||||
|
||||
``` nix
|
||||
homeManagerConfiguration {
|
||||
configuration = import ./home.nix;
|
||||
system = "x86_64-linux";
|
||||
username = "jdoe";
|
||||
homeDirectory = "/home/jdoe";
|
||||
stateVersion = "22.05";
|
||||
extraModules = [ ./some-extra-module.nix ];
|
||||
}
|
||||
```
|
||||
|
||||
then you can change it to
|
||||
|
||||
``` nix
|
||||
homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
modules = [
|
||||
./home.nix
|
||||
./some-extra-module.nix
|
||||
{
|
||||
home = {
|
||||
username = "jdoe";
|
||||
homeDirectory = "/home/jdoe";
|
||||
stateVersion = "22.05";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
```
|
||||
|
||||
Of course, you can move the assignment of [home.username](#opt-home.username),
|
||||
[home.stateVersion](#opt-home.stateVersion) to
|
||||
some other file or simply place them in your `home.nix`.
|
||||
|
||||
- The `services.picom` module has been refactored to use structural
|
||||
settings.
|
||||
|
||||
As a result `services.picom.extraOptions` has been removed in favor
|
||||
of [services.picom.settings](#opt-services.picom.settings). Also, `services.picom.blur*`
|
||||
were removed since upstream changed the blur settings to be more
|
||||
flexible. You can migrate the blur settings to use
|
||||
[services.picom.settings](#opt-services.picom.settings) instead.
|
||||
|
||||
- The `services.compton` module has been removed. It was deprecated in
|
||||
release 20.03. Use `services.picom` instead.
|
||||
|
||||
## State Version Changes {#sec-release-22.11-state-version-changes}
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
\"22.11\" or later.
|
||||
|
||||
- The [services.mpd.musicDirectory](#opt-services.mpd.musicDirectory) option now defaults to
|
||||
the value of [xdg.userDirs.music](#opt-xdg.userDirs.music) if
|
||||
[xdg.userDirs.enable](#opt-xdg.userDirs.enable) is enabled. Otherwise it is
|
||||
undefined and must be specified in the user configuration.
|
||||
|
||||
- The activation script now resets `PATH` before running. Before, the
|
||||
user's `PATH` environment variable would be used in the script and
|
||||
this made it possible for commands in the activation script to run
|
||||
arbitrary commands accessible to the user. We now restrict the
|
||||
activation script to commands that are explicitly specified.
|
||||
|
||||
There is no official way to restore the old behavior. We attempt to
|
||||
make the activation script as reproducible as possible and honoring
|
||||
the user's `PATH` reduces reproducibility.
|
||||
|
||||
If you need to run a command in an activation script block then
|
||||
refer to the command by its absolute command path, such as
|
||||
`${pkgs.hello}/bin/hello`.
|
|
@ -1,57 +0,0 @@
|
|||
[[sec-release-23.05]]
|
||||
== Release 23.05
|
||||
|
||||
The 23.05 release branch became the stable branch in May, 2023.
|
||||
|
||||
[[sec-release-23.05-highlights]]
|
||||
=== Highlights
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* Firefox add-ons are now managed per-profile.
|
||||
That is, if you are currently having
|
||||
+
|
||||
[source,nix]
|
||||
programs.firefox.extensions = [ foo bar ];
|
||||
+
|
||||
in your configuration then you must change it to
|
||||
+
|
||||
[source,nix]
|
||||
programs.firefox.profiles.myprofile.extensions = [ foo bar ];
|
||||
|
||||
* The default configuration location has been changed from
|
||||
`~/.config/nixpkgs/home.nix` to `~/.config/home-manager/home.nix`.
|
||||
+
|
||||
Similarly, if you are using a Nix flake based setup
|
||||
then the default flake file location has changed from
|
||||
`~/.config/nixpkgs/flake.nix` to `~/.config/home-manager/flake.nix`.
|
||||
+
|
||||
The old location will continue to work but using it will trigger a warning message.
|
||||
We changed the default configuration location to avoid confusion about
|
||||
which files belong to Home Manager and which belong to Nixpkgs.
|
||||
|
||||
* The `home-manager` tool now offers an `init` command.
|
||||
This command can be used to generate an initial Home Manager configuration,
|
||||
and optionally also activate it.
|
||||
The recommended installation method for a standalone Home Manager setup
|
||||
with Nix flakes uses this new command.
|
||||
The standard installation method remains the same but uses the new command internally.
|
||||
See <<sec-flakes-standalone>> for more.
|
||||
|
||||
[[sec-release-23.05-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below.
|
||||
These changes are only active if the `home.stateVersion` option is set to "23.05" or later.
|
||||
|
||||
* The options
|
||||
+
|
||||
--
|
||||
- <<opt-xsession.windowManager.i3.config.window.titlebar>>
|
||||
- <<opt-xsession.windowManager.i3.config.floating.titlebar>>
|
||||
- <<opt-wayland.windowManager.sway.config.window.titlebar>>
|
||||
- <<opt-wayland.windowManager.sway.config.floating.titlebar>>
|
||||
--
|
||||
+
|
||||
now default to `true` which is consistent with the default values for
|
||||
those options used by `i3` and `sway`.
|
59
third_party/home-manager/docs/release-notes/rl-2305.md
vendored
Normal file
59
third_party/home-manager/docs/release-notes/rl-2305.md
vendored
Normal file
|
@ -0,0 +1,59 @@
|
|||
# Release 23.05 {#sec-release-23.05}
|
||||
|
||||
The 23.05 release branch became the stable branch in May, 2023.
|
||||
|
||||
## Highlights {#sec-release-23.05-highlights}
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
- Firefox add-ons are now managed per-profile. That is, if you are
|
||||
currently having
|
||||
|
||||
``` nix
|
||||
programs.firefox.extensions = [ foo bar ];
|
||||
```
|
||||
|
||||
in your configuration then you must change it to
|
||||
|
||||
``` nix
|
||||
programs.firefox.profiles.myprofile.extensions = [ foo bar ];
|
||||
```
|
||||
|
||||
- The default configuration location has been changed from
|
||||
`~/.config/nixpkgs/home.nix` to `~/.config/home-manager/home.nix`.
|
||||
|
||||
Similarly, if you are using a Nix flake based setup then the default
|
||||
flake file location has changed from `~/.config/nixpkgs/flake.nix`
|
||||
to `~/.config/home-manager/flake.nix`.
|
||||
|
||||
The old location will continue to work but using it will trigger a
|
||||
warning message. We changed the default configuration location to
|
||||
avoid confusion about which files belong to Home Manager and which
|
||||
belong to Nixpkgs.
|
||||
|
||||
- The `home-manager` tool now offers an `init` command. This command
|
||||
can be used to generate an initial Home Manager configuration, and
|
||||
optionally also activate it. The recommended installation method for
|
||||
a standalone Home Manager setup with Nix flakes uses this new
|
||||
command. The standard installation method remains the same but uses
|
||||
the new command internally. See [sec-flakes-standalone](#sec-flakes-standalone) for
|
||||
more.
|
||||
|
||||
## State Version Changes {#sec-release-23.05-state-version-changes}
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
\"23.05\" or later.
|
||||
|
||||
- The options
|
||||
|
||||
- [xsession.windowManager.i3.config.window.titlebar](#opt-xsession.windowManager.i3.config.window.titlebar)
|
||||
|
||||
- [xsession.windowManager.i3.config.floating.titlebar](#opt-xsession.windowManager.i3.config.floating.titlebar)
|
||||
|
||||
- [wayland.windowManager.sway.config.window.titlebar](#opt-wayland.windowManager.sway.config.window.titlebar)
|
||||
|
||||
- [wayland.windowManager.sway.config.floating.titlebar](#opt-wayland.windowManager.sway.config.floating.titlebar)
|
||||
|
||||
now default to `true` which is consistent with the default values
|
||||
for those options used by `i3` and `sway`.
|
|
@ -1,41 +0,0 @@
|
|||
[[sec-release-23.11]]
|
||||
== Release 23.11
|
||||
|
||||
This is the current unstable branch and the information in this section is therefore not final.
|
||||
|
||||
[[sec-release-23.11-highlights]]
|
||||
=== Highlights
|
||||
:babelfish: https://github.com/bouk/babelfish
|
||||
:nixpkgs-markdown: https://nixos.org/manual/nixpkgs/unstable/#sec-contributing-markup
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
* When using <<opt-programs.fish.enable>>, the setup code
|
||||
for <<opt-home.sessionVariables>> is now translated
|
||||
with {babelfish}[babelfish].
|
||||
This should result in significantly faster shell startup times
|
||||
but could theoretically break
|
||||
if you have very complex bash expressions in a session variable.
|
||||
Please report any issues you experience.
|
||||
|
||||
* The `.release` file in the Home Manager source tree
|
||||
has been supplanted by `release.json`,
|
||||
which contains more information about the branch.
|
||||
If you have any external code reading this file,
|
||||
please switch to consuming `release.json` instead.
|
||||
The `.release` file will be removed in 24.05.
|
||||
|
||||
* Home Manager has migrated to using
|
||||
the upstream Nixpkgs `lib.nixosOptionsDoc` processor
|
||||
for option documentation.
|
||||
If you have any external Home Manager modules,
|
||||
their option descriptions and literal examples should be translated
|
||||
to {nixpkgs-markdown}[Nixpkgs-flavoured Markdown].
|
||||
|
||||
[[sec-release-23.11-state-version-changes]]
|
||||
=== State Version Changes
|
||||
|
||||
The state version in this release includes the changes below.
|
||||
These changes are only active if the `home.stateVersion` option is set to "23.11" or later.
|
||||
|
||||
* Nothing, yet.
|
37
third_party/home-manager/docs/release-notes/rl-2311.md
vendored
Normal file
37
third_party/home-manager/docs/release-notes/rl-2311.md
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Release 23.11 {#sec-release-23.11}
|
||||
|
||||
The 23.11 release branch became stable in November, 2023.
|
||||
|
||||
## Highlights {#sec-release-23.11-highlights}
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
- When using [programs.fish.enable](#opt-programs.fish.enable), the setup code for
|
||||
[home.sessionVariables](#opt-home.sessionVariables) is now translated with
|
||||
[babelfish](https://github.com/bouk/babelfish). This should result
|
||||
in significantly faster shell startup times but could theoretically
|
||||
break if you have very complex bash expressions in a session
|
||||
variable. Please report any issues you experience.
|
||||
|
||||
- The `.release` file in the Home Manager source tree has been
|
||||
supplanted by `release.json`, which contains more information about
|
||||
the branch. If you have any external code reading this file, please
|
||||
switch to consuming `release.json` instead. The `.release` file will
|
||||
be removed in 24.05.
|
||||
|
||||
- Home Manager has migrated to using the upstream Nixpkgs
|
||||
`lib.nixosOptionsDoc` processor for option documentation. If you
|
||||
have any external Home Manager modules, their option descriptions
|
||||
and literal examples should be translated to [Nixpkgs-flavoured
|
||||
Markdown](https://nixos.org/manual/nixpkgs/unstable/#sec-contributing-markup).
|
||||
|
||||
- The `services.password-store-sync` module has been removed. Use
|
||||
`services.git-sync` instead.
|
||||
|
||||
## State Version Changes {#sec-release-23.11-state-version-changes}
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
\"23.11\" or later.
|
||||
|
||||
- Nothing, yet.
|
19
third_party/home-manager/docs/release-notes/rl-2405.md
vendored
Normal file
19
third_party/home-manager/docs/release-notes/rl-2405.md
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Release 24.05 {#sec-release-24.05}
|
||||
|
||||
This is the current unstable branch and the information in this section
|
||||
is therefore not final.
|
||||
|
||||
## Highlights {#sec-release-24.05-highlights}
|
||||
|
||||
This release has the following notable changes:
|
||||
|
||||
- The `.release` file in the Home Manager project root has been
|
||||
removed. Please use the `release.json` file instead.
|
||||
|
||||
## State Version Changes {#sec-release-24.05-state-version-changes}
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
changes are only active if the `home.stateVersion` option is set to
|
||||
\"24.05\" or later.
|
||||
|
||||
- Nothing, yet.
|
252
third_party/home-manager/docs/usage.adoc
vendored
252
third_party/home-manager/docs/usage.adoc
vendored
|
@ -1,252 +0,0 @@
|
|||
[[ch-usage]]
|
||||
== Using Home Manager
|
||||
|
||||
Your use of Home Manager is centered around the configuration file,
|
||||
which is typically found at `~/.config/home-manager/home.nix` in the standard installation
|
||||
or `~/.config/home-manager/flake.nix` in a Nix flake based installation.
|
||||
|
||||
[NOTE]
|
||||
The default configuration used to be placed in `~/.config/nixpkgs`¸
|
||||
so you may see references to that elsewhere.
|
||||
The old directory still works but Home Manager will print a warning message when used.
|
||||
|
||||
This configuration file can be _built_ and _activated_.
|
||||
|
||||
Building a configuration produces a directory in the Nix store that contains all files and programs that should be available in your home directory and Nix user profile, respectively. The build step also checks that the configuration is valid and it will fail with an error if you, for example, assign a value to an option that does not exist or assign a value of the wrong type. Some modules also have custom assertions that perform more detailed, module specific, checks.
|
||||
|
||||
Concretely, if your configuration contains
|
||||
|
||||
[source,nix]
|
||||
programs.emacs.enable = "yes";
|
||||
|
||||
then building it, for example using `home-manager build`, will result in an error message saying something like
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ home-manager build
|
||||
error: A definition for option `programs.emacs.enable' is not of type `boolean'. Definition values:
|
||||
- In `/home/jdoe/.config/home-manager/home.nix': "yes"
|
||||
(use '--show-trace' to show detailed location information)
|
||||
----
|
||||
|
||||
The message indicates that you must provide a Boolean value for this option, that is, either `true` or `false`. The documentation of each option will state the expected type, for <<opt-programs.emacs.enable>> you will see ``Type: boolean''. You there also find information about the default value and a description of the option. You can find the complete option documentation in <<ch-options>> or directly in the terminal by running
|
||||
|
||||
[source,console]
|
||||
man home-configuration.nix
|
||||
|
||||
Once a configuration is successfully built, it can be activated. The activation performs the steps necessary to make the files, programs, and services available in your user environment. The `home-manager switch` command performs a combined build and activation.
|
||||
|
||||
[[sec-usage-configuration]]
|
||||
=== Configuration Example
|
||||
|
||||
A fresh install of Home Manager will generate a minimal `~/.config/home-manager/home.nix` file containing something like
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = "jdoe";
|
||||
home.homeDirectory = "/home/jdoe";
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
# configuration is compatible with. This helps avoid breakage
|
||||
# when a new Home Manager release introduces backwards
|
||||
# incompatible changes.
|
||||
#
|
||||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
home.stateVersion = "23.05";
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
----
|
||||
|
||||
You can use this as a base for your further configurations.
|
||||
|
||||
[NOTE]
|
||||
If you are not very familiar with the Nix language and NixOS modules then it is encouraged to start with small and simple changes. As you learn you can gradually grow the configuration with confidence.
|
||||
|
||||
As an example, let us expand the initial configuration file to also install the htop and fortune packages, install Emacs with a few extra packages available, and enable the user gpg-agent service.
|
||||
|
||||
To satisfy the above setup we should elaborate the `home.nix` file as follows:
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home.username = "jdoe";
|
||||
home.homeDirectory = "/home/jdoe";
|
||||
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = [ <1>
|
||||
pkgs.htop
|
||||
pkgs.fortune
|
||||
];
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
# configuration is compatible with. This helps avoid breakage
|
||||
# when a new Home Manager release introduces backwards
|
||||
# incompatible changes.
|
||||
#
|
||||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
home.stateVersion = "23.05";
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
programs.emacs = { <2>
|
||||
enable = true;
|
||||
extraPackages = epkgs: [
|
||||
epkgs.nix-mode
|
||||
epkgs.magit
|
||||
];
|
||||
};
|
||||
|
||||
services.gpg-agent = { <3>
|
||||
enable = true;
|
||||
defaultCacheTtl = 1800;
|
||||
enableSshSupport = true;
|
||||
};
|
||||
}
|
||||
----
|
||||
<1> Nixpkgs packages can be installed to the user profile using <<opt-home.packages>>.
|
||||
<2> The option names of a program module typically start with `programs.<package name>`.
|
||||
<3> Similarly, for a service module, the names start with `services.<package name>`. Note in some cases a package has both programs _and_ service options – Emacs is such an example.
|
||||
|
||||
To activate this configuration you can run
|
||||
|
||||
[source,console]
|
||||
home-manager switch
|
||||
|
||||
or if you are not feeling so lucky,
|
||||
|
||||
[source,console]
|
||||
home-manager build
|
||||
|
||||
which will create a `result` link to a directory containing an
|
||||
activation script and the generated home directory files.
|
||||
|
||||
[[sec-usage-rollbacks]]
|
||||
=== Rollbacks
|
||||
|
||||
While the `home-manager` tool does not explicitly support rollbacks at the moment it is relatively easy to perform one manually. The steps to do so are
|
||||
|
||||
1. Run `home-manager generations` to determine which generation you wish to rollback to:
|
||||
+
|
||||
[source,console]
|
||||
----
|
||||
$ home-manager generations
|
||||
2018-01-04 11:56 : id 765 -> /nix/store/kahm1rxk77mnvd2l8pfvd4jkkffk5ijk-home-manager-generation
|
||||
2018-01-03 10:29 : id 764 -> /nix/store/2wsmsliqr5yynqkdyjzb1y57pr5q2lsj-home-manager-generation
|
||||
2018-01-01 12:21 : id 763 -> /nix/store/mv960kl9chn2lal5q8lnqdp1ygxngcd1-home-manager-generation
|
||||
2017-12-29 21:03 : id 762 -> /nix/store/6c0k1r03fxckql4vgqcn9ccb616ynb94-home-manager-generation
|
||||
2017-12-25 18:51 : id 761 -> /nix/store/czc5y6vi1rvnkfv83cs3rn84jarcgsgh-home-manager-generation
|
||||
…
|
||||
----
|
||||
|
||||
2. Copy the Nix store path of the generation you chose, e.g.,
|
||||
+
|
||||
----
|
||||
/nix/store/mv960kl9chn2lal5q8lnqdp1ygxngcd1-home-manager-generation
|
||||
----
|
||||
+
|
||||
for generation 763.
|
||||
|
||||
3. Run the `activate` script inside the copied store path:
|
||||
+
|
||||
[source,console]
|
||||
----
|
||||
$ /nix/store/mv960kl9chn2lal5q8lnqdp1ygxngcd1-home-manager-generation/activate
|
||||
Starting home manager activation
|
||||
…
|
||||
----
|
||||
|
||||
[[sec-usage-dotfiles]]
|
||||
=== Keeping your ~ safe from harm
|
||||
|
||||
To configure programs and services Home Manager must write various things to your home directory. To prevent overwriting any existing files when switching to a new generation, Home Manager will attempt to detect collisions between existing files and generated files. If any such collision is detected the activation will terminate before changing anything on your computer.
|
||||
|
||||
For example, suppose you have a wonderful, painstakingly created `~/.config/git/config` and add
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
# …
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Jane Doe";
|
||||
userEmail = "jane.doe@example.org";
|
||||
};
|
||||
|
||||
# …
|
||||
}
|
||||
----
|
||||
|
||||
to your configuration. Attempting to switch to the generation will then result in
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ home-manager switch
|
||||
…
|
||||
Activating checkLinkTargets
|
||||
Existing file '/home/jdoe/.config/git/config' is in the way
|
||||
Please move the above files and try again
|
||||
----
|
||||
|
||||
[[sec-usage-graphical]]
|
||||
=== Graphical services
|
||||
|
||||
Home Manager includes a number of services intended to run in a graphical session, for example `xscreensaver` and `dunst`. Unfortunately, such services will not be started automatically unless you let Home Manager start your X session. That is, you have something like
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
# …
|
||||
|
||||
services.xserver.enable = true;
|
||||
|
||||
# …
|
||||
}
|
||||
----
|
||||
|
||||
in your system configuration and
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
# …
|
||||
|
||||
xsession.enable = true;
|
||||
xsession.windowManager.command = "…";
|
||||
|
||||
# …
|
||||
}
|
||||
----
|
||||
|
||||
in your Home Manager configuration.
|
||||
|
||||
[[sec-updating]]
|
||||
=== Updating
|
||||
|
||||
If you have installed Home Manager using the Nix channel method
|
||||
then updating Home Manager is done by first updating the channel.
|
||||
You can then switch to the updated Home Manager environment.
|
||||
|
||||
[source,console]
|
||||
----
|
||||
$ nix-channel --update
|
||||
…
|
||||
unpacking channels...
|
||||
$ home-manager switch
|
||||
----
|
283
third_party/home-manager/docs/writing-modules.adoc
vendored
283
third_party/home-manager/docs/writing-modules.adoc
vendored
|
@ -1,283 +0,0 @@
|
|||
[[ch-writing-modules]]
|
||||
== Writing Home Manager Modules
|
||||
:writing-nixos-modules: https://nixos.org/nixos/manual/index.html#sec-writing-modules
|
||||
|
||||
The module system in Home Manager is based entirely on the NixOS module system so we will here only highlight aspects that are specific for Home Manager. For information about the module system as such please refer to the {writing-nixos-modules}[Writing NixOS Modules] chapter of the NixOS manual.
|
||||
|
||||
[[sec-option-types]]
|
||||
=== Option Types
|
||||
:wikipedia-dag: https://en.wikipedia.org/w/index.php?title=Directed_acyclic_graph&oldid=939656095
|
||||
:gvariant-description: https://docs.gtk.org/glib/struct.Variant.html#description
|
||||
|
||||
Overall the basic option types are the same in Home Manager as NixOS. A few Home Manager options, however, make use of custom types that are worth describing in more detail. These are the option types `dagOf` and `gvariant` that are used, for example, by <<opt-programs.ssh.matchBlocks>> and <<opt-dconf.settings>>.
|
||||
|
||||
[[sec-option-types-dag]]`hm.types.dagOf`::
|
||||
Options of this type have attribute sets as values where each member is a node in a {wikipedia-dag}[directed acyclic graph] (DAG). This allows the attribute set entries to express dependency relations among themselves. This can, for example, be used to control the order of match blocks in a OpenSSH client configuration or the order of activation script blocks in <<opt-home.activation>>.
|
||||
+
|
||||
A number of functions are provided to create DAG nodes. The functions are shown below with examples using an option `foo.bar` of type `hm.types.dagOf types.int`.
|
||||
+
|
||||
--
|
||||
[[sec-option-types-dag-entryAnywhere]]`hm.dag.entryAnywhere (value: T) : DagEntry<T>`:::
|
||||
Indicates that `value` can be placed anywhere within the DAG. This is also the default for plain attribute set entries, that is
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = {
|
||||
a = hm.dag.entryAnywhere 0;
|
||||
}
|
||||
----
|
||||
+
|
||||
and
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = {
|
||||
a = 0;
|
||||
}
|
||||
----
|
||||
+
|
||||
are equivalent.
|
||||
+
|
||||
[[sec-option-types-dag-entryAfter]]`hm.dag.entryAfter (afters: list string) (value: T) : DagEntry<T>` :::
|
||||
Indicates that `value` must be placed _after_ each of the attribute names in the given list. For example
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = {
|
||||
a = 0;
|
||||
b = hm.dag.entryAfter [ "a" ] 1;
|
||||
}
|
||||
----
|
||||
+
|
||||
would place `b` after `a` in the graph.
|
||||
+
|
||||
[[sec-option-types-dag-entryBefore]]`hm.dag.entryBefore (befores: list string) (value: T) : DagEntry<T>` :::
|
||||
Indicates that `value` must be placed _before_ each of the attribute names in the given list. For example
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = {
|
||||
b = hm.dag.entryBefore [ "a" ] 1;
|
||||
a = 0;
|
||||
}
|
||||
----
|
||||
+
|
||||
would place `b` before `a` in the graph.
|
||||
+
|
||||
[[sec-option-types-dag-entryBetween]]`hm.dag.entryBetween (befores: list string) (afters: list string) (value: T) : DagEntry<T>` :::
|
||||
Indicates that `value` must be placed _before_ the attribute names in the first list and _after_ the attribute names in the second list. For example
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = {
|
||||
a = 0;
|
||||
c = hm.dag.entryBetween [ "b" ] [ "a" ] 2;
|
||||
b = 1;
|
||||
}
|
||||
----
|
||||
+
|
||||
would place `c` before `b` and after `a` in the graph.
|
||||
--
|
||||
+
|
||||
There are also a set of functions that generate a DAG from a list.
|
||||
These are convenient when you just want to have a linear list of DAG entries,
|
||||
without having to manually enter the relationship between each entry.
|
||||
Each of these functions take a `tag` as argument and the DAG entries will be named `${tag}-${index}`.
|
||||
|
||||
[[sec-option-types-dag-entriesAnywhere]]`hm.dag.entriesAnywhere (tag: string) (values: [T]) : Dag<T>`:::
|
||||
Creates a DAG with the given values with each entry labeled using the given tag. For example
|
||||
+
|
||||
[source,nix]
|
||||
foo.bar = hm.dag.entriesAnywhere "a" [ 0 1 ];
|
||||
+
|
||||
is equivalent to
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = {
|
||||
a-0 = 0;
|
||||
a-1 = hm.dag.entryAfter [ "a-0" ] 1;
|
||||
}
|
||||
----
|
||||
+
|
||||
[[sec-option-types-dag-entriesAfter]]`hm.dag.entriesAfter (tag: string) (afters: list string) (values: [T]) : Dag<T>`:::
|
||||
Creates a DAG with the given values with each entry labeled using the given tag.
|
||||
The list of values are placed are placed _after_ each of the attribute names in `afters`.
|
||||
For example
|
||||
+
|
||||
[source,nix]
|
||||
foo.bar =
|
||||
{ b = 0; }
|
||||
// hm.dag.entriesAfter "a" [ "b" ] [ 1 2 ];
|
||||
+
|
||||
is equivalent to
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = {
|
||||
b = 0;
|
||||
a-0 = hm.dag.entryAfter [ "b" ] 1;
|
||||
a-1 = hm.dag.entryAfter [ "a-0" ] 2;
|
||||
}
|
||||
----
|
||||
+
|
||||
[[sec-option-types-dag-entriesBefore]]`hm.dag.entriesBefore (tag: string) (befores: list string) (values: [T]) : Dag<T>`:::
|
||||
Creates a DAG with the given values with each entry labeled using the given tag.
|
||||
The list of values are placed _before_ each of the attribute names in `befores`.
|
||||
For example
|
||||
+
|
||||
[source,nix]
|
||||
foo.bar =
|
||||
{ b = 0; }
|
||||
// hm.dag.entriesBefore "a" [ "b" ] [ 1 2 ];
|
||||
+
|
||||
is equivalent to
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = {
|
||||
b = 0;
|
||||
a-0 = 1;
|
||||
a-1 = hm.dag.entryBetween [ "b" ] [ "a-0" ] 2;
|
||||
}
|
||||
----
|
||||
+
|
||||
[[sec-option-types-dag-entriesBetween]]`hm.dag.entriesBetween (tag: string) (befores: list string) (afters: list string) (values: [T]) : Dag<T>`:::
|
||||
Creates a DAG with the given values with each entry labeled using the given tag.
|
||||
The list of values are placed _before_ each of the attribute names in `befores`
|
||||
and _after_ each of the attribute names in `afters`.
|
||||
For example
|
||||
+
|
||||
[source,nix]
|
||||
foo.bar =
|
||||
{ b = 0; c = 3; }
|
||||
// hm.dag.entriesBetween "a" [ "b" ] [ "c" ] [ 1 2 ];
|
||||
+
|
||||
is equivalent to
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = {
|
||||
b = 0;
|
||||
c = 3;
|
||||
a-0 = hm.dag.entryAfter [ "c" ] 1;
|
||||
a-1 = hm.dag.entryBetween [ "b" ] [ "a-0" ] 2;
|
||||
}
|
||||
----
|
||||
|
||||
[[sec-option-types-gvariant]]`hm.types.gvariant`::
|
||||
This type is useful for options representing {gvariant-description}[GVariant] values. The type accepts all primitive GVariant types as well as arrays, tuples, ``maybe'' types, and dictionaries.
|
||||
+
|
||||
Some Nix values are automatically coerced to matching GVariant value but the GVariant model is richer so you may need to use one of the provided constructor functions. Examples assume an option `foo.bar` of type `hm.types.gvariant`.
|
||||
+
|
||||
[[sec-option-types-gvariant-mkBoolean]]`hm.gvariant.mkBoolean (v: bool)`:::
|
||||
Takes a Nix value `v` to a GVariant `boolean` value (GVariant format string `b`). Note, Nix booleans are automatically coerced using this function. That is,
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = hm.gvariant.mkBoolean true;
|
||||
----
|
||||
+
|
||||
is equivalent to
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = true;
|
||||
----
|
||||
[[sec-option-types-gvariant-mkString]]`hm.gvariant.mkString (v: string)`:::
|
||||
Takes a Nix value `v` to a GVariant `string` value (GVariant format string `s`). Note, Nix strings are automatically coerced using this function. That is,
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = hm.gvariant.mkString "a string";
|
||||
----
|
||||
+
|
||||
is equivalent to
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = "a string";
|
||||
----
|
||||
[[sec-option-types-gvariant-mkObjectpath]]`hm.gvariant.mkObjectpath (v: string)`:::
|
||||
Takes a Nix value `v` to a GVariant `objectpath` value (GVariant format string `o`).
|
||||
[[sec-option-types-gvariant-mkUchar]]`hm.gvariant.mkUchar (v: string)`:::
|
||||
Takes a Nix value `v` to a GVariant `uchar` value (GVariant format string `y`).
|
||||
[[sec-option-types-gvariant-mkInt16]]`hm.gvariant.mkInt16 (v: int)`:::
|
||||
Takes a Nix value `v` to a GVariant `int16` value (GVariant format string `n`).
|
||||
[[sec-option-types-gvariant-mkUint16]]`hm.gvariant.mkUint16 (v: int)`:::
|
||||
Takes a Nix value `v` to a GVariant `uint16` value (GVariant format string `q`).
|
||||
[[sec-option-types-gvariant-mkInt32]]`hm.gvariant.mkInt32 (v: int)`:::
|
||||
Takes a Nix value `v` to a GVariant `int32` value (GVariant format string `i`). Note, Nix integers are automatically coerced using this function. That is,
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = hm.gvariant.mkInt32 7;
|
||||
----
|
||||
+
|
||||
is equivalent to
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = 7;
|
||||
----
|
||||
[[sec-option-types-gvariant-mkUint32]]`hm.gvariant.mkUint32 (v: int)`:::
|
||||
Takes a Nix value `v` to a GVariant `uint32` value (GVariant format string `u`).
|
||||
[[sec-option-types-gvariant-mkInt64]]`hm.gvariant.mkInt64 (v: int)`:::
|
||||
Takes a Nix value `v` to a GVariant `int64` value (GVariant format string `x`).
|
||||
[[sec-option-types-gvariant-mkUint64]]`hm.gvariant.mkUint64 (v: int)`:::
|
||||
Takes a Nix value `v` to a GVariant `uint64` value (GVariant format string `t`).
|
||||
[[sec-option-types-gvariant-mkDouble]]`hm.gvariant.mkDouble (v: double)`:::
|
||||
Takes a Nix value `v` to a GVariant `double` value (GVariant format string `d`). Note, Nix floats are automatically coerced using this function. That is,
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = hm.gvariant.mkDouble 3.14;
|
||||
----
|
||||
+
|
||||
is equivalent to
|
||||
+
|
||||
[source,nix]
|
||||
----
|
||||
foo.bar = 3.14;
|
||||
----
|
||||
+
|
||||
[[sec-option-types-gvariant-mkArray]]`hm.gvariant.mkArray type elements`:::
|
||||
Builds a GVariant array containing the given list of elements, where each element is a GVariant value of the given type (GVariant format string `a${type}`). The `type` value can be constructed using
|
||||
+
|
||||
--
|
||||
- `hm.gvariant.type.string` (GVariant format string `s`)
|
||||
- `hm.gvariant.type.boolean` (GVariant format string `b`)
|
||||
- `hm.gvariant.type.uchar` (GVariant format string `y`)
|
||||
- `hm.gvariant.type.int16` (GVariant format string `n`)
|
||||
- `hm.gvariant.type.uint16` (GVariant format string `q`)
|
||||
- `hm.gvariant.type.int32` (GVariant format string `i`)
|
||||
- `hm.gvariant.type.uint32` (GVariant format string `u`)
|
||||
- `hm.gvariant.type.int64` (GVariant format string `x`)
|
||||
- `hm.gvariant.type.uint64` (GVariant format string `t`)
|
||||
- `hm.gvariant.type.double` (GVariant format string `d`)
|
||||
- `hm.gvariant.type.variant` (GVariant format string `v`)
|
||||
- `hm.gvariant.type.arrayOf type` (GVariant format string `a${type}`)
|
||||
- `hm.gvariant.type.maybeOf type` (GVariant format string `m${type}`)
|
||||
- `hm.gvariant.type.tupleOf types` (GVariant format string `(${lib.concatStrings types})`)
|
||||
- `hm.gvariant.type.dictionaryEntryOf [keyType valueType]` (GVariant format string `{${keyType}${valueType}}`)
|
||||
--
|
||||
+
|
||||
where `type` and `types` are themselves a type and list of types, respectively.
|
||||
+
|
||||
[[sec-option-types-gvariant-mkEmptyArray]]`hm.gvariant.mkEmptyArray type`:::
|
||||
An alias of <<sec-option-types-gvariant-mkArray,`hm.gvariant.mkArray type []`>>.
|
||||
+
|
||||
[[sec-option-types-gvariant-mkNothing]]`hm.gvariant.mkNothing type`:::
|
||||
Builds a GVariant maybe value (GVariant format string `m${type}`) whose (non-existent) element is of the given type. The `type` value is constructed as described for the <<sec-option-types-gvariant-mkArray,`mkArray`>> function above.
|
||||
+
|
||||
[[sec-option-types-gvariant-mkJust]]`hm.gvariant.mkJust element`:::
|
||||
Builds a GVariant maybe value (GVariant format string `m${element.type}`) containing the given GVariant element.
|
||||
+
|
||||
[[sec-option-types-gvariant-mkTuple]]`hm.gvariant.mkTuple elements`:::
|
||||
Builds a GVariant tuple containing the given list of elements, where each element is a GVariant value.
|
||||
+
|
||||
[[sec-option-types-gvariant-mkVariant]]`hm.gvariant.mkVariant element`:::
|
||||
Builds a GVariant variant (GVariant format string `v`) which contains the value of a GVariant element.
|
||||
+
|
||||
[[sec-option-types-gvariant-mkDictionaryEntry]]`hm.gvariant.mkDictionaryEntry [key value]`:::
|
||||
Builds a GVariant dictionary entry containing the given list of elements (GVariant format string `{${key.type}${value.type}}`), where each element is a GVariant value.
|
6
third_party/home-manager/flake.lock
vendored
6
third_party/home-manager/flake.lock
vendored
|
@ -2,11 +2,11 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1690881714,
|
||||
"narHash": "sha256-h/nXluEqdiQHs1oSgkOOWF+j8gcJMWhwnZ9PFabN6q0=",
|
||||
"lastModified": 1703961334,
|
||||
"narHash": "sha256-M1mV/Cq+pgjk0rt6VxoyyD+O8cOUiai8t9Q6Yyq4noY=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "9e1960bc196baf6881340d53dccb203a951745a2",
|
||||
"rev": "b0d36bd0a420ecee3bc916c91886caca87c894e9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
13
third_party/home-manager/flake.nix
vendored
13
third_party/home-manager/flake.nix
vendored
|
@ -80,7 +80,10 @@
|
|||
configuration = { ... }: {
|
||||
imports = modules
|
||||
++ [{ programs.home-manager.path = toString ./.; }];
|
||||
nixpkgs = { inherit (pkgs) config overlays; };
|
||||
nixpkgs = {
|
||||
config = nixpkgs.lib.mkDefault pkgs.config;
|
||||
inherit (pkgs) overlays;
|
||||
};
|
||||
};
|
||||
});
|
||||
};
|
||||
|
@ -103,12 +106,18 @@
|
|||
packages = forAllSystems (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
lib = pkgs.lib;
|
||||
releaseInfo = nixpkgs.lib.importJSON ./release.json;
|
||||
docs = import ./docs {
|
||||
inherit pkgs;
|
||||
inherit (releaseInfo) release isReleaseBranch;
|
||||
};
|
||||
hmPkg = pkgs.callPackage ./home-manager { path = toString ./.; };
|
||||
|
||||
testPackages = let
|
||||
tests = import ./tests { inherit pkgs; };
|
||||
renameTestPkg = n: lib.nameValuePair "test-${n}";
|
||||
in lib.mapAttrs' renameTestPkg tests.build;
|
||||
in {
|
||||
default = hmPkg;
|
||||
home-manager = hmPkg;
|
||||
|
@ -116,7 +125,7 @@
|
|||
docs-html = docs.manual.html;
|
||||
docs-json = docs.options.json;
|
||||
docs-manpages = docs.manPages;
|
||||
});
|
||||
} // testPackages);
|
||||
|
||||
defaultPackage = forAllSystems (system: self.packages.${system}.default);
|
||||
});
|
||||
|
|
|
@ -301,7 +301,7 @@ _home-manager_completions ()
|
|||
"--verbose" "--cores" "--debug" "--impure" "--keep-failed" \
|
||||
"--keep-going" "-j" "--max-jobs" "--no-substitute" "--no-out-link" \
|
||||
"-L" "--print-build-logs" \
|
||||
"--show-trace" "--substitute" "--builders" "--version" \
|
||||
"--show-trace" "--flake" "--substitute" "--builders" "--version" \
|
||||
"--update-input" "--override-input" "--experimental-features" \
|
||||
"--extra-experimental-features" "--refresh")
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ _arguments \
|
|||
'-A[attribute]:ATTRIBUTE:()' \
|
||||
'-I[search path]:PATH:_files -/' \
|
||||
'-b[backup files]:EXT:()' \
|
||||
'--flake[flake-uri]:PATH:_files -/' \
|
||||
'--cores[cores]:NUM:()' \
|
||||
'--debug[debug]' \
|
||||
'--impure[impure]' \
|
||||
|
@ -53,6 +54,7 @@ case "$state" in
|
|||
build|switch)
|
||||
_arguments \
|
||||
'--cores[cores]:NUM:()' \
|
||||
'--flake[flake-uri]:PATH:_files -/' \
|
||||
'--debug[debug]' \
|
||||
'--impure[impure]' \
|
||||
'--keep-failed[keep failed]' \
|
||||
|
|
|
@ -29,7 +29,9 @@ function removeByName() {
|
|||
}
|
||||
|
||||
function setNixProfileCommands() {
|
||||
if [[ -e $HOME/.nix-profile/manifest.json ]] ; then
|
||||
if [[ -e $HOME/.nix-profile/manifest.json \
|
||||
|| -e ${XDG_STATE_HOME:-$HOME/.local/state}/nix/profile/manifest.json ]] ; then
|
||||
|
||||
LIST_OUTPATH_CMD="nix profile list"
|
||||
REMOVE_CMD="removeByName"
|
||||
else
|
||||
|
@ -132,7 +134,7 @@ function setHomeManagerNixPath() {
|
|||
_iWarn $'The fallback Home Manager path %s has been deprecated and a file/directory was found there.' \
|
||||
"$p"
|
||||
# translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
_i $'To remove this warning, do one of the fallowing.
|
||||
_i $'To remove this warning, do one of the following.
|
||||
|
||||
1. Explicitly tell Home Manager to use the path, for example by adding
|
||||
|
||||
|
@ -155,6 +157,11 @@ function setHomeManagerNixPath() {
|
|||
|
||||
# Sets some useful Home Manager related paths as global read-only variables.
|
||||
function setHomeManagerPathVariables() {
|
||||
# If called twice then just exit early.
|
||||
if [[ -v HM_DATA_HOME ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
declare -r globalNixStateDir="${NIX_STATE_DIR:-/nix/var/nix}"
|
||||
declare -r globalProfilesDir="$globalNixStateDir/profiles/per-user/$USER"
|
||||
declare -r globalGcrootsDir="$globalNixStateDir/gcroots/per-user/$USER"
|
||||
|
@ -354,7 +361,7 @@ $xdgVars
|
|||
# You should not change this value, even if you update Home Manager. If you do
|
||||
# want to update the value, then make sure to first check the Home Manager
|
||||
# release notes.
|
||||
home.stateVersion = "23.05"; # Please read the comment before changing.
|
||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
||||
|
||||
# The home.packages option allows you to install Nix packages into your
|
||||
# environment.
|
||||
|
@ -392,16 +399,21 @@ $xdgVars
|
|||
# '';
|
||||
};
|
||||
|
||||
# You can also manage environment variables but you will have to manually
|
||||
# source
|
||||
# Home Manager can also manage your environment variables through
|
||||
# 'home.sessionVariables'. If you don't want to manage your shell through Home
|
||||
# Manager then you have to manually source 'hm-session-vars.sh' located at
|
||||
# either
|
||||
#
|
||||
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||
#
|
||||
# or
|
||||
#
|
||||
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
|
||||
#
|
||||
# or
|
||||
#
|
||||
# /etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh
|
||||
#
|
||||
# if you don't want to manage your shell through Home Manager.
|
||||
home.sessionVariables = {
|
||||
# EDITOR = "emacs";
|
||||
};
|
||||
|
@ -648,6 +660,8 @@ function doSwitch() {
|
|||
}
|
||||
|
||||
function doListGens() {
|
||||
setHomeManagerPathVariables
|
||||
|
||||
# Whether to colorize the generations output.
|
||||
local color="never"
|
||||
if [[ ! -v NO_COLOR && -t 1 ]]; then
|
||||
|
@ -665,6 +679,7 @@ function doListGens() {
|
|||
# Removes linked generations. Takes as arguments identifiers of
|
||||
# generations to remove.
|
||||
function doRmGenerations() {
|
||||
setHomeManagerPathVariables
|
||||
setVerboseAndDryRun
|
||||
|
||||
pushd "$HM_PROFILE_DIR" > /dev/null
|
||||
|
@ -686,6 +701,8 @@ function doRmGenerations() {
|
|||
}
|
||||
|
||||
function doExpireGenerations() {
|
||||
setHomeManagerPathVariables
|
||||
|
||||
local generations
|
||||
generations="$( \
|
||||
find "$HM_PROFILE_DIR" -name 'home-manager-*-link' -not -newermt "$1" \
|
||||
|
@ -705,7 +722,7 @@ function doListPackages() {
|
|||
local outPath
|
||||
outPath="$($LIST_OUTPATH_CMD | grep -o '/.*home-manager-path$')"
|
||||
if [[ -n "$outPath" ]] ; then
|
||||
nix-store -q --references "$outPath" | sed 's/[^-]*-//'
|
||||
nix-store -q --references "$outPath" | sed 's/[^-]*-//' | sort --ignore-case
|
||||
else
|
||||
_i 'No home-manager packages seem to be installed.' >&2
|
||||
fi
|
||||
|
@ -810,6 +827,7 @@ function doShowNews() {
|
|||
}
|
||||
|
||||
function doUninstall() {
|
||||
setHomeManagerPathVariables
|
||||
setVerboseAndDryRun
|
||||
setNixProfileCommands
|
||||
|
||||
|
@ -945,8 +963,6 @@ COMMAND=""
|
|||
COMMAND_ARGS=()
|
||||
FLAKE_ARG=""
|
||||
|
||||
setHomeManagerPathVariables
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
opt="$1"
|
||||
shift
|
||||
|
@ -1022,7 +1038,7 @@ while [[ $# -gt 0 ]]; do
|
|||
export VERBOSE=1
|
||||
;;
|
||||
--version)
|
||||
echo 23.11-pre
|
||||
echo 24.05-pre
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
|
|
106
third_party/home-manager/home-manager/po/ca.po
vendored
106
third_party/home-manager/home-manager/po/ca.po
vendored
|
@ -7,9 +7,9 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2023-07-30 09:08+0200\n"
|
||||
"PO-Revision-Date: 2023-04-23 12:49+0000\n"
|
||||
"Last-Translator: Leix b <abone9999@gmail.com>\n"
|
||||
"POT-Creation-Date: 2023-09-13 23:46+0200\n"
|
||||
"PO-Revision-Date: 2023-12-10 15:58+0000\n"
|
||||
"Last-Translator: Nara Díaz Viñolas <rdvdev2@gmail.com>\n"
|
||||
"Language-Team: Catalan <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"ca/>\n"
|
||||
"Language: ca\n"
|
||||
|
@ -17,16 +17,16 @@ msgstr ""
|
|||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.18-dev\n"
|
||||
"X-Generator: Weblate 5.3-dev\n"
|
||||
|
||||
#: home-manager/home-manager:71
|
||||
#: home-manager/home-manager:81
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "No s'ha trobat cap fitxer de configuració a %s"
|
||||
|
||||
#. translators: The first '%s' specifier will be replaced by either
|
||||
#. 'home.nix' or 'flake.nix'.
|
||||
#: home-manager/home-manager:88 home-manager/home-manager:92
|
||||
#: home-manager/home-manager:182
|
||||
#: home-manager/home-manager:98 home-manager/home-manager:102
|
||||
#: home-manager/home-manager:192
|
||||
msgid ""
|
||||
"Keeping your Home Manager %s in %s is deprecated,\n"
|
||||
"please move it to %s"
|
||||
|
@ -34,25 +34,27 @@ msgstr ""
|
|||
"Mantenir el teu Home Manager %s a %s està obsolet,\n"
|
||||
"si us plau mou-lo a %s"
|
||||
|
||||
#: home-manager/home-manager:99
|
||||
#: home-manager/home-manager:109
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "No s'ha trobat cap fitxer de configuració. Si us plau, creeu un a %s"
|
||||
|
||||
#: home-manager/home-manager:114
|
||||
#: home-manager/home-manager:124
|
||||
msgid "Home Manager not found at %s."
|
||||
msgstr ""
|
||||
msgstr "No s'ha trobat el Home Manager a %s."
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:122
|
||||
#: home-manager/home-manager:132
|
||||
msgid ""
|
||||
"The fallback Home Manager path %s has been deprecated and a file/directory "
|
||||
"was found there."
|
||||
msgstr ""
|
||||
"La ruta alternativa del Home Manager ha quedat obsoleta i s'ha trobat un "
|
||||
"fitxer/directori allí."
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:125
|
||||
#: home-manager/home-manager:135
|
||||
msgid ""
|
||||
"To remove this warning, do one of the fallowing.\n"
|
||||
"To remove this warning, do one of the following.\n"
|
||||
"\n"
|
||||
"1. Explicitly tell Home Manager to use the path, for example by adding\n"
|
||||
"\n"
|
||||
|
@ -70,40 +72,60 @@ msgid ""
|
|||
"\n"
|
||||
" $ rm -r \"%s\""
|
||||
msgstr ""
|
||||
"Per a eliminar aquesta advertència, dugueu a terme una de les següents "
|
||||
"opcions.\n"
|
||||
"\n"
|
||||
"1. Indiqueu explícitament al Home Manager que utilitzi la ruta, per exemple "
|
||||
"afegint\n"
|
||||
"\n"
|
||||
" { programs.home-manager.path = \"%s\"; }\n"
|
||||
"\n"
|
||||
" a la vostra configuració.\n"
|
||||
"\n"
|
||||
" Si importeu el Home Manager directament, podeu utilitzar el paràmetre "
|
||||
"`path`\n"
|
||||
"\n"
|
||||
" pkgs.callPackage /ruta/al/paquet-del-home-manager { path = \"%s\"; }\n"
|
||||
"\n"
|
||||
" quan invoqueu el paquet del Home Manager.\n"
|
||||
"\n"
|
||||
"2. Elimineu la ruta obsoleta.\n"
|
||||
"\n"
|
||||
" $ rm -r \"%s\""
|
||||
|
||||
#: home-manager/home-manager:164
|
||||
#: home-manager/home-manager:174
|
||||
msgid "Could not find suitable profile directory, tried %s and %s"
|
||||
msgstr ""
|
||||
"No s'ha pogut trobar un directori de perfils adequat, s'ha provat %s i %s"
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:219
|
||||
#: home-manager/home-manager:229
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "No s'han pogut inspeccionar les opcions de configuració de flake"
|
||||
|
||||
#: home-manager/home-manager:281 home-manager/home-manager:304
|
||||
#: home-manager/home-manager:1023
|
||||
#: home-manager/home-manager:291 home-manager/home-manager:314
|
||||
#: home-manager/home-manager:1034
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%: opció desconeguda '%s'"
|
||||
|
||||
#: home-manager/home-manager:286 home-manager/home-manager:1024
|
||||
#: home-manager/home-manager:296 home-manager/home-manager:1035
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Executa '%s --help' per veure l'ajuda d'ús"
|
||||
|
||||
#: home-manager/home-manager:312 home-manager/home-manager:411
|
||||
#: home-manager/home-manager:322 home-manager/home-manager:421
|
||||
msgid "The file %s already exists, leaving it unchanged..."
|
||||
msgstr "El fitxer %s ja existeix, deixant sense modificar..."
|
||||
|
||||
#: home-manager/home-manager:314 home-manager/home-manager:413
|
||||
#: home-manager/home-manager:324 home-manager/home-manager:423
|
||||
msgid "Creating %s..."
|
||||
msgstr "Creant %s..."
|
||||
|
||||
#: home-manager/home-manager:455
|
||||
#: home-manager/home-manager:465
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Creant generació inicial de Home Manager..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/home-manager:460
|
||||
#: home-manager/home-manager:470
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
|
@ -120,7 +142,7 @@ msgstr ""
|
|||
"a veure totes les opcions disponibles."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/home-manager:465
|
||||
#: home-manager/home-manager:475
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
|
@ -135,11 +157,11 @@ msgstr ""
|
|||
"si l'error sembla culpa de Home Manager."
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:476
|
||||
#: home-manager/home-manager:486
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "No es pot instanciar una configuració flake"
|
||||
|
||||
#: home-manager/home-manager:552
|
||||
#: home-manager/home-manager:562
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
|
@ -153,73 +175,73 @@ msgstr[1] ""
|
|||
"Hi han %d notícies rellevants no llegides.\n"
|
||||
"Llegeix-les executant la comanda \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:566
|
||||
#: home-manager/home-manager:576
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Configuració \"news.display\" no reconeguda \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:573
|
||||
#: home-manager/home-manager:583
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Si us plau, defineix la variable d'entorn $EDITOR"
|
||||
|
||||
#: home-manager/home-manager:588
|
||||
#: home-manager/home-manager:598
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Impossible executar la compilació en un directori només lectura"
|
||||
|
||||
#: home-manager/home-manager:666
|
||||
#: home-manager/home-manager:676
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "No existeix la generació amb ID %s"
|
||||
|
||||
#: home-manager/home-manager:668
|
||||
#: home-manager/home-manager:678
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Impossible eliminar la generació actual %s"
|
||||
|
||||
#: home-manager/home-manager:670
|
||||
#: home-manager/home-manager:680
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Eliminant la generació %s"
|
||||
|
||||
#: home-manager/home-manager:689
|
||||
#: home-manager/home-manager:699
|
||||
msgid "No generations to expire"
|
||||
msgstr "No s'han trobat generacions a expirar"
|
||||
|
||||
#: home-manager/home-manager:700
|
||||
#: home-manager/home-manager:710
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Cap paquet home-manager sembla estar instal·lat."
|
||||
|
||||
#: home-manager/home-manager:781
|
||||
#: home-manager/home-manager:792
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Argument desconegut %s"
|
||||
|
||||
#: home-manager/home-manager:805
|
||||
#: home-manager/home-manager:816
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Home Manager serà esborrat del sistema."
|
||||
|
||||
#: home-manager/home-manager:808
|
||||
#: home-manager/home-manager:819
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Això és un simulacre, res serà realment desinstal·lat."
|
||||
|
||||
#: home-manager/home-manager:812
|
||||
#: home-manager/home-manager:823
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Estàs segur que vols desinstal·lar Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:818
|
||||
#: home-manager/home-manager:829
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Canviant a configuració buida de Home Manager..."
|
||||
|
||||
#: home-manager/home-manager:846
|
||||
#: home-manager/home-manager:857
|
||||
msgid "Yay!"
|
||||
msgstr "Visca!"
|
||||
|
||||
#: home-manager/home-manager:851
|
||||
#: home-manager/home-manager:862
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr ""
|
||||
"Home Manager ha estat desinstal·lat però el vostre home.nix es manté intacte."
|
||||
|
||||
#: home-manager/home-manager:1063
|
||||
#: home-manager/home-manager:1074
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations espera un argument, obtinguts %d."
|
||||
|
||||
#: home-manager/home-manager:1085
|
||||
#: home-manager/home-manager:1096
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Comanda desconeguda: %s"
|
||||
|
||||
|
|
248
third_party/home-manager/home-manager/po/cs.po
vendored
Normal file
248
third_party/home-manager/home-manager/po/cs.po
vendored
Normal file
|
@ -0,0 +1,248 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Home Manager contributors
|
||||
# This file is distributed under the same license as the Home Manager package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2023-09-13 23:46+0200\n"
|
||||
"PO-Revision-Date: 2024-01-05 11:06+0000\n"
|
||||
"Last-Translator: FireFragment <snaselik.m@gmail.com>\n"
|
||||
"Language-Team: Czech <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"cs/>\n"
|
||||
"Language: cs\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||
"X-Generator: Weblate 5.4-dev\n"
|
||||
|
||||
#: home-manager/home-manager:81
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "V %s nebyl nalezen konfigurační soubor"
|
||||
|
||||
#. translators: The first '%s' specifier will be replaced by either
|
||||
#. 'home.nix' or 'flake.nix'.
|
||||
#: home-manager/home-manager:98 home-manager/home-manager:102
|
||||
#: home-manager/home-manager:192
|
||||
msgid ""
|
||||
"Keeping your Home Manager %s in %s is deprecated,\n"
|
||||
"please move it to %s"
|
||||
msgstr ""
|
||||
"Udržovat Home Manager %s v %s je zastaralé,\n"
|
||||
"prosím přesuňte jej do %s"
|
||||
|
||||
#: home-manager/home-manager:109
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Konfigurační soubor nenalezen. Prosím vytvořte jej v %s"
|
||||
|
||||
#: home-manager/home-manager:124
|
||||
msgid "Home Manager not found at %s."
|
||||
msgstr "Home Manager nebyl nalezen v %s."
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:132
|
||||
msgid ""
|
||||
"The fallback Home Manager path %s has been deprecated and a file/directory "
|
||||
"was found there."
|
||||
msgstr ""
|
||||
"Záložní cesta pro Homa Manager % je zastaralá, byl v ní ale nalezen soubor/"
|
||||
"adresář."
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:135
|
||||
msgid ""
|
||||
"To remove this warning, do one of the following.\n"
|
||||
"\n"
|
||||
"1. Explicitly tell Home Manager to use the path, for example by adding\n"
|
||||
"\n"
|
||||
" { programs.home-manager.path = \"%s\"; }\n"
|
||||
"\n"
|
||||
" to your configuration.\n"
|
||||
"\n"
|
||||
" If you import Home Manager directly, you can use the `path` parameter\n"
|
||||
"\n"
|
||||
" pkgs.callPackage /path/to/home-manager-package { path = \"%s\"; }\n"
|
||||
"\n"
|
||||
" when calling the Home Manager package.\n"
|
||||
"\n"
|
||||
"2. Remove the deprecated path.\n"
|
||||
"\n"
|
||||
" $ rm -r \"%s\""
|
||||
msgstr ""
|
||||
"K odstranění tohoto varování udělejte jednu z následujících operací.\n"
|
||||
"\n"
|
||||
"1. Jmenovitě určete Home Manageru cestu kterou má použít, například "
|
||||
"přidáním\n"
|
||||
"\n"
|
||||
" { programs.home-manager.path = \"%s\"; }\n"
|
||||
"\n"
|
||||
" do vašá konfigurace.\n"
|
||||
"\n"
|
||||
" pokud importujete Home Manager přímo, můžete použít proměnou `path`\n"
|
||||
"\n"
|
||||
" pkgs.callPackage /cesta/k/home-manager-package { path = \"%s\"; }\n"
|
||||
"\n"
|
||||
" pro volání balíčku Home Manager.\n"
|
||||
"\n"
|
||||
"2. Odstraňte zastaralou cestu.\n"
|
||||
"\n"
|
||||
" $ rm -r \"%s\""
|
||||
|
||||
#: home-manager/home-manager:174
|
||||
msgid "Could not find suitable profile directory, tried %s and %s"
|
||||
msgstr "Nebyl nalezen vhodný adresář profilu, byly zkoušeny %s a %s"
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:229
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Nelze ověřit parametry z konfigurace flake"
|
||||
|
||||
#: home-manager/home-manager:291 home-manager/home-manager:314
|
||||
#: home-manager/home-manager:1034
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: neznámý parametr '%s'"
|
||||
|
||||
#: home-manager/home-manager:296 home-manager/home-manager:1035
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Spusťte '%s --help' pro vypsání nápovědy"
|
||||
|
||||
#: home-manager/home-manager:322 home-manager/home-manager:421
|
||||
msgid "The file %s already exists, leaving it unchanged..."
|
||||
msgstr "Soubor %s již existuje, ponechán beze změn..."
|
||||
|
||||
#: home-manager/home-manager:324 home-manager/home-manager:423
|
||||
msgid "Creating %s..."
|
||||
msgstr "Vytvářím %s..."
|
||||
|
||||
#: home-manager/home-manager:465
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Vytvářím první generaci Home Manageru..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/home-manager:470
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"to configure Home Manager. Run 'man home-configuration.nix' to\n"
|
||||
"see all available options."
|
||||
msgstr ""
|
||||
"Vše dokončeno! Nástroj home-manager je nainstalován. Můžete upravovat\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"čimž konfigurujete Home Manager. Spusťte 'man home-configuration.nix' \n"
|
||||
"k zobrazení všech dostupných možností."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/home-manager:475
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
" %s\n"
|
||||
"\n"
|
||||
"if the error seems to be the fault of Home Manager."
|
||||
msgstr ""
|
||||
"Ehm ehm, instalace se nezdařila! Pokud chyba vypadá jako\n"
|
||||
"chyba Homa manageru, prosím založte problém na\n"
|
||||
"\n"
|
||||
" %s"
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:486
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Nelze vytvořit instanci flake konfigurace"
|
||||
|
||||
#: home-manager/home-manager:562
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
msgid_plural ""
|
||||
"There are %d unread and relevant news items.\n"
|
||||
"Read them by running the command \"%s news\"."
|
||||
msgstr[0] ""
|
||||
"%d nepřečtená novinka.\n"
|
||||
"Přečtěte ji pomocí příkazu \"%s news\"."
|
||||
msgstr[1] ""
|
||||
"%d nepřečtené novinky.\n"
|
||||
"Přečtěte je pomocí příkazu \"%s news\"."
|
||||
msgstr[2] ""
|
||||
"%d nepřečtených novinek.\n"
|
||||
"Přečtěte je pomocí příkazu \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:576
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Neznáme nastavení \"news.display\" \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:583
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Prosím nastavte proměnou prostředí $EDITOR"
|
||||
|
||||
#: home-manager/home-manager:598
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Sestavení nelze provést v adresáři dostupném pouze pro čtení"
|
||||
|
||||
#: home-manager/home-manager:676
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Generace s ID %s neexistuje"
|
||||
|
||||
#: home-manager/home-manager:678
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Nelze odstranit současnou generaci %s"
|
||||
|
||||
#: home-manager/home-manager:680
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Odstraňuji generaci %s"
|
||||
|
||||
#: home-manager/home-manager:699
|
||||
msgid "No generations to expire"
|
||||
msgstr "Žádná generace k vypršení platnosti"
|
||||
|
||||
#: home-manager/home-manager:710
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Žádný home-manager balíček není nainstalován."
|
||||
|
||||
#: home-manager/home-manager:792
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Neznámý parametr %s"
|
||||
|
||||
#: home-manager/home-manager:816
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Toto odstraní Home Manager z vašeho systému."
|
||||
|
||||
#: home-manager/home-manager:819
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Toto zkouška na nečisto, nic nebude odinstalováno."
|
||||
|
||||
#: home-manager/home-manager:823
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Opravdu odinstalovat Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:829
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Přepínám na prázdou konfiguraci Home Manageru..."
|
||||
|
||||
#: home-manager/home-manager:857
|
||||
msgid "Yay!"
|
||||
msgstr "Hurá!"
|
||||
|
||||
#: home-manager/home-manager:862
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager se odinstalovává, ale váš home.nix nebyl změněn."
|
||||
|
||||
#: home-manager/home-manager:1074
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations očekává jeden parametr, přítomno %d."
|
||||
|
||||
#: home-manager/home-manager:1096
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Neznámý příkaz: %s"
|
||||
|
||||
#: home-manager/install.nix:18
|
||||
msgid "This derivation is not buildable, please run it using nix-shell."
|
||||
msgstr "Tuto odvozeninu nelze sestavit, prosím spusťte ji pomocí nix-shell."
|
110
third_party/home-manager/home-manager/po/da.po
vendored
110
third_party/home-manager/home-manager/po/da.po
vendored
|
@ -7,8 +7,8 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2023-07-30 09:08+0200\n"
|
||||
"PO-Revision-Date: 2022-09-19 18:22+0000\n"
|
||||
"POT-Creation-Date: 2023-09-13 23:46+0200\n"
|
||||
"PO-Revision-Date: 2023-08-27 13:52+0000\n"
|
||||
"Last-Translator: cafkafk <christina@cafkafk.com>\n"
|
||||
"Language-Team: Danish <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"da/>\n"
|
||||
|
@ -17,40 +17,44 @@ msgstr ""
|
|||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.14.1\n"
|
||||
"X-Generator: Weblate 5.0.1-dev\n"
|
||||
|
||||
#: home-manager/home-manager:71
|
||||
#: home-manager/home-manager:81
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Ingen konfigurationsfiler fundet ved %s"
|
||||
|
||||
#. translators: The first '%s' specifier will be replaced by either
|
||||
#. 'home.nix' or 'flake.nix'.
|
||||
#: home-manager/home-manager:88 home-manager/home-manager:92
|
||||
#: home-manager/home-manager:182
|
||||
#: home-manager/home-manager:98 home-manager/home-manager:102
|
||||
#: home-manager/home-manager:192
|
||||
msgid ""
|
||||
"Keeping your Home Manager %s in %s is deprecated,\n"
|
||||
"please move it to %s"
|
||||
msgstr ""
|
||||
"At have din Home Manager %s i %s er forældet,\n"
|
||||
"flyt den venligst til %s"
|
||||
|
||||
#: home-manager/home-manager:99
|
||||
#: home-manager/home-manager:109
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Ingen konfigurationsfiler fundet. Venligst lav en ved %s"
|
||||
|
||||
#: home-manager/home-manager:114
|
||||
#: home-manager/home-manager:124
|
||||
msgid "Home Manager not found at %s."
|
||||
msgstr ""
|
||||
msgstr "Home Manager kan ikke findes under %s."
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:122
|
||||
#: home-manager/home-manager:132
|
||||
msgid ""
|
||||
"The fallback Home Manager path %s has been deprecated and a file/directory "
|
||||
"was found there."
|
||||
msgstr ""
|
||||
"Fallback-stien til Home Manager %s er blevet forældet, og en fil/mappe blev "
|
||||
"fundet der."
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:125
|
||||
#: home-manager/home-manager:135
|
||||
msgid ""
|
||||
"To remove this warning, do one of the fallowing.\n"
|
||||
"To remove this warning, do one of the following.\n"
|
||||
"\n"
|
||||
"1. Explicitly tell Home Manager to use the path, for example by adding\n"
|
||||
"\n"
|
||||
|
@ -68,39 +72,57 @@ msgid ""
|
|||
"\n"
|
||||
" $ rm -r \"%s\""
|
||||
msgstr ""
|
||||
"For at fjerne denne advarsel, gør en af følgende:\n"
|
||||
"\n"
|
||||
"1. Fortæl eksplicit at Home Manager skal bruge stien, for eksempel ved at "
|
||||
"tilføje\n"
|
||||
"\n"
|
||||
" { programs.home-manager.path = \"%s\"; }\n"
|
||||
"\n"
|
||||
" til din konfiguration.\n"
|
||||
"\n"
|
||||
" Hvis du importerer Home Manager direkte, kan du bruge `path` parameteren\n"
|
||||
"\n"
|
||||
" pkgs.callPackage /sti/til/home-manager-pakke { path = \"%s\"; }\n"
|
||||
"\n"
|
||||
" når du kalder Home Manager pakken.\n"
|
||||
"\n"
|
||||
"2. Fjern den forældede sti.\n"
|
||||
"\n"
|
||||
" $ rm -r \"%s\""
|
||||
|
||||
#: home-manager/home-manager:164
|
||||
#: home-manager/home-manager:174
|
||||
msgid "Could not find suitable profile directory, tried %s and %s"
|
||||
msgstr ""
|
||||
msgstr "Kunne ikke finde en passende profilmappe, forsøgte %s og %s"
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:219
|
||||
#: home-manager/home-manager:229
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Kan ikke inspicere indstillinger af en flake konfiguration"
|
||||
|
||||
#: home-manager/home-manager:281 home-manager/home-manager:304
|
||||
#: home-manager/home-manager:1023
|
||||
#: home-manager/home-manager:291 home-manager/home-manager:314
|
||||
#: home-manager/home-manager:1034
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: ukendt indstilling '%s'"
|
||||
|
||||
#: home-manager/home-manager:286 home-manager/home-manager:1024
|
||||
#: home-manager/home-manager:296 home-manager/home-manager:1035
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Kør '%s --help' for brugsvejledning"
|
||||
|
||||
#: home-manager/home-manager:312 home-manager/home-manager:411
|
||||
#: home-manager/home-manager:322 home-manager/home-manager:421
|
||||
msgid "The file %s already exists, leaving it unchanged..."
|
||||
msgstr ""
|
||||
msgstr "Filen %s findes allerede, lader den være uændret..."
|
||||
|
||||
#: home-manager/home-manager:314 home-manager/home-manager:413
|
||||
#: home-manager/home-manager:324 home-manager/home-manager:423
|
||||
msgid "Creating %s..."
|
||||
msgstr ""
|
||||
msgstr "Opretter %s..."
|
||||
|
||||
#: home-manager/home-manager:455
|
||||
#: home-manager/home-manager:465
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Laver initial Home Manager generation..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/home-manager:460
|
||||
#: home-manager/home-manager:470
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
|
@ -118,7 +140,7 @@ msgstr ""
|
|||
"se alle de mulige indstillinger."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/home-manager:465
|
||||
#: home-manager/home-manager:475
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
|
@ -133,11 +155,11 @@ msgstr ""
|
|||
"hvis fejlen fremstår som forskyldt af Home Manager."
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:476
|
||||
#: home-manager/home-manager:486
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Kan ikke instantiere en flake konfiguration"
|
||||
|
||||
#: home-manager/home-manager:552
|
||||
#: home-manager/home-manager:562
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
|
@ -151,74 +173,74 @@ msgstr[1] ""
|
|||
"Der er %d ulæste og relavante nyheder.\n"
|
||||
"Læs dem ved at køre \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:566
|
||||
#: home-manager/home-manager:576
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Ubekændt \"news.display\" indstilling \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:573
|
||||
#: home-manager/home-manager:583
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Venligst sæt $EDITOR miljøvariablen"
|
||||
|
||||
#: home-manager/home-manager:588
|
||||
#: home-manager/home-manager:598
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Kan ikke bygge i en læs-kun folder"
|
||||
|
||||
#: home-manager/home-manager:666
|
||||
#: home-manager/home-manager:676
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Ingen generation med ID %s"
|
||||
|
||||
#: home-manager/home-manager:668
|
||||
#: home-manager/home-manager:678
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Kan ikke fjerne den nuværende generation %s"
|
||||
|
||||
#: home-manager/home-manager:670
|
||||
#: home-manager/home-manager:680
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Fjern generation %s"
|
||||
|
||||
#: home-manager/home-manager:689
|
||||
#: home-manager/home-manager:699
|
||||
msgid "No generations to expire"
|
||||
msgstr "Ingen generationer som skal udløbes"
|
||||
|
||||
#: home-manager/home-manager:700
|
||||
#: home-manager/home-manager:710
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr ""
|
||||
"Det virker ikke som om der er nogle home-manager pakker der er installeret."
|
||||
|
||||
#: home-manager/home-manager:781
|
||||
#: home-manager/home-manager:792
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Ubekendt argument %s"
|
||||
|
||||
#: home-manager/home-manager:805
|
||||
#: home-manager/home-manager:816
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Dette vil fjerne Home Manager fra dit system."
|
||||
|
||||
#: home-manager/home-manager:808
|
||||
#: home-manager/home-manager:819
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Dette er en tør kørsel, intet vil rent faktisk blive uinstalleret."
|
||||
|
||||
#: home-manager/home-manager:812
|
||||
#: home-manager/home-manager:823
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Virkelig uinstaller Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:818
|
||||
#: home-manager/home-manager:829
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Skifter til tom Home Manager konfiguration..."
|
||||
|
||||
#: home-manager/home-manager:846
|
||||
#: home-manager/home-manager:857
|
||||
msgid "Yay!"
|
||||
msgstr "Juhuu!"
|
||||
|
||||
#: home-manager/home-manager:851
|
||||
#: home-manager/home-manager:862
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr ""
|
||||
"Home Manager bliver uinstalleret, men din home.nix bliver forladt uberørt."
|
||||
|
||||
#: home-manager/home-manager:1063
|
||||
#: home-manager/home-manager:1074
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations forventer et argument, fik %d."
|
||||
|
||||
#: home-manager/home-manager:1085
|
||||
#: home-manager/home-manager:1096
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Ubekendt kommando: %s"
|
||||
|
||||
|
|
97
third_party/home-manager/home-manager/po/de.po
vendored
97
third_party/home-manager/home-manager/po/de.po
vendored
|
@ -7,9 +7,9 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2023-07-30 09:08+0200\n"
|
||||
"PO-Revision-Date: 2023-08-02 20:04+0000\n"
|
||||
"Last-Translator: JonathanB <ewu.uwent@gmail.com>\n"
|
||||
"POT-Creation-Date: 2023-09-13 23:46+0200\n"
|
||||
"PO-Revision-Date: 2023-08-15 17:51+0000\n"
|
||||
"Last-Translator: Simon <xxyababx70@gmail.com>\n"
|
||||
"Language-Team: German <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"de/>\n"
|
||||
"Language: de\n"
|
||||
|
@ -19,14 +19,14 @@ msgstr ""
|
|||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 5.0-dev\n"
|
||||
|
||||
#: home-manager/home-manager:71
|
||||
#: home-manager/home-manager:81
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Keine Konfigurationsdatei unter %s gefunden"
|
||||
|
||||
#. translators: The first '%s' specifier will be replaced by either
|
||||
#. 'home.nix' or 'flake.nix'.
|
||||
#: home-manager/home-manager:88 home-manager/home-manager:92
|
||||
#: home-manager/home-manager:182
|
||||
#: home-manager/home-manager:98 home-manager/home-manager:102
|
||||
#: home-manager/home-manager:192
|
||||
msgid ""
|
||||
"Keeping your Home Manager %s in %s is deprecated,\n"
|
||||
"please move it to %s"
|
||||
|
@ -34,25 +34,27 @@ msgstr ""
|
|||
"Das Beibehalten Ihres Home Manager %s in %s ist veraltet.\n"
|
||||
"Bitte verschieben Sie es nach %s"
|
||||
|
||||
#: home-manager/home-manager:99
|
||||
#: home-manager/home-manager:109
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Keine Konfigurationsdatei gefunden. Bitte erstellen Sie eine unter %s"
|
||||
|
||||
#: home-manager/home-manager:114
|
||||
#: home-manager/home-manager:124
|
||||
msgid "Home Manager not found at %s."
|
||||
msgstr "Home Manager nicht gefunden unter %s."
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:122
|
||||
#: home-manager/home-manager:132
|
||||
msgid ""
|
||||
"The fallback Home Manager path %s has been deprecated and a file/directory "
|
||||
"was found there."
|
||||
msgstr ""
|
||||
"Der Ausweichpfad für Home-Manager unter %s ist veraltet. Es wurde jedoch "
|
||||
"eine Datei/ein Verzeichnis dort gefunden."
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:125
|
||||
#: home-manager/home-manager:135
|
||||
msgid ""
|
||||
"To remove this warning, do one of the fallowing.\n"
|
||||
"To remove this warning, do one of the following.\n"
|
||||
"\n"
|
||||
"1. Explicitly tell Home Manager to use the path, for example by adding\n"
|
||||
"\n"
|
||||
|
@ -70,41 +72,56 @@ msgid ""
|
|||
"\n"
|
||||
" $ rm -r \"%s\""
|
||||
msgstr ""
|
||||
"Um diese Warnung zu entfernen, führen Sie einen der folgenden Schritte aus.\n"
|
||||
"\n"
|
||||
"1. Weisen Sie Home Manager explizit an, den Pfad zu verwenden, indem Sie z. "
|
||||
"B. Folgendes zu Ihrer Konfiguration hinzufügen:\n"
|
||||
"\n"
|
||||
" { programs.home-manager.path = \"%s\"; }\n"
|
||||
"\n"
|
||||
" Sollten Sie Home Manager direkt importieren, können Sie den Parameter "
|
||||
"`path` verwenden, wenn Sie das Home Manager-Paket aufrufen:\n"
|
||||
"\n"
|
||||
" pkgs.callPackage /path/to/home-manager-package { path = \"%s\"; }\n"
|
||||
"\n"
|
||||
"2. Entfernen Sie den veralteten Pfad:\n"
|
||||
"\n"
|
||||
" $ rm -r \"%s\""
|
||||
|
||||
#: home-manager/home-manager:164
|
||||
#: home-manager/home-manager:174
|
||||
msgid "Could not find suitable profile directory, tried %s and %s"
|
||||
msgstr ""
|
||||
"Es konnte kein passendes Profilverzeichnis gefunden werden, %s und %s wurden "
|
||||
"versucht"
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:219
|
||||
#: home-manager/home-manager:229
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Die Optionen einer Flake-Konfiguration können nicht inspiziert werden"
|
||||
|
||||
#: home-manager/home-manager:281 home-manager/home-manager:304
|
||||
#: home-manager/home-manager:1023
|
||||
#: home-manager/home-manager:291 home-manager/home-manager:314
|
||||
#: home-manager/home-manager:1034
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: unbekannte Option '%s'"
|
||||
|
||||
#: home-manager/home-manager:286 home-manager/home-manager:1024
|
||||
#: home-manager/home-manager:296 home-manager/home-manager:1035
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Führe '%s --help' aus, um Hilfe zur Verwendung zu erhalten"
|
||||
|
||||
#: home-manager/home-manager:312 home-manager/home-manager:411
|
||||
#: home-manager/home-manager:322 home-manager/home-manager:421
|
||||
msgid "The file %s already exists, leaving it unchanged..."
|
||||
msgstr "Die Datei %s existiert bereits, sie bleibt unverändert..."
|
||||
|
||||
#: home-manager/home-manager:314 home-manager/home-manager:413
|
||||
#: home-manager/home-manager:324 home-manager/home-manager:423
|
||||
msgid "Creating %s..."
|
||||
msgstr "Erstelle %s..."
|
||||
|
||||
#: home-manager/home-manager:455
|
||||
#: home-manager/home-manager:465
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Erstelle initiale Home Manager Generation..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/home-manager:460
|
||||
#: home-manager/home-manager:470
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
|
@ -122,7 +139,7 @@ msgstr ""
|
|||
"sehen."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/home-manager:465
|
||||
#: home-manager/home-manager:475
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
|
@ -137,11 +154,11 @@ msgstr ""
|
|||
"falls der Fehler auf Home Manager zurückzuführen ist."
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:476
|
||||
#: home-manager/home-manager:486
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Kann eine Flake-Konfiguration nicht instanziieren"
|
||||
|
||||
#: home-manager/home-manager:552
|
||||
#: home-manager/home-manager:562
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
|
@ -155,73 +172,73 @@ msgstr[1] ""
|
|||
"Es gibt %d ungelesene und relevante Nachrichten.\n"
|
||||
"Lesen Sie sie, indem Sie den Befehl \"%s news\" ausführen."
|
||||
|
||||
#: home-manager/home-manager:566
|
||||
#: home-manager/home-manager:576
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Unbekannte \"news.display\" Einstellung \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:573
|
||||
#: home-manager/home-manager:583
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Bitte legen Sie die $EDITOR Variable fest"
|
||||
|
||||
#: home-manager/home-manager:588
|
||||
#: home-manager/home-manager:598
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Build kann nicht im schreibgeschützten Ordner ausgeführt werden"
|
||||
|
||||
#: home-manager/home-manager:666
|
||||
#: home-manager/home-manager:676
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Keine Generation mit ID %s"
|
||||
|
||||
#: home-manager/home-manager:668
|
||||
#: home-manager/home-manager:678
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Die jetzige Generation %s kann nicht entfernt werden"
|
||||
|
||||
#: home-manager/home-manager:670
|
||||
#: home-manager/home-manager:680
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Entferne Generation %s"
|
||||
|
||||
#: home-manager/home-manager:689
|
||||
#: home-manager/home-manager:699
|
||||
msgid "No generations to expire"
|
||||
msgstr "Keine ablaufenden Generationen"
|
||||
|
||||
#: home-manager/home-manager:700
|
||||
#: home-manager/home-manager:710
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Es scheint, als ob keine Home Manager Pakete installiert sind."
|
||||
|
||||
#: home-manager/home-manager:781
|
||||
#: home-manager/home-manager:792
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Unbekannte Argumente %s"
|
||||
|
||||
#: home-manager/home-manager:805
|
||||
#: home-manager/home-manager:816
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Dies wird Home Manager von Ihrem System entfernen."
|
||||
|
||||
#: home-manager/home-manager:808
|
||||
#: home-manager/home-manager:819
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Dies ist ein Probelauf, es wird nichts vom System deinstalliert."
|
||||
|
||||
#: home-manager/home-manager:812
|
||||
#: home-manager/home-manager:823
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Möchten Sie wirklich Home Manager deinstallieren?"
|
||||
|
||||
#: home-manager/home-manager:818
|
||||
#: home-manager/home-manager:829
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Wechsle zu einer leeren Home Manager Konfiguration..."
|
||||
|
||||
#: home-manager/home-manager:846
|
||||
#: home-manager/home-manager:857
|
||||
msgid "Yay!"
|
||||
msgstr "Juhu!"
|
||||
|
||||
#: home-manager/home-manager:851
|
||||
#: home-manager/home-manager:862
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr ""
|
||||
"Home Manager ist installiert, aber Ihre home.nix Datei bleibt unberührt."
|
||||
|
||||
#: home-manager/home-manager:1063
|
||||
#: home-manager/home-manager:1074
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations erwartet ein Argument, hat aber %d erhalten."
|
||||
|
||||
#: home-manager/home-manager:1085
|
||||
#: home-manager/home-manager:1096
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Unbekannter Befehl: %s"
|
||||
|
||||
|
|
76
third_party/home-manager/home-manager/po/es.po
vendored
76
third_party/home-manager/home-manager/po/es.po
vendored
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2023-07-30 09:08+0200\n"
|
||||
"POT-Creation-Date: 2023-09-13 23:46+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:03+0000\n"
|
||||
"Last-Translator: gallegonovato <fran-carro@hotmail.es>\n"
|
||||
"Language-Team: Spanish <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
|
@ -19,14 +19,14 @@ msgstr ""
|
|||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 5.0-dev\n"
|
||||
|
||||
#: home-manager/home-manager:71
|
||||
#: home-manager/home-manager:81
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Archivo de configuración no encontrado en %s"
|
||||
|
||||
#. translators: The first '%s' specifier will be replaced by either
|
||||
#. 'home.nix' or 'flake.nix'.
|
||||
#: home-manager/home-manager:88 home-manager/home-manager:92
|
||||
#: home-manager/home-manager:182
|
||||
#: home-manager/home-manager:98 home-manager/home-manager:102
|
||||
#: home-manager/home-manager:192
|
||||
msgid ""
|
||||
"Keeping your Home Manager %s in %s is deprecated,\n"
|
||||
"please move it to %s"
|
||||
|
@ -34,16 +34,16 @@ msgstr ""
|
|||
"Mantener tu Home Manager %s en %s está obsoleto,\n"
|
||||
"por favor muévalo a %s"
|
||||
|
||||
#: home-manager/home-manager:99
|
||||
#: home-manager/home-manager:109
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "Archivo de configuración no encontrado. Por favor cree uno en %s"
|
||||
|
||||
#: home-manager/home-manager:114
|
||||
#: home-manager/home-manager:124
|
||||
msgid "Home Manager not found at %s."
|
||||
msgstr "No se ha encontrado el Home Manager en %s."
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:122
|
||||
#: home-manager/home-manager:132
|
||||
msgid ""
|
||||
"The fallback Home Manager path %s has been deprecated and a file/directory "
|
||||
"was found there."
|
||||
|
@ -52,9 +52,9 @@ msgstr ""
|
|||
"archivo/directorio allí."
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:125
|
||||
#: home-manager/home-manager:135
|
||||
msgid ""
|
||||
"To remove this warning, do one of the fallowing.\n"
|
||||
"To remove this warning, do one of the following.\n"
|
||||
"\n"
|
||||
"1. Explicitly tell Home Manager to use the path, for example by adding\n"
|
||||
"\n"
|
||||
|
@ -91,40 +91,40 @@ msgstr ""
|
|||
"\n"
|
||||
" $ rm -r \"%s\""
|
||||
|
||||
#: home-manager/home-manager:164
|
||||
#: home-manager/home-manager:174
|
||||
msgid "Could not find suitable profile directory, tried %s and %s"
|
||||
msgstr ""
|
||||
"No se ha podido encontrar un directorio de perfiles adecuado, se ha probado "
|
||||
"con %s y %s"
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:219
|
||||
#: home-manager/home-manager:229
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "No se pudo inspeccionar las opciones de la configuración flake"
|
||||
|
||||
#: home-manager/home-manager:281 home-manager/home-manager:304
|
||||
#: home-manager/home-manager:1023
|
||||
#: home-manager/home-manager:291 home-manager/home-manager:314
|
||||
#: home-manager/home-manager:1034
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s: opción desconocida '%s'"
|
||||
|
||||
#: home-manager/home-manager:286 home-manager/home-manager:1024
|
||||
#: home-manager/home-manager:296 home-manager/home-manager:1035
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Ejecute '%s --help' para ver ayuda"
|
||||
|
||||
#: home-manager/home-manager:312 home-manager/home-manager:411
|
||||
#: home-manager/home-manager:322 home-manager/home-manager:421
|
||||
msgid "The file %s already exists, leaving it unchanged..."
|
||||
msgstr "El fichero %s ya existe, dejándolo sin modificar..."
|
||||
|
||||
#: home-manager/home-manager:314 home-manager/home-manager:413
|
||||
#: home-manager/home-manager:324 home-manager/home-manager:423
|
||||
msgid "Creating %s..."
|
||||
msgstr "Creando %s..."
|
||||
|
||||
#: home-manager/home-manager:455
|
||||
#: home-manager/home-manager:465
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Creando generación inicial de Home Manager..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/home-manager:460
|
||||
#: home-manager/home-manager:470
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
|
@ -141,7 +141,7 @@ msgstr ""
|
|||
"ver todas las opciones disponibles."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/home-manager:465
|
||||
#: home-manager/home-manager:475
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
|
@ -156,11 +156,11 @@ msgstr ""
|
|||
"si el error parecer ser culpa de Home Manager."
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:476
|
||||
#: home-manager/home-manager:486
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "No se pudo instanciar una configuración flake"
|
||||
|
||||
#: home-manager/home-manager:552
|
||||
#: home-manager/home-manager:562
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
|
@ -174,72 +174,72 @@ msgstr[1] ""
|
|||
"Hay %d noticias relevantes no leídas.\n"
|
||||
"Léalas ejecutando el comando \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:566
|
||||
#: home-manager/home-manager:576
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Configuración \"news.display\" no reconocida \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:573
|
||||
#: home-manager/home-manager:583
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Defina la variable de ambiente $EDITOR"
|
||||
|
||||
#: home-manager/home-manager:588
|
||||
#: home-manager/home-manager:598
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "No se puede ejecutar en un directorio de sólo lectura"
|
||||
|
||||
#: home-manager/home-manager:666
|
||||
#: home-manager/home-manager:676
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "No existe la generación con ID %s"
|
||||
|
||||
#: home-manager/home-manager:668
|
||||
#: home-manager/home-manager:678
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "No se pudo borrar la generación actual %s"
|
||||
|
||||
#: home-manager/home-manager:670
|
||||
#: home-manager/home-manager:680
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Borrando generación %s"
|
||||
|
||||
#: home-manager/home-manager:689
|
||||
#: home-manager/home-manager:699
|
||||
msgid "No generations to expire"
|
||||
msgstr "No se encontraron generaciones para expirar"
|
||||
|
||||
#: home-manager/home-manager:700
|
||||
#: home-manager/home-manager:710
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "No se encontró ningún paquete home-manager instalado."
|
||||
|
||||
#: home-manager/home-manager:781
|
||||
#: home-manager/home-manager:792
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Argumento desconocido %s"
|
||||
|
||||
#: home-manager/home-manager:805
|
||||
#: home-manager/home-manager:816
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Home Manager será borrado del sistema."
|
||||
|
||||
#: home-manager/home-manager:808
|
||||
#: home-manager/home-manager:819
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "Este es un simulacro, nada será realmente desinstalado."
|
||||
|
||||
#: home-manager/home-manager:812
|
||||
#: home-manager/home-manager:823
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Desinstalar Home Manager?"
|
||||
|
||||
#: home-manager/home-manager:818
|
||||
#: home-manager/home-manager:829
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Cambiando a configuración vacía de Home Manager..."
|
||||
|
||||
#: home-manager/home-manager:846
|
||||
#: home-manager/home-manager:857
|
||||
msgid "Yay!"
|
||||
msgstr "Bien!"
|
||||
|
||||
#: home-manager/home-manager:851
|
||||
#: home-manager/home-manager:862
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager desinstalado pero no se ha modificado home.nix."
|
||||
|
||||
#: home-manager/home-manager:1063
|
||||
#: home-manager/home-manager:1074
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations espera un argumento pero se dieron %d."
|
||||
|
||||
#: home-manager/home-manager:1085
|
||||
#: home-manager/home-manager:1096
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Comando desconocido %s"
|
||||
|
||||
|
|
76
third_party/home-manager/home-manager/po/fa.po
vendored
76
third_party/home-manager/home-manager/po/fa.po
vendored
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2023-07-30 09:08+0200\n"
|
||||
"POT-Creation-Date: 2023-09-13 23:46+0200\n"
|
||||
"PO-Revision-Date: 2023-05-28 22:49+0000\n"
|
||||
"Last-Translator: Mohammad Abdolirad <m.abdolirad@gmail.com>\n"
|
||||
"Language-Team: Persian <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
|
@ -19,38 +19,38 @@ msgstr ""
|
|||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: Weblate 4.18-dev\n"
|
||||
|
||||
#: home-manager/home-manager:71
|
||||
#: home-manager/home-manager:81
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "هیچ فایل تنظیماتی در %s پیدا نشد"
|
||||
|
||||
#. translators: The first '%s' specifier will be replaced by either
|
||||
#. 'home.nix' or 'flake.nix'.
|
||||
#: home-manager/home-manager:88 home-manager/home-manager:92
|
||||
#: home-manager/home-manager:182
|
||||
#: home-manager/home-manager:98 home-manager/home-manager:102
|
||||
#: home-manager/home-manager:192
|
||||
msgid ""
|
||||
"Keeping your Home Manager %s in %s is deprecated,\n"
|
||||
"please move it to %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:99
|
||||
#: home-manager/home-manager:109
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr "هیچ فایل تنظیماتی پیدا نشد. لطفا یک فایل در %s بسازید"
|
||||
|
||||
#: home-manager/home-manager:114
|
||||
#: home-manager/home-manager:124
|
||||
msgid "Home Manager not found at %s."
|
||||
msgstr ""
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:122
|
||||
#: home-manager/home-manager:132
|
||||
msgid ""
|
||||
"The fallback Home Manager path %s has been deprecated and a file/directory "
|
||||
"was found there."
|
||||
msgstr ""
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:125
|
||||
#: home-manager/home-manager:135
|
||||
msgid ""
|
||||
"To remove this warning, do one of the fallowing.\n"
|
||||
"To remove this warning, do one of the following.\n"
|
||||
"\n"
|
||||
"1. Explicitly tell Home Manager to use the path, for example by adding\n"
|
||||
"\n"
|
||||
|
@ -69,38 +69,38 @@ msgid ""
|
|||
" $ rm -r \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:164
|
||||
#: home-manager/home-manager:174
|
||||
msgid "Could not find suitable profile directory, tried %s and %s"
|
||||
msgstr ""
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:219
|
||||
#: home-manager/home-manager:229
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:281 home-manager/home-manager:304
|
||||
#: home-manager/home-manager:1023
|
||||
#: home-manager/home-manager:291 home-manager/home-manager:314
|
||||
#: home-manager/home-manager:1034
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:286 home-manager/home-manager:1024
|
||||
#: home-manager/home-manager:296 home-manager/home-manager:1035
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:312 home-manager/home-manager:411
|
||||
#: home-manager/home-manager:322 home-manager/home-manager:421
|
||||
msgid "The file %s already exists, leaving it unchanged..."
|
||||
msgstr "فایل %s از قبل وجود داشته است، بدون تغییر رها شد..."
|
||||
|
||||
#: home-manager/home-manager:314 home-manager/home-manager:413
|
||||
#: home-manager/home-manager:324 home-manager/home-manager:423
|
||||
msgid "Creating %s..."
|
||||
msgstr "ساختن %s..."
|
||||
|
||||
#: home-manager/home-manager:455
|
||||
#: home-manager/home-manager:465
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr ""
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/home-manager:460
|
||||
#: home-manager/home-manager:470
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
|
@ -111,7 +111,7 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/home-manager:465
|
||||
#: home-manager/home-manager:475
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
|
@ -121,11 +121,11 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:476
|
||||
#: home-manager/home-manager:486
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:552
|
||||
#: home-manager/home-manager:562
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
|
@ -135,73 +135,73 @@ msgid_plural ""
|
|||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: home-manager/home-manager:566
|
||||
#: home-manager/home-manager:576
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:573
|
||||
#: home-manager/home-manager:583
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "لطفا متغیر محیطی $EDITOR را مقدار دهی کنید"
|
||||
|
||||
#: home-manager/home-manager:588
|
||||
#: home-manager/home-manager:598
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:666
|
||||
#: home-manager/home-manager:676
|
||||
msgid "No generation with ID %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:668
|
||||
#: home-manager/home-manager:678
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "نمیتوان نسل فعلی %s را حذف کرد"
|
||||
|
||||
#: home-manager/home-manager:670
|
||||
#: home-manager/home-manager:680
|
||||
msgid "Removing generation %s"
|
||||
msgstr "حذف کردن نسل %s"
|
||||
|
||||
#: home-manager/home-manager:689
|
||||
#: home-manager/home-manager:699
|
||||
msgid "No generations to expire"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:700
|
||||
#: home-manager/home-manager:710
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:781
|
||||
#: home-manager/home-manager:792
|
||||
msgid "Unknown argument %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:805
|
||||
#: home-manager/home-manager:816
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:808
|
||||
#: home-manager/home-manager:819
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:812
|
||||
#: home-manager/home-manager:823
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "واقعاً هوم منیجر را حذف نصب کنید؟"
|
||||
|
||||
#: home-manager/home-manager:818
|
||||
#: home-manager/home-manager:829
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:846
|
||||
#: home-manager/home-manager:857
|
||||
#, fuzzy
|
||||
msgid "Yay!"
|
||||
msgstr "آره!"
|
||||
|
||||
#: home-manager/home-manager:851
|
||||
#: home-manager/home-manager:862
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "هوم منیجر حذف نصب شد اما home.nix شما دست نخورده باقی ماند."
|
||||
|
||||
#: home-manager/home-manager:1063
|
||||
#: home-manager/home-manager:1074
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:1085
|
||||
#: home-manager/home-manager:1096
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "دستور ناشناخته: %s"
|
||||
|
||||
|
|
76
third_party/home-manager/home-manager/po/fi.po
vendored
76
third_party/home-manager/home-manager/po/fi.po
vendored
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2023-07-30 09:08+0200\n"
|
||||
"POT-Creation-Date: 2023-09-13 23:46+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: Automatically generated\n"
|
||||
"Language-Team: none\n"
|
||||
|
@ -17,38 +17,38 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
|
||||
#: home-manager/home-manager:71
|
||||
#: home-manager/home-manager:81
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr ""
|
||||
|
||||
#. translators: The first '%s' specifier will be replaced by either
|
||||
#. 'home.nix' or 'flake.nix'.
|
||||
#: home-manager/home-manager:88 home-manager/home-manager:92
|
||||
#: home-manager/home-manager:182
|
||||
#: home-manager/home-manager:98 home-manager/home-manager:102
|
||||
#: home-manager/home-manager:192
|
||||
msgid ""
|
||||
"Keeping your Home Manager %s in %s is deprecated,\n"
|
||||
"please move it to %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:99
|
||||
#: home-manager/home-manager:109
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:114
|
||||
#: home-manager/home-manager:124
|
||||
msgid "Home Manager not found at %s."
|
||||
msgstr ""
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:122
|
||||
#: home-manager/home-manager:132
|
||||
msgid ""
|
||||
"The fallback Home Manager path %s has been deprecated and a file/directory "
|
||||
"was found there."
|
||||
msgstr ""
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:125
|
||||
#: home-manager/home-manager:135
|
||||
msgid ""
|
||||
"To remove this warning, do one of the fallowing.\n"
|
||||
"To remove this warning, do one of the following.\n"
|
||||
"\n"
|
||||
"1. Explicitly tell Home Manager to use the path, for example by adding\n"
|
||||
"\n"
|
||||
|
@ -67,38 +67,38 @@ msgid ""
|
|||
" $ rm -r \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:164
|
||||
#: home-manager/home-manager:174
|
||||
msgid "Could not find suitable profile directory, tried %s and %s"
|
||||
msgstr ""
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:219
|
||||
#: home-manager/home-manager:229
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:281 home-manager/home-manager:304
|
||||
#: home-manager/home-manager:1023
|
||||
#: home-manager/home-manager:291 home-manager/home-manager:314
|
||||
#: home-manager/home-manager:1034
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:286 home-manager/home-manager:1024
|
||||
#: home-manager/home-manager:296 home-manager/home-manager:1035
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:312 home-manager/home-manager:411
|
||||
#: home-manager/home-manager:322 home-manager/home-manager:421
|
||||
msgid "The file %s already exists, leaving it unchanged..."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:314 home-manager/home-manager:413
|
||||
#: home-manager/home-manager:324 home-manager/home-manager:423
|
||||
msgid "Creating %s..."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:455
|
||||
#: home-manager/home-manager:465
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr ""
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/home-manager:460
|
||||
#: home-manager/home-manager:470
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
|
@ -109,7 +109,7 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/home-manager:465
|
||||
#: home-manager/home-manager:475
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
|
@ -119,11 +119,11 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:476
|
||||
#: home-manager/home-manager:486
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:552
|
||||
#: home-manager/home-manager:562
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
|
@ -133,72 +133,72 @@ msgid_plural ""
|
|||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: home-manager/home-manager:566
|
||||
#: home-manager/home-manager:576
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:573
|
||||
#: home-manager/home-manager:583
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:588
|
||||
#: home-manager/home-manager:598
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:666
|
||||
#: home-manager/home-manager:676
|
||||
msgid "No generation with ID %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:668
|
||||
#: home-manager/home-manager:678
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:670
|
||||
#: home-manager/home-manager:680
|
||||
msgid "Removing generation %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:689
|
||||
#: home-manager/home-manager:699
|
||||
msgid "No generations to expire"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:700
|
||||
#: home-manager/home-manager:710
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:781
|
||||
#: home-manager/home-manager:792
|
||||
msgid "Unknown argument %s"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:805
|
||||
#: home-manager/home-manager:816
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:808
|
||||
#: home-manager/home-manager:819
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:812
|
||||
#: home-manager/home-manager:823
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:818
|
||||
#: home-manager/home-manager:829
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:846
|
||||
#: home-manager/home-manager:857
|
||||
msgid "Yay!"
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:851
|
||||
#: home-manager/home-manager:862
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:1063
|
||||
#: home-manager/home-manager:1074
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr ""
|
||||
|
||||
#: home-manager/home-manager:1085
|
||||
#: home-manager/home-manager:1096
|
||||
msgid "Unknown command: %s"
|
||||
msgstr ""
|
||||
|
||||
|
|
113
third_party/home-manager/home-manager/po/fr.po
vendored
113
third_party/home-manager/home-manager/po/fr.po
vendored
|
@ -7,9 +7,9 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2023-07-30 09:08+0200\n"
|
||||
"PO-Revision-Date: 2023-06-17 07:49+0000\n"
|
||||
"Last-Translator: Pink Pony <dreammc@protonmail.com>\n"
|
||||
"POT-Creation-Date: 2023-09-13 23:46+0200\n"
|
||||
"PO-Revision-Date: 2023-12-25 10:10+0000\n"
|
||||
"Last-Translator: Louis Thevenet <louis.thevenet@proton.me>\n"
|
||||
"Language-Team: French <https://hosted.weblate.org/projects/home-manager/cli/"
|
||||
"fr/>\n"
|
||||
"Language: fr\n"
|
||||
|
@ -17,16 +17,16 @@ msgstr ""
|
|||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: Weblate 4.18.1\n"
|
||||
"X-Generator: Weblate 5.4-dev\n"
|
||||
|
||||
#: home-manager/home-manager:71
|
||||
#: home-manager/home-manager:81
|
||||
msgid "No configuration file found at %s"
|
||||
msgstr "Aucun fichier de configuration trouvé à l'emplacement %s"
|
||||
|
||||
#. translators: The first '%s' specifier will be replaced by either
|
||||
#. 'home.nix' or 'flake.nix'.
|
||||
#: home-manager/home-manager:88 home-manager/home-manager:92
|
||||
#: home-manager/home-manager:182
|
||||
#: home-manager/home-manager:98 home-manager/home-manager:102
|
||||
#: home-manager/home-manager:192
|
||||
msgid ""
|
||||
"Keeping your Home Manager %s in %s is deprecated,\n"
|
||||
"please move it to %s"
|
||||
|
@ -34,27 +34,29 @@ msgstr ""
|
|||
"Garder votre Home Manager %s dans %s est obsolète,\n"
|
||||
"Veuillez le déplacer à %s"
|
||||
|
||||
#: home-manager/home-manager:99
|
||||
#: home-manager/home-manager:109
|
||||
msgid "No configuration file found. Please create one at %s"
|
||||
msgstr ""
|
||||
"Aucun fichier de configuration trouvé. Veuillez en créer un à l'emplacement "
|
||||
"%s"
|
||||
|
||||
#: home-manager/home-manager:114
|
||||
#: home-manager/home-manager:124
|
||||
msgid "Home Manager not found at %s."
|
||||
msgstr ""
|
||||
msgstr "Home Manager indisponible à %s."
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:122
|
||||
#: home-manager/home-manager:132
|
||||
msgid ""
|
||||
"The fallback Home Manager path %s has been deprecated and a file/directory "
|
||||
"was found there."
|
||||
msgstr ""
|
||||
"Le chemin d'accès de secours vers Home Manager %s est obsolète et un fichier/"
|
||||
"dossier y a été trouvé."
|
||||
|
||||
#. translators: This message will be seen by very few users that likely are familiar with English. So feel free to leave this untranslated.
|
||||
#: home-manager/home-manager:125
|
||||
#: home-manager/home-manager:135
|
||||
msgid ""
|
||||
"To remove this warning, do one of the fallowing.\n"
|
||||
"To remove this warning, do one of the following.\n"
|
||||
"\n"
|
||||
"1. Explicitly tell Home Manager to use the path, for example by adding\n"
|
||||
"\n"
|
||||
|
@ -72,39 +74,54 @@ msgid ""
|
|||
"\n"
|
||||
" $ rm -r \"%s\""
|
||||
msgstr ""
|
||||
"Pour supprimer cet avertissement, exécutez l'une des actions suivantes :\n"
|
||||
"\n"
|
||||
"1. Préciser explicitement à Home Manager d'utiliser le chemin d'accès, par "
|
||||
"exemple en ajoutant ceci à votre configuration :\n"
|
||||
"\n"
|
||||
"\t{ programs.home-manager.path = \"%s\" ; }\n"
|
||||
"\n"
|
||||
"Si vous importez Home Manager directement, vous pouvez utiliser le paramètre "
|
||||
"`path` au lancement du package :\n"
|
||||
"\n"
|
||||
"\tpkgs.callPackage /path/to/home-manager-package { path = \"%s\" ; }\n"
|
||||
"\n"
|
||||
"2. Supprimez le chemin d'accès obsolète.\n"
|
||||
"\n"
|
||||
"\t$ rm -r \"%s\""
|
||||
|
||||
#: home-manager/home-manager:164
|
||||
#: home-manager/home-manager:174
|
||||
msgid "Could not find suitable profile directory, tried %s and %s"
|
||||
msgstr "Impossible de trouver le dossier de profil approprié, essayé %s et %s"
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:219
|
||||
#: home-manager/home-manager:229
|
||||
msgid "Can't inspect options of a flake configuration"
|
||||
msgstr "Impossible d'inspecter les options d'une configuration en flocons"
|
||||
msgstr "Impossible d'inspecter les options de la configuration d'un flake"
|
||||
|
||||
#: home-manager/home-manager:281 home-manager/home-manager:304
|
||||
#: home-manager/home-manager:1023
|
||||
#: home-manager/home-manager:291 home-manager/home-manager:314
|
||||
#: home-manager/home-manager:1034
|
||||
msgid "%s: unknown option '%s'"
|
||||
msgstr "%s : option inconnue « %s »"
|
||||
msgstr "%s : option inconnue '%s'"
|
||||
|
||||
#: home-manager/home-manager:286 home-manager/home-manager:1024
|
||||
#: home-manager/home-manager:296 home-manager/home-manager:1035
|
||||
msgid "Run '%s --help' for usage help"
|
||||
msgstr "Exécuter « %s --help » pour de l'aide sur l'utilisation"
|
||||
|
||||
#: home-manager/home-manager:312 home-manager/home-manager:411
|
||||
#: home-manager/home-manager:322 home-manager/home-manager:421
|
||||
msgid "The file %s already exists, leaving it unchanged..."
|
||||
msgstr "Le fichier %s existe déjà, il sera laissé inchangé..."
|
||||
|
||||
#: home-manager/home-manager:314 home-manager/home-manager:413
|
||||
#: home-manager/home-manager:324 home-manager/home-manager:423
|
||||
msgid "Creating %s..."
|
||||
msgstr "Création de %s ..."
|
||||
|
||||
#: home-manager/home-manager:455
|
||||
#: home-manager/home-manager:465
|
||||
msgid "Creating initial Home Manager generation..."
|
||||
msgstr "Création de la génération initiale de Home Manager..."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a file path.
|
||||
#: home-manager/home-manager:460
|
||||
#: home-manager/home-manager:470
|
||||
msgid ""
|
||||
"All done! The home-manager tool should now be installed and you can edit\n"
|
||||
"\n"
|
||||
|
@ -122,7 +139,7 @@ msgstr ""
|
|||
"essayez 'man home-configuration.nix'."
|
||||
|
||||
#. translators: The "%s" specifier will be replaced by a URL.
|
||||
#: home-manager/home-manager:465
|
||||
#: home-manager/home-manager:475
|
||||
msgid ""
|
||||
"Uh oh, the installation failed! Please create an issue at\n"
|
||||
"\n"
|
||||
|
@ -138,11 +155,11 @@ msgstr ""
|
|||
"si l'erreur semble être liée à Home Manager."
|
||||
|
||||
#. translators: Here "flake" is a noun that refers to the Nix Flakes feature.
|
||||
#: home-manager/home-manager:476
|
||||
#: home-manager/home-manager:486
|
||||
msgid "Can't instantiate a flake configuration"
|
||||
msgstr "Impossible d'instancier une configuration flake"
|
||||
|
||||
#: home-manager/home-manager:552
|
||||
#: home-manager/home-manager:562
|
||||
msgid ""
|
||||
"There is %d unread and relevant news item.\n"
|
||||
"Read it by running the command \"%s news\"."
|
||||
|
@ -156,72 +173,72 @@ msgstr[1] ""
|
|||
"Il y a %d nouveaux éléments non lus et pertinents.\n"
|
||||
"Vous pouvez les lire en exécutant la commande \"%s news\"."
|
||||
|
||||
#: home-manager/home-manager:566
|
||||
#: home-manager/home-manager:576
|
||||
msgid "Unknown \"news.display\" setting \"%s\"."
|
||||
msgstr "Configuration \"news.display\" iconnue \"%s\"."
|
||||
msgstr "Configuration \"news.display\" inconnue \"%s\"."
|
||||
|
||||
#: home-manager/home-manager:573
|
||||
#: home-manager/home-manager:583
|
||||
#, sh-format
|
||||
msgid "Please set the $EDITOR environment variable"
|
||||
msgstr "Veuillez définir la variable d'environnement $EDITOR"
|
||||
|
||||
#: home-manager/home-manager:588
|
||||
#: home-manager/home-manager:598
|
||||
msgid "Cannot run build in read-only directory"
|
||||
msgstr "Impossible de lancer une compilation dans un dossier en écriture seule"
|
||||
|
||||
#: home-manager/home-manager:666
|
||||
#: home-manager/home-manager:676
|
||||
msgid "No generation with ID %s"
|
||||
msgstr "Aucune génération avec l'identifiant %s"
|
||||
msgstr "Aucune génération avec l'ID %s"
|
||||
|
||||
#: home-manager/home-manager:668
|
||||
#: home-manager/home-manager:678
|
||||
msgid "Cannot remove the current generation %s"
|
||||
msgstr "Impossible de supprimer la génération courante %s"
|
||||
|
||||
#: home-manager/home-manager:670
|
||||
#: home-manager/home-manager:680
|
||||
msgid "Removing generation %s"
|
||||
msgstr "Suppression de la génération %s"
|
||||
|
||||
#: home-manager/home-manager:689
|
||||
#: home-manager/home-manager:699
|
||||
msgid "No generations to expire"
|
||||
msgstr "Aucune génération expirée"
|
||||
|
||||
#: home-manager/home-manager:700
|
||||
#: home-manager/home-manager:710
|
||||
msgid "No home-manager packages seem to be installed."
|
||||
msgstr "Aucun paquet home-manager ne semble être installé."
|
||||
msgstr "Aucun package home-manager ne semble être installé."
|
||||
|
||||
#: home-manager/home-manager:781
|
||||
#: home-manager/home-manager:792
|
||||
msgid "Unknown argument %s"
|
||||
msgstr "Aucun argument %s"
|
||||
msgstr "Argument inconnu %s"
|
||||
|
||||
#: home-manager/home-manager:805
|
||||
#: home-manager/home-manager:816
|
||||
msgid "This will remove Home Manager from your system."
|
||||
msgstr "Cela va supprimer Home Manager de votre système."
|
||||
|
||||
#: home-manager/home-manager:808
|
||||
#: home-manager/home-manager:819
|
||||
msgid "This is a dry run, nothing will actually be uninstalled."
|
||||
msgstr "C'est un essai, rien ne sera réellement désinstallé."
|
||||
|
||||
#: home-manager/home-manager:812
|
||||
#: home-manager/home-manager:823
|
||||
msgid "Really uninstall Home Manager?"
|
||||
msgstr "Voulez-vous vraiment désinstaller Home Manager ?"
|
||||
|
||||
#: home-manager/home-manager:818
|
||||
#: home-manager/home-manager:829
|
||||
msgid "Switching to empty Home Manager configuration..."
|
||||
msgstr "Changement vers une configuration vierge de Home Manager..."
|
||||
|
||||
#: home-manager/home-manager:846
|
||||
#: home-manager/home-manager:857
|
||||
msgid "Yay!"
|
||||
msgstr "Yay !"
|
||||
|
||||
#: home-manager/home-manager:851
|
||||
#: home-manager/home-manager:862
|
||||
msgid "Home Manager is uninstalled but your home.nix is left untouched."
|
||||
msgstr "Home Manager est désinstallé mais votre home.nix reste intact."
|
||||
|
||||
#: home-manager/home-manager:1063
|
||||
#: home-manager/home-manager:1074
|
||||
msgid "expire-generations expects one argument, got %d."
|
||||
msgstr "expire-generations attend un argument, a obtenu %d."
|
||||
|
||||
#: home-manager/home-manager:1085
|
||||
#: home-manager/home-manager:1096
|
||||
msgid "Unknown command: %s"
|
||||
msgstr "Commande inconnue : %s"
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue