Thank you for your contribution!
I marked this issue as stale due to inactivity.
- If this remains inactive for another 7 days, I will close this issue.
+ Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'.
+ We welcome additional information that will help resolve this issue.
Please read the relevant sections below before commenting.
@@ -36,11 +36,8 @@ issues:
Memorandum on closing issues
- If you have nothing of substance to add, please refrain from commenting and allow the bot close the issue.
- Also, don't be afraid to manually close an issue, even if it holds valuable information.
-
-
- Closed issues stay in the system for people to search, read, cross-reference, or even reopen--nothing is lost!
+ Don't be afraid to manually close an issue, even if it holds valuable information.
+ Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost!
Closing obsolete issues is an important way to help maintainers focus their time and effort.
@@ -49,7 +46,6 @@ pulls:
Thank you for your contribution!
I marked this pull request as stale due to inactivity.
- If this remains inactive for another 7 days, I will close this PR.
Please read the relevant sections below before commenting.
@@ -57,7 +53,7 @@ pulls:
If you are the original author of the PR
- * GitHub sometimes doesn't notify people who commented / reviewed a PR previously, when you (force) push commits. *If you have addressed the reviews* you can [officially ask for a review](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/requesting-a-pull-request-review) from those who commented to you or anyone else.
+ * GitHub sometimes doesn't notify people who commented / reviewed a PR previously when you (force) push commits. *If you have addressed the reviews* you can [officially ask for a review](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/requesting-a-pull-request-review) from those who commented to you or anyone else.
* If it is unfinished but you plan to finish it, please mark it as a draft.
* If you don't expect to work on it any time soon, please consider closing it with a short comment encouraging someone else to pick up your work.
* To get things rolling again, rebase the PR against the target branch and address valid comments.
@@ -66,7 +62,7 @@ pulls:
- If you are not the original author of the issue
+ If you are not the original author of the PR
* If you want to pick up the work on this PR, please create a new PR and indicate that it supercedes and closes this PR.
diff --git a/third_party/home-manager/.github/workflows/github_pages.yml b/third_party/home-manager/.github/workflows/github_pages.yml
index 97e784bda0..b60812aebc 100644
--- a/third_party/home-manager/.github/workflows/github_pages.yml
+++ b/third_party/home-manager/.github/workflows/github_pages.yml
@@ -10,14 +10,14 @@ jobs:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- - uses: actions/checkout@v2
- - uses: cachix/install-nix-action@v16
+ - uses: actions/checkout@v3
+ - uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- - uses: cachix/cachix-action@v10
+ - uses: cachix/cachix-action@v12
with:
name: nix-community
- signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
+ authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: |
nix-build -A docs.html
cp -r result/share/doc/home-manager public
diff --git a/third_party/home-manager/.github/workflows/labeler.yml b/third_party/home-manager/.github/workflows/labeler.yml
new file mode 100644
index 0000000000..daea610a3a
--- /dev/null
+++ b/third_party/home-manager/.github/workflows/labeler.yml
@@ -0,0 +1,24 @@
+name: "Label PR"
+
+on:
+ - pull_request_target
+
+# WARNING:
+# When extending this action, be aware that $GITHUB_TOKEN allows some write
+# access to the GitHub API. This means that it should not evaluate user input in
+# a way that allows code injection.
+
+permissions:
+ contents: read
+ pull-requests: write
+
+jobs:
+ labels:
+ runs-on: ubuntu-latest
+ if: github.repository_owner == 'nix-community'
+ steps:
+ - uses: actions/labeler@v4
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ sync-labels: true
+
diff --git a/third_party/home-manager/.github/workflows/test.yml b/third_party/home-manager/.github/workflows/test.yml
index 7b1fdbf77c..73ac7a003c 100644
--- a/third_party/home-manager/.github/workflows/test.yml
+++ b/third_party/home-manager/.github/workflows/test.yml
@@ -11,19 +11,20 @@ jobs:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- - uses: actions/checkout@v2
- - uses: cachix/install-nix-action@v16
+ - uses: actions/checkout@v3
+ - uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- - uses: cachix/cachix-action@v10
+ - uses: cachix/cachix-action@v12
with:
name: nix-community
- signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
+ authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: |
if grep -R --exclude stdlib-extended.nix literalExample modules ; then
echo "Error: literalExample should be replaced by literalExpression" > /dev/stderr
exit 1
fi
+ - run: nix-build -A docs.jsonModuleMaintainers
- run: ./format -c
- run: nix-shell . -A install
- run: nix-shell --arg enableBig false --pure tests -A run.all
diff --git a/third_party/home-manager/.github/workflows/update-flake.yml b/third_party/home-manager/.github/workflows/update-flake.yml
new file mode 100644
index 0000000000..b06db161fc
--- /dev/null
+++ b/third_party/home-manager/.github/workflows/update-flake.yml
@@ -0,0 +1,20 @@
+name: Update flake inputs
+on:
+ schedule:
+ # Update every Sunday and Wednesday
+ - cron: "51 3 * * 0,3"
+ workflow_dispatch:
+
+jobs:
+ update:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+ - name: Install Nix
+ uses: cachix/install-nix-action@v18
+ - name: Update flake.lock
+ uses: DeterminateSystems/update-flake-lock@v15
+ with:
+ token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
+ pr-labels: dependencies
diff --git a/third_party/home-manager/.gitignore b/third_party/home-manager/.gitignore
index 3526db7189..d6944e3ddc 100644
--- a/third_party/home-manager/.gitignore
+++ b/third_party/home-manager/.gitignore
@@ -1,2 +1 @@
-/flake.lock
/result*
diff --git a/third_party/home-manager/.gitlab-ci.yml b/third_party/home-manager/.gitlab-ci.yml
index 34085a57e2..a7d63798e5 100644
--- a/third_party/home-manager/.gitlab-ci.yml
+++ b/third_party/home-manager/.gitlab-ci.yml
@@ -4,25 +4,14 @@ variables:
NIX_PATH: "nixpkgs=channel:nixos-unstable"
stages:
- - test
- deploy
-Run tests:
- stage: test
- script:
- - nix-shell --pure tests -A run.files-text
- rules:
- - if: $CI_COMMIT_BRANCH == "master"
- when: always
-
pages:
stage: deploy
script:
- - mkdir -p ~/.config/nixpkgs
- - echo '{ manual.html.enable = true; }' > ~/.config/nixpkgs/home.nix
- - nix-shell . -A install
+ - nix-build -A docs.html
- mkdir public
- - cp -r ~/.nix-profile/share/doc/home-manager/* public/
+ - cp -r ./result/share/doc/home-manager/* public/
artifacts:
paths:
- public
diff --git a/third_party/home-manager/.release b/third_party/home-manager/.release
index a01c758c18..f8c8609697 100644
--- a/third_party/home-manager/.release
+++ b/third_party/home-manager/.release
@@ -1 +1 @@
-22.05
+23.05
diff --git a/third_party/home-manager/LICENSE b/third_party/home-manager/LICENSE
index 2db3938bbe..97c9352818 100644
--- a/third_party/home-manager/LICENSE
+++ b/third_party/home-manager/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2017-2020 Home Manager contributors
+Copyright (c) 2017-2022 Home Manager contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/third_party/home-manager/README.md b/third_party/home-manager/README.md
index 9cffe4ef35..f792af543e 100644
--- a/third_party/home-manager/README.md
+++ b/third_party/home-manager/README.md
@@ -6,10 +6,20 @@ 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.
-For a more systematic overview of Home Manager and its available
-options, please see the [Home Manager manual][manual].
+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/).
+
+If you would like to contribute to Home Manager
+then please have a look at the [contributing][] chapter of the manual.
Words of warning
----------------
@@ -32,14 +42,14 @@ 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 21.11 (the
+Home Manager targets [NixOS][] unstable and NixOS version 22.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](#rollbacks) section for instructions
-on how to manually perform a rollback.
+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.
@@ -47,8 +57,9 @@ 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][].
+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
------------
@@ -73,77 +84,21 @@ Home Manager can be used in three primary ways:
installation][manual nix-darwin install] in the manual for a
description of this setup.
-Nix Flakes
-----------
+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 includes a `flake.nix` file for compatibility with [Nix Flakes][]
-for those that wish to use it as a module. A bare-minimum `flake.nix` would be
-as follows:
+Translations
+------------
-```nix
-{
- description = "NixOS configuration";
+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/).
- inputs = {
- nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
- home-manager.url = "github:nix-community/home-manager";
- };
-
- outputs = { home-manager, nixpkgs, ... }: {
- 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
- }
- ];
- };
- };
- };
-}
-```
-
-If you are not using NixOS you can place the following flake in
-`~/.config/nixpkgs/flake.nix` to load your standard Home Manager
-configuration:
-
-```nix
-{
- description = "A Home Manager flake";
-
- inputs = {
- nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
- home-manager.url = "github:nix-community/home-manager";
- home-manager.inputs.nixpkgs.follows = "nixpkgs";
- };
-
- outputs = inputs: {
- homeConfigurations = {
- jdoe = inputs.home-manager.lib.homeManagerConfiguration {
- system = "x86_64-linux";
- homeDirectory = "/home/jdoe";
- username = "jdoe";
- configuration.imports = [ ./home.nix ];
- };
- };
- };
-}
-```
-
-Note, the Home Manager library is exported by the flake under
-`lib.hm`.
-
-When using flakes, switch to new configurations as you do for the
-whole system (e. g. `nixos-rebuild switch --flake `) instead of
-using the `home-manager` command line tool.
+
+
+
Releases
--------
@@ -152,7 +107,7 @@ 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-21.11`). These branches get fixes, but usually not new
+(e.g. `release-22.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.
@@ -161,17 +116,20 @@ License
This project is licensed under the terms of the [MIT license](LICENSE).
-[Nix]: https://nixos.org/nix/
+[Nix]: https://nixos.org/explore.html
[NixOS]: https://nixos.org/
-[Nixpkgs]: https://nixos.org/nixpkgs/
-[manual]: https://nix-community.github.io/home-manager/
+[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 Pills]: https://nixos.org/nixos/nix-pills/
+[Nix Pills]: https://nixos.org/guides/nix-pills/
[Nix Flakes]: https://nixos.wiki/wiki/Flakes
-[nix-darwin]: https://github.com/LnL7/nix-darwin/
+[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
diff --git a/third_party/home-manager/default.nix b/third_party/home-manager/default.nix
index 4438d827f3..b665b7a66f 100644
--- a/third_party/home-manager/default.nix
+++ b/third_party/home-manager/default.nix
@@ -5,6 +5,7 @@ rec {
html = manual.html;
manPages = manPages;
json = options.json;
+ jsonModuleMaintainers = jsonModuleMaintainers; # Unstable, mainly for CI.
};
home-manager = pkgs.callPackage ./home-manager { path = toString ./.; };
diff --git a/third_party/home-manager/docs/contributing.adoc b/third_party/home-manager/docs/contributing.adoc
index cffa621392..82a07a9a8b 100644
--- a/third_party/home-manager/docs/contributing.adoc
+++ b/third_party/home-manager/docs/contributing.adoc
@@ -105,7 +105,7 @@ When you have made changes to a module, it is a good idea to check that the man
[source,console]
$ nix-build -A docs.manPages
-$ man ./result/share/man/man5/home-configuration.nix.5
+$ man ./result/share/man/man5/home-configuration.nix.5.gz
==== Add yourself as a module maintainer
@@ -155,7 +155,7 @@ A potential gotcha with respect to licensing are option descriptions. Often it i
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]. 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
+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}
@@ -256,3 +256,8 @@ 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 .#tests.all
diff --git a/third_party/home-manager/docs/default.nix b/third_party/home-manager/docs/default.nix
index fd038d1a80..83ac2a320d 100644
--- a/third_party/home-manager/docs/default.nix
+++ b/third_party/home-manager/docs/default.nix
@@ -5,12 +5,10 @@
let
- nmdSrc = pkgs.fetchFromGitLab {
- name = "nmd";
- owner = "rycee";
- repo = "nmd";
- rev = "527245ff605bde88c2dd2ddae21c6479bb7cf8aa";
- sha256 = "1zi0f9y3wq4bpslx1py3sfgrgd9av41ahpandvs6rvkpisfsqqlp";
+ nmdSrc = fetchTarball {
+ url =
+ "https://gitlab.com/api/v4/projects/rycee%2Fnmd/repository/archive.tar.gz?sha=06c80103396a1a950586c23da1882c977b24bbda";
+ sha256 = "15axmplkl7m7fs4c8m53dawhgwkb64hm2v67m59xdknbjjgfrpqb";
};
nmd = import nmdSrc { inherit lib pkgs; };
@@ -26,6 +24,8 @@ let
}];
};
+ dontCheckDefinitions = { _module.check = false; };
+
buildModulesDocs = args:
nmd.buildModulesDocs ({
moduleRootPaths = [ ./.. ];
@@ -43,21 +43,7 @@ let
};
nixosModuleDocs = buildModulesDocs {
- modules = let
- nixosModule = module: pkgs.path + "/nixos/modules" + module;
- mockedNixos = with lib; {
- options = {
- environment.pathsToLink = mkSinkUndeclaredOptions { };
- systemd.services = mkSinkUndeclaredOptions { };
- users.users = mkSinkUndeclaredOptions { };
- };
- };
- in [
- ../nixos/default.nix
- mockedNixos
- (nixosModule "/misc/assertions.nix")
- scrubbedPkgsModule
- ];
+ modules = [ ../nixos scrubbedPkgsModule dontCheckDefinitions ];
docBook = {
id = "nixos-options";
optionIdPrefix = "nixos-opt";
@@ -65,22 +51,7 @@ let
};
nixDarwinModuleDocs = buildModulesDocs {
- modules = let
- nixosModule = module: pkgs.path + "/nixos/modules" + module;
- mockedNixDarwin = with lib; {
- options = {
- environment.pathsToLink = mkSinkUndeclaredOptions { };
- system.activationScripts.postActivation.text =
- mkSinkUndeclaredOptions { };
- users.users = mkSinkUndeclaredOptions { };
- };
- };
- in [
- ../nix-darwin/default.nix
- mockedNixDarwin
- (nixosModule "/misc/assertions.nix")
- scrubbedPkgsModule
- ];
+ modules = [ ../nix-darwin scrubbedPkgsModule dontCheckDefinitions ];
docBook = {
id = "nix-darwin-options";
optionIdPrefix = "nix-darwin-opt";
@@ -89,6 +60,7 @@ let
docs = nmd.buildDocBookDocs {
pathName = "home-manager";
+ projectName = "Home Manager";
modulesDocs = [ hmModulesDocs nixDarwinModuleDocs nixosModuleDocs ];
documentsDirectory = ./.;
documentType = "book";
@@ -117,4 +89,14 @@ in {
manPages = docs.manPages;
manual = { inherit (docs) html htmlOpenTool; };
+
+ # Unstable, mainly for CI.
+ jsonModuleMaintainers = pkgs.writeText "hm-module-maintainers.json" (let
+ result = lib.evalModules {
+ modules = import ../modules/modules.nix {
+ inherit lib pkgs;
+ check = false;
+ } ++ [ scrubbedPkgsModule ];
+ };
+ in builtins.toJSON result.config.meta.maintainers);
}
diff --git a/third_party/home-manager/docs/faq.adoc b/third_party/home-manager/docs/faq.adoc
index c5615fdbfc..6488688059 100644
--- a/third_party/home-manager/docs/faq.adoc
+++ b/third_party/home-manager/docs/faq.adoc
@@ -45,7 +45,9 @@ You could also opt to unistall _all_ of the packages from your profile with `nix
=== 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. 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
+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 <>, <>, or <>.
+
+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]
----
@@ -89,14 +91,22 @@ while the `common.nix` file contains configuration shared across the two logins.
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`?
+=== Why do I get an error message about `ca.desrt.dconf` or `dconf.service`?
-You are most likely trying to configure the GTK or Gnome Terminal but the DBus session is not aware of the dconf service. The full error you might get is
+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]
@@ -133,8 +143,8 @@ 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
+$ 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.
diff --git a/third_party/home-manager/docs/installation.adoc b/third_party/home-manager/docs/installation.adoc
index 19df6fcab3..afdbe35e9a 100644
--- a/third_party/home-manager/docs/installation.adoc
+++ b/third_party/home-manager/docs/installation.adoc
@@ -41,9 +41,6 @@ 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.allowedUsers`] system option.
-+
-Note that Nix 2.4 is not yet fully supported. Most significantly, Home
-Manager is incompatible with the new `nix profile`.
2. Add the appropriate Home Manager channel. If you are following
Nixpkgs master or an unstable channel you can run
@@ -54,22 +51,13 @@ $ nix-channel --add https://github.com/nix-community/home-manager/archive/master
$ nix-channel --update
----
+
-and if you follow a Nixpkgs version 21.11 channel you can run
+and if you follow a Nixpkgs version 22.11 channel you can run
+
[source,console]
----
-$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz home-manager
+$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz home-manager
$ nix-channel --update
----
-+
-On NixOS you may need to log out and back in for the channel to become
-available. On non-NixOS you may have to add
-+
-[source,bash]
-export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
-+
-to your shell (see
-https://github.com/NixOS/nix/issues/2033[nix#2033]).
3. Run the Home Manager installation command and create the first Home
Manager generation:
@@ -126,21 +114,21 @@ 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. For example, if you are following Nixpkgs master
-or an unstable channel, you can run
+Home Manager channel to the root user. 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
+$ 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 21.11 channel, you can run
+and if you follow a Nixpkgs version 22.11 channel, you can run
[source,console]
----
-# nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz home-manager
-# nix-channel --update
+$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz home-manager
+$ sudo nix-channel --update
----
It is then possible to add
@@ -163,9 +151,18 @@ home-manager.users.eve = { pkgs, ... }: {
};
----
-and after a `nixos-rebuild switch` the user eve's environment should
+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
@@ -233,16 +230,16 @@ 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
+$ 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 21.11 channel, you can run
+and if you follow a Nixpkgs version 22.11 channel, you can run
[source,console]
----
-# nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz home-manager
-# nix-channel --update
+$ nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz home-manager
+$ nix-channel --update
----
It is then possible to add
@@ -296,7 +293,7 @@ can be sourced directly by POSIX.2-like shells such as {bash}[Bash] or
[NOTE]
====
By default user packages will not be ignored in favor of
-`environment.systemPackages`, but they will be intalled to
+`environment.systemPackages`, but they will be installed to
`/etc/profiles/per-user/$USERNAME` if
[source,nix]
diff --git a/third_party/home-manager/docs/man-home-manager.xml b/third_party/home-manager/docs/man-home-manager.xml
index 9f53745035..513973e98c 100644
--- a/third_party/home-manager/docs/man-home-manager.xml
+++ b/third_party/home-manager/docs/man-home-manager.xml
@@ -102,6 +102,10 @@
+
+ --version
+
+
@@ -151,6 +155,18 @@
--keep-going
+
+
+
+ -L
+
+
+
+ --print-build-logs
+
+
+
+
--show-trace
@@ -414,7 +430,7 @@
Indicates the path to the Home Manager configuration file. If not given,
- ~/.config/nixpkgs/home.nix is used.
+ $XDG_CONFIG_HOME/nixpkgs/home.nix is used.
@@ -431,6 +447,16 @@
+
+
+
+
+
+
+ Prints the version number of the home-manager tool.
+
+
+
@@ -532,6 +558,22 @@
+
+
+
+
+
+
+
+
+
+ Passed on to
+ nix build
+
+ when building from a flake.
+
+
+
@@ -589,7 +631,7 @@
- ~/.local/share/home-manager/news-read-ids
+ $XDG_DATA_HOME/home-manager/news-read-ids
diff --git a/third_party/home-manager/docs/man-pages.xml b/third_party/home-manager/docs/man-pages.xml
index bb484ae019..a68b0e60d7 100644
--- a/third_party/home-manager/docs/man-pages.xml
+++ b/third_party/home-manager/docs/man-pages.xml
@@ -4,7 +4,7 @@
Home Manager Reference PagesHome Manager contributors
- 2017–2020Home Manager contributors
+ 2017–2022Home Manager contributors
diff --git a/third_party/home-manager/docs/manual.xml b/third_party/home-manager/docs/manual.xml
index 693f0a92f7..b159940c87 100644
--- a/third_party/home-manager/docs/manual.xml
+++ b/third_party/home-manager/docs/manual.xml
@@ -16,13 +16,15 @@
If you encounter problems then please reach out on the IRC channel
#home-manager
hosted by OFTC.
+ There is also a Matrix room,
+ 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.
- Commands prefixed with # have to be run as root, either
+ 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.
@@ -30,6 +32,7 @@
+
diff --git a/third_party/home-manager/docs/nix-flakes.adoc b/third_party/home-manager/docs/nix-flakes.adoc
new file mode 100644
index 0000000000..d426e337f1
--- /dev/null
+++ b/third_party/home-manager/docs/nix-flakes.adoc
@@ -0,0 +1,241 @@
+[[ch-nix-flakes]]
+== Nix Flakes
+
+:nixos-wiki-flakes: https://nixos.wiki/wiki/Flakes
+
+Home Manager includes a `flake.nix` file for compatibility with {nixos-wiki-flakes}[Nix Flakes].
+The support is still experimental and may change in backwards incompatible ways.
+
+[[sec-flakes-prerequisties]]
+=== 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"
+$ home-manager --extra-experimental-features "nix-command flakes"
+----
+
+* 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 <> for introduction about
+writing a Home Manager configuration.
+
+[[sec-flakes-standalone]]
+=== Standalone setup
+
+1. Set up a flake with a `flake.nix` as follows:
++
+[source,nix]
+----
+{
+ description = "Home Manager configuration of Jane Doe";
+
+ inputs = {
+ # Specify the source of Home Manager and Nixpkgs.
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+ home-manager = {
+ url = "github:nix-community/home-manager";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+ };
+
+ outputs = { nixpkgs, home-manager, ... }:
+ let
+ system = "x86_64-linux";
+ pkgs = nixpkgs.legacyPackages.${system};
+ in {
+ homeConfigurations.jdoe = home-manager.lib.homeManagerConfiguration {
+ inherit pkgs;
+
+ # Specify your home configuration modules here, for example,
+ # the path to your home.nix.
+ modules = [
+ ./home.nix
+ ];
+
+ # Optionally use extraSpecialArgs
+ # to pass through arguments to home.nix
+ };
+ };
+}
+----
++
+[NOTE]
+====
+* The above example tracks the master branch of Home Manager
+and nixos-unstable branch of Nixpkgs.
+If you would like to use the `release-22.11` branch,
+change the `home-manager` input url to `github:nix-community/home-manager/release-22.11`
+and `nixpkgs` url to `github:NixOS/nixpkgs/nixos-22.11`.
+
+* The Home Manager library is exported by the flake under
+`lib.hm`.
+
+* You can use the above `flake.nix` as a template in `~/.config/nixpkgs` by
+[source,console]
+$ nix flake new ~/.config/nixpkgs -t github:nix-community/home-manager
+====
+
+2. Install Home Manager and apply the configuration by
++
+[source,console]
+----
+$ nix build --no-link #homeConfigurations.jdoe.activationPackage
+$ "$(nix path-info #homeConfigurations.jdoe.activationPackage)"/activate
+----
++
+Substitute `` with the flake URI of the configuration flake.
+If `flake.nix` resides in `~/.config/nixpkgs`,
+`` may be `~/.config/nixpkgs`
+as a Git tree or `path:~/.config/nixpkgs` if not.
+
+3. Since the release `21.05`,
+building a flake-based configuration is as simple as
++
+[source,console]
+$ home-manager switch --flake '#jdoe'
++
+once home-manager is installed.
++
+Here, `jdoe` is a configuration specified in the flake file,
+and `#jdoe` will be expanded to
+`#homeConfigurations.jdoe.activationPackage`
+and be built by Nix.
+
+[NOTE]
+====
+The flake inputs are not upgraded automatically when switching.
+The analogy to the command `home-manager --update ...` is `nix flake update`.
+
+If updating more than one input is undesirable,
+the command `nix flake lock --update-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/switching,
+and these options will be forwarded to `nix build`.
+See the {nixos-wiki-flakes}[NixOS Wiki page] for detail.
+====
+
+[[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 `.
+
+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 `.
+
+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
diff --git a/third_party/home-manager/docs/release-notes/release-notes.adoc b/third_party/home-manager/docs/release-notes/release-notes.adoc
index 56bfa20b62..d7058ca0cc 100644
--- a/third_party/home-manager/docs/release-notes/release-notes.adoc
+++ b/third_party/home-manager/docs/release-notes/release-notes.adoc
@@ -6,6 +6,10 @@ This section lists the release notes for stable versions of Home Manager and the
:leveloffset: 1
+include::rl-2305.adoc[]
+
+include::rl-2211.adoc[]
+
include::rl-2205.adoc[]
include::rl-2111.adoc[]
diff --git a/third_party/home-manager/docs/release-notes/rl-2105.adoc b/third_party/home-manager/docs/release-notes/rl-2105.adoc
index 7fcfb268d3..ed94f8880b 100644
--- a/third_party/home-manager/docs/release-notes/rl-2105.adoc
+++ b/third_party/home-manager/docs/release-notes/rl-2105.adoc
@@ -8,7 +8,7 @@ The 21.05 release branch became the stable branch in May, 2021.
This release has the following notable changes:
-* The <> option is now a list rather than an
+* 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,
+
diff --git a/third_party/home-manager/docs/release-notes/rl-2205.adoc b/third_party/home-manager/docs/release-notes/rl-2205.adoc
index 0684bab61d..f600640e4f 100644
--- a/third_party/home-manager/docs/release-notes/rl-2205.adoc
+++ b/third_party/home-manager/docs/release-notes/rl-2205.adoc
@@ -1,16 +1,29 @@
[[sec-release-22.05]]
== Release 22.05
-This is the current unstable branch and the information in this section is therefore not final.
+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
diff --git a/third_party/home-manager/docs/release-notes/rl-2211.adoc b/third_party/home-manager/docs/release-notes/rl-2211.adoc
new file mode 100644
index 0000000000..046995d527
--- /dev/null
+++ b/third_party/home-manager/docs/release-notes/rl-2211.adoc
@@ -0,0 +1,113 @@
+[[sec-release-22.11]]
+== Release 22.11
+
+This is the current unstable branch and the information in this section is therefore not final.
+
+[[sec-release-22.11-highlights]]
+=== Highlights
+
+This release has the following notable changes:
+
+* The <> 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 <>,
+<>, and <> 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
+<>. Also, `services.picom.blur*` were
+removed since upstream changed the blur settings to be more flexible.
+You can migrate the blur settings to use
+<> 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 <> option now defaults to the
+value of <> if <> 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`.
diff --git a/third_party/home-manager/docs/release-notes/rl-2305.adoc b/third_party/home-manager/docs/release-notes/rl-2305.adoc
new file mode 100644
index 0000000000..6d16e784a3
--- /dev/null
+++ b/third_party/home-manager/docs/release-notes/rl-2305.adoc
@@ -0,0 +1,23 @@
+[[sec-release-23.05]]
+== Release 23.05
+
+This is the current unstable branch and the information in this section is therefore not final.
+
+[[sec-release-23.05-highlights]]
+=== Highlights
+
+This release has the following notable changes:
+
+* No highlights.
+
+[[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 now default to `true` which
+is consistent with the default values for those options used by `i3` and `sway`.
diff --git a/third_party/home-manager/docs/usage.adoc b/third_party/home-manager/docs/usage.adoc
index 285835b296..adac7b7291 100644
--- a/third_party/home-manager/docs/usage.adoc
+++ b/third_party/home-manager/docs/usage.adoc
@@ -29,6 +29,7 @@ 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/nixpkgs/home.nix` file containing something like
@@ -51,7 +52,7 @@ A fresh install of Home Manager will generate a minimal `~/.config/nixpkgs/home.
# 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 = "22.05";
+ home.stateVersion = "22.11";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
@@ -91,7 +92,7 @@ To satisfy the above setup we should elaborate the `home.nix` file as follows:
# 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 = "22.05";
+ home.stateVersion = "22.11";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
@@ -128,6 +129,7 @@ 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
@@ -162,6 +164,7 @@ 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.
@@ -194,6 +197,7 @@ 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
@@ -224,3 +228,18 @@ in your system configuration and
----
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
+----
diff --git a/third_party/home-manager/docs/writing-modules.adoc b/third_party/home-manager/docs/writing-modules.adoc
index 0f3336ff2c..d8d69e828c 100644
--- a/third_party/home-manager/docs/writing-modules.adoc
+++ b/third_party/home-manager/docs/writing-modules.adoc
@@ -167,9 +167,11 @@ Builds a GVariant array containing the given list of elements, where each elemen
- `hm.gvariant.type.int64`
- `hm.gvariant.type.uint64`
- `hm.gvariant.type.double`
+- `hm.gvariant.type.variant`
- `hm.gvariant.type.arrayOf type`
- `hm.gvariant.type.maybeOf type`
- `hm.gvariant.type.tupleOf types`
+- `hm.gvariant.type.dictionaryEntryOf types`
--
+
where `type` and `types` are themselves a type and list of types, respectively.
@@ -185,3 +187,9 @@ Builds a GVariant maybe value containing the given GVariant element.
+
`hm.gvariant.mkTuple elements`:::
Builds a GVariant tuple containing the given list of elements, where each element is a GVariant value.
++
+`hm.gvariant.mkVariant element`:::
+Builds a GVariant variant which contains the value of a GVariant element.
++
+`hm.gvariant.mkDictionaryEntry elements`:::
+Builds a GVariant dictionary entry containing the given list of elements, where each element is a GVariant value.
diff --git a/third_party/home-manager/flake.lock b/third_party/home-manager/flake.lock
new file mode 100644
index 0000000000..a334b24bbf
--- /dev/null
+++ b/third_party/home-manager/flake.lock
@@ -0,0 +1,43 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1671983799,
+ "narHash": "sha256-Z2Ro6hFPZHkBqkVXY5/aBUzxi5xizQGvuHQ9+T5B/ks=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "fad51abd42ca17a60fc1d4cb9382e2d79ae31836",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs",
+ "utils": "utils"
+ }
+ },
+ "utils": {
+ "locked": {
+ "lastModified": 1667395993,
+ "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/third_party/home-manager/flake.nix b/third_party/home-manager/flake.nix
index 9382351e6d..512111702d 100644
--- a/third_party/home-manager/flake.nix
+++ b/third_party/home-manager/flake.nix
@@ -1,60 +1,104 @@
{
description = "Home Manager for Nix";
- outputs = { self, nixpkgs }:
- let
- # List of systems supported by home-manager binary
- supportedSystems = nixpkgs.lib.platforms.unix;
+ inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+ inputs.utils.url = "github:numtide/flake-utils";
- # Function to generate a set based on supported systems
- forAllSystems = f:
- nixpkgs.lib.genAttrs supportedSystems (system: f system);
+ outputs = { self, nixpkgs, utils, ... }:
+ {
+ nixosModules = rec {
+ home-manager = import ./nixos;
+ default = home-manager;
+ };
+ # deprecated in Nix 2.8
+ nixosModule = self.nixosModules.default;
- nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
- in rec {
- nixosModules.home-manager = import ./nixos;
- nixosModule = self.nixosModules.home-manager;
+ darwinModules = rec {
+ home-manager = import ./nix-darwin;
+ default = home-manager;
+ };
+ # unofficial; deprecated in Nix 2.8
+ darwinModule = self.darwinModules.default;
- darwinModules.home-manager = import ./nix-darwin;
- darwinModule = self.darwinModules.home-manager;
+ templates = {
+ standalone = {
+ path = ./templates/standalone;
+ description = "Standalone setup";
+ };
+ nixos = {
+ path = ./templates/nixos;
+ description = "Home Manager as a NixOS module,";
+ };
+ nix-darwin = {
+ path = ./templates/nix-darwin;
+ description = "Home Manager as a nix-darwin module,";
+ };
+ };
- packages = forAllSystems (system:
- let docs = import ./docs { pkgs = nixpkgsFor.${system}; };
- in {
- home-manager = nixpkgsFor.${system}.callPackage ./home-manager { };
+ defaultTemplate = self.templates.standalone;
+
+ lib = {
+ hm = (import ./modules/lib/stdlib-extended.nix nixpkgs.lib).hm;
+ homeManagerConfiguration = { modules ? [ ], pkgs, lib ? pkgs.lib
+ , extraSpecialArgs ? { }, check ? true
+ # Deprecated:
+ , configuration ? null, extraModules ? null, stateVersion ? null
+ , username ? null, homeDirectory ? null, system ? null }@args:
+ let
+ msgForRemovedArg = ''
+ The 'homeManagerConfiguration' arguments
+
+ - 'configuration',
+ - 'username',
+ - 'homeDirectory'
+ - 'stateVersion',
+ - 'extraModules', and
+ - 'system'
+
+ have been removed. Instead use the arguments 'pkgs' and
+ 'modules'. See the 22.11 release notes for more.
+ '';
+
+ throwForRemovedArgs = v:
+ let
+ used = builtins.filter (n: (args.${n} or null) != null) [
+ "configuration"
+ "username"
+ "homeDirectory"
+ "stateVersion"
+ "extraModules"
+ "system"
+ ];
+ msg = msgForRemovedArg + ''
+
+
+ Deprecated args passed: ''
+ + builtins.concatStringsSep " " used;
+ in lib.throwIf (used != [ ]) msg v;
+
+ in throwForRemovedArgs (import ./modules {
+ inherit pkgs lib check extraSpecialArgs;
+ configuration = { ... }: {
+ imports = modules;
+ nixpkgs = { inherit (pkgs) config overlays; };
+ };
+ });
+ };
+ } // utils.lib.eachDefaultSystem (system:
+ let
+ pkgs = nixpkgs.legacyPackages.${system};
+ docs = import ./docs { inherit pkgs; };
+ tests = import ./tests { inherit pkgs; };
+ in {
+ devShells.tests = tests.run;
+ packages = rec {
+ home-manager = pkgs.callPackage ./home-manager { };
docs-html = docs.manual.html;
docs-manpages = docs.manPages;
docs-json = docs.options.json;
- });
-
- defaultPackage =
- forAllSystems (system: self.packages.${system}.home-manager);
-
- apps = forAllSystems (system: {
- home-manager = {
- type = "app";
- program = "${defaultPackage.${system}}/bin/home-manager";
+ default = home-manager;
};
+ # deprecated in Nix 2.7
+ defaultPackage = self.packages.${system}.default;
});
-
- defaultApp = forAllSystems (system: apps.${system}.home-manager);
-
- lib = {
- hm = import ./modules/lib { lib = nixpkgs.lib; };
- homeManagerConfiguration = { configuration, system, homeDirectory
- , username, extraModules ? [ ], extraSpecialArgs ? { }
- , pkgs ? builtins.getAttr system nixpkgs.outputs.legacyPackages
- , check ? true, stateVersion ? "20.09" }@args:
- assert nixpkgs.lib.versionAtLeast stateVersion "20.09";
-
- import ./modules {
- inherit pkgs check extraSpecialArgs;
- configuration = { ... }: {
- imports = [ configuration ] ++ extraModules;
- home = { inherit homeDirectory stateVersion username; };
- nixpkgs = { inherit (pkgs) config overlays; };
- };
- };
- };
- };
}
diff --git a/third_party/home-manager/format b/third_party/home-manager/format
index 0fa620c1ac..68751a3f78 100755
--- a/third_party/home-manager/format
+++ b/third_party/home-manager/format
@@ -1,5 +1,5 @@
#! /usr/bin/env nix-shell
-#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/5edf5b60c3d8f82b5fc5e73e822b6f7460584945.tar.gz -i bash -p findutils nixfmt
+#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/6616de389ed55fba6eeba60377fc04732d5a207c.tar.gz -i bash -p findutils nixfmt
CHECK_ARG=
@@ -15,22 +15,14 @@ esac
# The excludes are for files touched by open pull requests and we want
# to avoid merge conflicts.
find . -name '*.nix' \
- ! -path ./home-manager/home-manager.nix \
! -path ./modules/default.nix \
! -path ./modules/files.nix \
! -path ./modules/home-environment.nix \
! -path ./modules/lib/default.nix \
! -path ./modules/lib/file-type.nix \
- ! -path ./modules/manual.nix \
! -path ./modules/misc/news.nix \
! -path ./modules/programs/bash.nix \
- ! -path ./modules/programs/gpg.nix \
! -path ./modules/programs/ssh.nix \
! -path ./modules/programs/zsh.nix \
- ! -path ./modules/services/gpg-agent.nix \
- ! -path ./modules/services/mpd.nix \
- ! -path ./nix-darwin/default.nix \
! -path ./tests/default.nix \
- ! -path ./tests/modules/home-environment/session-variables.nix \
- ! -path ./tests/modules/programs/gpg/override-defaults.nix \
-exec nixfmt $CHECK_ARG {} +
diff --git a/third_party/home-manager/home-manager/completion.bash b/third_party/home-manager/home-manager/completion.bash
index cf471d1293..c551229917 100644
--- a/third_party/home-manager/home-manager/completion.bash
+++ b/third_party/home-manager/home-manager/completion.bash
@@ -293,7 +293,10 @@ _home-manager_completions ()
Options=( "-f" "--file" "-b" "-A" "-I" "-h" "--help" "-n" "--dry-run" "-v" \
"--verbose" "--cores" "--debug" "--impure" "--keep-failed" \
"--keep-going" "-j" "--max-jobs" "--no-substitute" "--no-out-link" \
- "--show-trace" "--substitute" "--builders")
+ "-L" "--print-build-logs" \
+ "--show-trace" "--substitute" "--builders" "--version" \
+ "--update-input" "--override-input" "--experimental-features" \
+ "--extra-experimental-features" )
# ^ « home-manager »'s options.
diff --git a/third_party/home-manager/home-manager/completion.fish b/third_party/home-manager/home-manager/completion.fish
index ad38d276c6..58ce386e69 100644
--- a/third_party/home-manager/home-manager/completion.fish
+++ b/third_party/home-manager/home-manager/completion.fish
@@ -43,11 +43,12 @@ complete -c home-manager -n "__fish_use_subcommand" -x -a "expire-generations" -
complete -c home-manager -F -s f -l "file" -d "The home configuration file"
complete -c home-manager -x -s A -d "Select an expression in the configuration file"
complete -c home-manager -F -s I -d "Add a path to the Nix expression search path"
-complete -c home-manager -F -l "flake" -d "Use home-manager configuration at specified flake-uri"
+complete -c home-manager -F -l "flake" -d "Use Home Manager configuration at specified flake-uri"
complete -c home-manager -F -s b -d "Move existing files to new path rather than fail"
complete -c home-manager -f -s v -l "verbose" -d "Verbose output"
complete -c home-manager -f -s n -l "dry-run" -d "Do a dry run, only prints what actions would be taken"
complete -c home-manager -f -s h -l "help" -d "Print this help"
+complete -c home-manager -f -s h -l "version" -d "Print the Home Manager version"
complete -c home-manager -x -l "arg" -d "Override inputs passed to home-manager.nix"
complete -c home-manager -x -l "argstr" -d "Like --arg but the value is a string"
@@ -59,7 +60,12 @@ complete -c home-manager -f -l "keep-going" -d "Keep going in case of failed bui
complete -c home-manager -x -s j -l "max-jobs" -d "Max number of build jobs in parallel"
complete -c home-manager -x -l "option" -d "Set Nix configuration option"
complete -c home-manager -x -l "builders" -d "Remote builders"
+complete -c home-manager -f -s L -l "print-build-logs" -d "Print full build logs on standard error"
complete -c home-manager -f -l "show-trace" -d "Print stack trace of evaluation errors"
complete -c home-manager -f -l "substitute"
complete -c home-manager -f -l "no-substitute"
complete -c home-manager -f -l "no-out-link"
+complete -c home-manager -f -l "update-input"
+complete -c home-manager -f -l "override-input"
+complete -c home-manager -f -l "experimental-features"
+complete -c home-manager -f -l "extra-experimental-features"
diff --git a/third_party/home-manager/home-manager/completion.zsh b/third_party/home-manager/home-manager/completion.zsh
index d0f0e2591f..3babc1feef 100644
--- a/third_party/home-manager/home-manager/completion.zsh
+++ b/third_party/home-manager/home-manager/completion.zsh
@@ -11,6 +11,7 @@ _arguments \
'--impure[impure]' \
'--keep-failed[keep failed]' \
'--keep-going[keep going]' \
+ '--version[version]' \
'(-h --help)'{--help,-h}'[help]' \
'(-v --verbose)'{--verbose,-v}'[verbose]' \
'(-n --dry-run)'{--dry-run,-n}'[dry run]' \
@@ -18,7 +19,12 @@ _arguments \
'(-j --max-jobs)'{--max-jobs,-j}'[max jobs]:NUM:()' \
'--option[option]:NAME VALUE:()' \
'--builders[builders]:SPEC:()' \
+ '(-L --print-build-logs)'{--print-build-logs,-L}'[print build logs]' \
'--show-trace[show trace]' \
+ '--override-input[override flake input]:NAME VALUE:()' \
+ '--update-input[update flake input]:NAME:()' \
+ '--experimental-features[set experimental Nix features]:VALUE:()' \
+ '--extra-experimental-features:[append to experimental Nix features]:VALUE:()' \
'1: :->cmds' \
'*:: :->args' && ret=0
@@ -56,7 +62,11 @@ case "$state" in
'--option[option]:NAME VALUE:()' \
'--show-trace[show trace]' \
'--substitute[substitute]' \
- '--builders[builders]:SPEC:()'
+ '--builders[builders]:SPEC:()' \
+ '--override-input[override flake input]:NAME VALUE:()' \
+ '--update-input[update flake input]:NAME:()' \
+ '--experimental-features[set experimental Nix features]:VALUE:()' \
+ '--extra-experimental-features:[append to experimental Nix features]:VALUE:()'
;;
esac
esac
diff --git a/third_party/home-manager/home-manager/default.nix b/third_party/home-manager/home-manager/default.nix
index 47281bc643..3589acb82b 100644
--- a/third_party/home-manager/home-manager/default.nix
+++ b/third_party/home-manager/home-manager/default.nix
@@ -1,4 +1,5 @@
-{ runCommand, lib, bash, callPackage, coreutils, findutils, gnused, less
+{ runCommand, lib, bash, callPackage, coreutils, findutils, gettext, gnused
+, less, ncurses, unixtools
# used for pkgs.path for nixos-option
, pkgs
@@ -16,7 +17,9 @@ let
in runCommand "home-manager" {
preferLocalBuild = true;
+ nativeBuildInputs = [ gettext ];
meta = with lib; {
+ mainProgram = "home-manager";
description = "A user environment configurator";
maintainers = [ maintainers.rycee ];
platforms = platforms.unix;
@@ -27,12 +30,21 @@ in runCommand "home-manager" {
substituteInPlace $out/bin/home-manager \
--subst-var-by bash "${bash}" \
- --subst-var-by coreutils "${coreutils}" \
- --subst-var-by findutils "${findutils}" \
- --subst-var-by gnused "${gnused}" \
- --subst-var-by less "${less}" \
- --subst-var-by nixos-option "${nixos-option}" \
- --subst-var-by HOME_MANAGER_PATH '${pathStr}'
+ --subst-var-by DEP_PATH "${
+ lib.makeBinPath [
+ coreutils
+ findutils
+ gettext
+ gnused
+ less
+ ncurses
+ nixos-option
+ unixtools.hostname
+ ]
+ }" \
+ --subst-var-by HOME_MANAGER_LIB '${../lib/bash/home-manager.sh}' \
+ --subst-var-by HOME_MANAGER_PATH '${pathStr}' \
+ --subst-var-by OUT "$out"
install -D -m755 ${./completion.bash} \
$out/share/bash-completion/completions/home-manager
@@ -40,4 +52,14 @@ in runCommand "home-manager" {
$out/share/zsh/site-functions/_home-manager
install -D -m755 ${./completion.fish} \
$out/share/fish/vendor_completions.d/home-manager.fish
+
+ install -D -m755 ${../lib/bash/home-manager.sh} \
+ "$out/share/bash/home-manager.sh"
+
+ for path in ${./po}/*.po; do
+ lang="''${path##*/}"
+ lang="''${lang%%.*}"
+ mkdir -p "$out/share/locale/$lang/LC_MESSAGES"
+ msgfmt -o "$out/share/locale/$lang/LC_MESSAGES/home-manager.mo" "$path"
+ done
''
diff --git a/third_party/home-manager/home-manager/home-manager b/third_party/home-manager/home-manager/home-manager
index a5fe62013b..89f58c4d06 100644
--- a/third_party/home-manager/home-manager/home-manager
+++ b/third_party/home-manager/home-manager/home-manager
@@ -1,13 +1,31 @@
#!@bash@/bin/bash
# Prepare to use tools from Nixpkgs.
-PATH=@coreutils@/bin:@findutils@/bin:@gnused@/bin:@less@/bin:@nixos-option@/bin${PATH:+:}$PATH
+PATH=@DEP_PATH@${PATH:+:}$PATH
set -euo pipefail
-function errorEcho() {
- # shellcheck disable=2048,2086
- echo $* >&2
+export TEXTDOMAIN=home-manager
+export TEXTDOMAINDIR=@OUT@/share/locale
+
+# shellcheck disable=1091
+source @HOME_MANAGER_LIB@
+
+function removeByName() {
+ nix profile list \
+ | { grep "$1" || test $? = 1; } \
+ | cut -d ' ' -f 4 \
+ | xargs -t $DRY_RUN_CMD nix profile remove $VERBOSE_ARG
+}
+
+function setNixProfileCommands() {
+ if [[ -e ~/.nix-profile/manifest.json ]] ; then
+ LIST_OUTPATH_CMD="nix profile list"
+ REMOVE_CMD="removeByName"
+ else
+ LIST_OUTPATH_CMD="nix-env -q --out-path"
+ REMOVE_CMD="nix-env -q"
+ fi
}
function setVerboseAndDryRun() {
@@ -39,7 +57,8 @@ function setWorkDir() {
function setConfigFile() {
if [[ -v HOME_MANAGER_CONFIG ]] ; then
if [[ ! -e "$HOME_MANAGER_CONFIG" ]] ; then
- errorEcho "No configuration file found at $HOME_MANAGER_CONFIG"
+ _i "No configuration file found at %s" \
+ "$HOME_MANAGER_CONFIG" >&2
exit 1
fi
@@ -57,8 +76,8 @@ function setConfigFile() {
fi
done
- errorEcho "No configuration file found." \
- "Please create one at $defaultConfFile"
+ _i "No configuration file found. Please create one at %s" \
+ "$defaultConfFile" >&2
exit 1
}
@@ -68,7 +87,7 @@ function setHomeManagerNixPath() {
"${XDG_CONFIG_HOME:-$HOME/.config}/nixpkgs/home-manager" \
"$HOME/.nixpkgs/home-manager" ; do
if [[ -e "$path" || "$path" =~ ^https?:// ]] ; then
- export NIX_PATH="home-manager=$path${NIX_PATH:+:}$NIX_PATH"
+ EXTRA_NIX_PATH+=("home-manager=$path")
return
fi
done
@@ -87,10 +106,17 @@ function setFlakeAttribute() {
local name="${FLAKE_ARG#*#}"
;;
*)
- local name="$USER@$(hostname)"
- if [ "$(nix eval "$flake#homeConfigurations" --apply "x: x ? \"$name\"")" = "false" ]; then
- name="$USER"
- fi
+ local name="$USER"
+ # Check both long and short hostnames; long first to preserve
+ # pre-existing behaviour in case both happen to be defined.
+ for n in "$USER@$(hostname)" "$USER@$(hostname -s)"; do
+ if [[ "$(nix eval "$flake#homeConfigurations" --apply "x: x ? \"$n\"")" == "true" ]]; then
+ name="$n"
+ if [[ -v VERBOSE ]]; then
+ echo "Using flake homeConfiguration for $name"
+ fi
+ fi
+ done
;;
esac
export FLAKE_CONFIG_URI="$flake#homeConfigurations.\"$name\""
@@ -100,11 +126,10 @@ function setFlakeAttribute() {
function doInspectOption() {
setFlakeAttribute
if [[ -v FLAKE_CONFIG_URI ]]; then
- errorEcho "Can't inspect options of a flake configuration"
+ _iError "Can't inspect options of a flake configuration"
exit 1
fi
setConfigFile
- setHomeManagerNixPath
local extraArgs=("$@")
@@ -140,11 +165,10 @@ function doInspectOption() {
function doInstantiate() {
setFlakeAttribute
if [[ -v FLAKE_CONFIG_URI ]]; then
- errorEcho "Can't instantiate a flake configuration"
+ _i "Can't instantiate a flake configuration" >&2
exit 1
fi
setConfigFile
- setHomeManagerNixPath
local extraArgs=()
@@ -166,7 +190,6 @@ function doInstantiate() {
function doBuildAttr() {
setConfigFile
- setHomeManagerNixPath
local extraArgs=("$@")
@@ -212,20 +235,16 @@ function presentNews() {
elif [[ "$newsDisplay" == "silent" ]]; then
return
elif [[ "$newsDisplay" == "notify" ]]; then
- local msg
- if [[ $newsNumUnread -eq 1 ]]; then
- msg="There is an unread and relevant news item.\n"
- msg+="Read it by running the command '$(basename "$0") news'."
- else
- msg="There are $newsNumUnread unread and relevant news items.\n"
- msg+="Read them by running the command '$(basename "$0") news'."
- fi
+ local cmd msg
+ cmd="$(basename "$0")"
+ msg="$(_ip \
+ $'There is %d unread and relevant news item.\nRead it by running the command "%s news".' \
+ $'There are %d unread and relevant news items.\nRead them by running the command "%s news".' \
+ "$newsNumUnread" "$newsNumUnread" "$cmd")"
# Not actually an error but here stdout is reserved for
# nix-build output.
- errorEcho
- errorEcho -e "$msg"
- errorEcho
+ echo $'\n'"$msg"$'\n' >&2
if [[ -v DISPLAY ]] && type -P notify-send > /dev/null; then
notify-send "Home Manager" "$msg"
@@ -233,13 +252,14 @@ function presentNews() {
elif [[ "$newsDisplay" == "show" ]]; then
doShowNews --unread
else
- errorEcho "Unknown 'news.display' setting '$newsDisplay'."
+ _i 'Unknown "news.display" setting "%s".' "$newsDisplay" >&2
fi
}
function doEdit() {
if [[ ! -v EDITOR || -z $EDITOR ]]; then
- errorEcho "Please set the \$EDITOR environment variable"
+ # shellcheck disable=2016
+ _i 'Please set the $EDITOR environment variable' >&2
return 1
fi
@@ -254,7 +274,7 @@ function doEdit() {
function doBuild() {
if [[ ! -w . ]]; then
- errorEcho "Cannot run build in read-only directory";
+ _i 'Cannot run build in read-only directory' >&2
return 1
fi
@@ -266,6 +286,7 @@ function doBuild() {
"$FLAKE_CONFIG_URI.activationPackage" \
${DRY_RUN+--dry-run} \
${NO_OUT_LINK+--no-link} \
+ ${PRINT_BUILD_LOGS+--print-build-logs} \
|| return
else
doBuildAttr \
@@ -296,6 +317,7 @@ function doSwitch() {
doBuildFlake \
"$FLAKE_CONFIG_URI.activationPackage" \
--out-link "$generation" \
+ ${PRINT_BUILD_LOGS+--print-build-logs} \
&& "$generation/activate" || return
else
doBuildAttr \
@@ -336,11 +358,11 @@ function doRmGenerations() {
local linkName="home-manager-$generationId-link"
if [[ ! -e $linkName ]]; then
- errorEcho "No generation with ID $generationId"
+ _i 'No generation with ID %s' "$generationId" >&2
elif [[ $linkName == $(readlink home-manager) ]]; then
- errorEcho "Cannot remove the current generation $generationId"
+ _i 'Cannot remove the current generation %s' "$generationId" >&2
else
- echo Removing generation $generationId
+ _i 'Removing generation %s' "$generationId"
$DRY_RUN_CMD rm $VERBOSE_ARG $linkName
fi
done
@@ -366,17 +388,18 @@ function doExpireGenerations() {
# shellcheck disable=2086
doRmGenerations $generations
elif [[ -v VERBOSE ]]; then
- echo "No generations to expire"
+ _i "No generations to expire"
fi
}
function doListPackages() {
+ setNixProfileCommands
local outPath
- outPath="$(nix-env -q --out-path | grep -o '/.*home-manager-path$')"
+ outPath="$($LIST_OUTPATH_CMD | grep -o '/.*home-manager-path$')"
if [[ -n "$outPath" ]] ; then
nix-store -q --references "$outPath" | sed 's/[^-]*-//'
else
- errorEcho "No home-manager packages seem to be installed."
+ _i 'No home-manager packages seem to be installed.' >&2
fi
}
@@ -433,7 +456,7 @@ function doShowNews() {
${PAGER:-less} "$newsFileUnread"
;;
*)
- errorEcho "Unknown argument $1"
+ _i 'Unknown argument %s' "$1"
return 1
esac
@@ -447,24 +470,28 @@ function doShowNews() {
function doUninstall() {
setVerboseAndDryRun
+ setNixProfileCommands
- echo "This will remove Home Manager from your system."
+ _i 'This will remove Home Manager from your system.'
if [[ -v DRY_RUN ]]; then
- echo "This is a dry run, nothing will actually be uninstalled."
+ _i 'This is a dry run, nothing will actually be uninstalled.'
fi
local confirmation
- read -r -n 1 -p "Really uninstall Home Manager? [y/n] " confirmation
+ read -r -n 1 -p "$(_i 'Really uninstall Home Manager?') [y/n] " confirmation
echo
case $confirmation in
y|Y)
- echo "Switching to empty Home Manager configuration..."
+ _i "Switching to empty Home Manager configuration..."
HOME_MANAGER_CONFIG="$(mktemp --tmpdir home-manager.XXXXXXXXXX)"
- echo "{ lib, ... }: { home.file = lib.mkForce {}; }" > "$HOME_MANAGER_CONFIG"
+ echo "{ lib, ... }: {" > "$HOME_MANAGER_CONFIG"
+ echo " home.file = lib.mkForce {};" >> "$HOME_MANAGER_CONFIG"
+ echo " home.stateVersion = \"18.09\";" >> "$HOME_MANAGER_CONFIG"
+ echo "}" >> "$HOME_MANAGER_CONFIG"
doSwitch
- $DRY_RUN_CMD nix-env -e home-manager-path || true
+ $DRY_RUN_CMD $REMOVE_CMD home-manager-path || true
rm "$HOME_MANAGER_CONFIG"
$DRY_RUN_CMD rm $VERBOSE_ARG -r \
"${XDG_DATA_HOME:-$HOME/.local/share}/home-manager"
@@ -472,28 +499,28 @@ function doUninstall() {
"$NIX_STATE_DIR/gcroots/per-user/$USER/current-home"
;;
*)
- echo "Yay!"
+ _i "Yay!"
exit 0
;;
esac
local deleteProfiles
read -r -n 1 \
- -p 'Remove all Home Manager generations? [y/n] ' \
+ -p "$(_i 'Remove all Home Manager generations?') [y/n] " \
deleteProfiles
echo
case $deleteProfiles in
y|Y)
doRmAllGenerations
- echo "All generations are now eligible for garbage collection."
+ _i 'All generations are now eligible for garbage collection.'
;;
*)
- echo "Leaving generations but they may still be garbage collected."
+ _i 'Leaving generations but they may still be garbage collected.'
;;
esac
- echo "Home Manager is uninstalled but your home.nix is left untouched."
+ _i "Home Manager is uninstalled but your home.nix is left untouched."
}
function doHelp() {
@@ -506,11 +533,12 @@ function doHelp() {
echo " -A ATTRIBUTE Optional attribute that selects a configuration"
echo " expression in the configuration file."
echo " -I PATH Add a path to the Nix expression search path."
- echo " --flake flake-uri Use home-manager configuration at flake-uri"
+ echo " --flake flake-uri Use Home Manager configuration at flake-uri"
echo " -b EXT Move existing files to new path rather than fail."
echo " -v Verbose output"
echo " -n Do a dry run, only prints what actions would be taken"
echo " -h Print this help"
+ echo " --version Print the Home Manager version"
echo
echo "Options passed on to nix-build(1)"
echo
@@ -522,6 +550,7 @@ function doHelp() {
echo " --keep-going"
echo " -j, --max-jobs NUM"
echo " --option NAME VALUE"
+ echo " -L, --print-build-logs"
echo " --show-trace"
echo " --(no-)substitute"
echo " --no-out-link Do not create a symlink to the output path"
@@ -570,6 +599,8 @@ COMMAND=""
COMMAND_ARGS=()
FLAKE_ARG=""
+setHomeManagerNixPath
+
while [[ $# -gt 0 ]]; do
opt="$1"
shift
@@ -608,9 +639,20 @@ while [[ $# -gt 0 ]]; do
PASSTHROUGH_OPTS+=("$opt" "$1" "$2")
shift 2
;;
+ --experimental-features)
+ PASSTHROUGH_OPTS+=("$opt" "$1")
+ shift
+ ;;
+ --extra-experimental-features)
+ PASSTHROUGH_OPTS+=("$opt" "$1")
+ shift
+ ;;
--no-out-link)
NO_OUT_LINK=1
;;
+ -L|--print-build-logs)
+ PRINT_BUILD_LOGS=1
+ ;;
-h|--help)
doHelp
exit 0
@@ -634,7 +676,7 @@ while [[ $# -gt 0 ]]; do
export VERBOSE=1
;;
--version)
- echo 22.05
+ echo 22.11
exit 0
;;
*)
@@ -643,8 +685,8 @@ while [[ $# -gt 0 ]]; do
COMMAND_ARGS+=("$opt")
;;
*)
- errorEcho "$0: unknown option '$opt'"
- errorEcho "Run '$0 --help' for usage help"
+ _iError "%s: unknown option '%s'" "$0" "$opt" >&2
+ _i "Run '%s --help' for usage help" "$0" >&2
exit 1
;;
esac
@@ -678,7 +720,7 @@ case $COMMAND in
;;
expire-generations)
if [[ ${#COMMAND_ARGS[@]} != 1 ]]; then
- errorEcho "expire-generations expects one argument, got ${#COMMAND_ARGS[@]}."
+ _i 'expire-generations expects one argument, got %d.' "${#COMMAND_ARGS[@]}" >&2
exit 1
else
doExpireGenerations "${COMMAND_ARGS[@]}"
@@ -700,7 +742,7 @@ case $COMMAND in
doHelp
;;
*)
- errorEcho "Unknown command: $COMMAND"
+ _iError 'Unknown command: %s' "$COMMAND" >&2
doHelp >&2
exit 1
;;
diff --git a/third_party/home-manager/home-manager/home-manager.nix b/third_party/home-manager/home-manager/home-manager.nix
index a113d1d820..6f2f4b6675 100644
--- a/third_party/home-manager/home-manager/home-manager.nix
+++ b/third_party/home-manager/home-manager/home-manager.nix
@@ -1,9 +1,5 @@
-{ pkgs ? import {}
-, confPath
-, confAttr ? null
-, check ? true
-, newsReadIdsFile ? null
-}:
+{ pkgs ? import { }, confPath, confAttr ? null, check ? true
+, newsReadIdsFile ? null }:
let
inherit (pkgs.lib)
@@ -11,68 +7,58 @@ let
replaceStrings splitString;
env = import ../modules {
- configuration =
- if confAttr == "" || confAttr == null
- then confPath
- else (import confPath).${confAttr};
+ configuration = if confAttr == "" || confAttr == null then
+ confPath
+ else
+ (import confPath).${confAttr};
pkgs = pkgs;
check = check;
};
- newsReadIds =
- if newsReadIdsFile == null
- then {}
- else
- let
- ids = splitString "\n" (fileContents newsReadIdsFile);
- in
- builtins.listToAttrs (map (id: { name = id; value = null; }) ids);
+ newsReadIds = if newsReadIdsFile == null then
+ { }
+ else
+ let ids = splitString "\n" (fileContents newsReadIdsFile);
+ in builtins.listToAttrs (map (id: {
+ name = id;
+ value = null;
+ }) ids);
newsIsRead = entry: builtins.hasAttr entry.id newsReadIds;
- newsFiltered =
- let
- pred = entry: entry.condition && ! newsIsRead entry;
- in
- filter pred env.newsEntries;
+ newsFiltered = let pred = entry: entry.condition && !newsIsRead entry;
+ in filter pred env.newsEntries;
newsNumUnread = length newsFiltered;
- newsFileUnread = pkgs.writeText "news-unread.txt" (
- concatMapStringsSep "\n\n" (entry:
+ newsFileUnread = pkgs.writeText "news-unread.txt" (concatMapStringsSep "\n\n"
+ (entry:
let
- time = replaceStrings ["T"] [" "] (removeSuffix "+00:00" entry.time);
- in
- ''
- * ${time}
+ time =
+ replaceStrings [ "T" ] [ " " ] (removeSuffix "+00:00" entry.time);
+ in ''
+ * ${time}
- ${replaceStrings ["\n"] ["\n "] entry.message}
- ''
- ) newsFiltered
- );
+ ${replaceStrings [ "\n" ] [ "\n " ] entry.message}
+ '') newsFiltered);
- newsFileAll = pkgs.writeText "news-all.txt" (
- concatMapStringsSep "\n\n" (entry:
+ newsFileAll = pkgs.writeText "news-all.txt" (concatMapStringsSep "\n\n"
+ (entry:
let
flag = if newsIsRead entry then "read" else "unread";
- time = replaceStrings ["T"] [" "] (removeSuffix "+00:00" entry.time);
- in
- ''
- * ${time} [${flag}]
+ time =
+ replaceStrings [ "T" ] [ " " ] (removeSuffix "+00:00" entry.time);
+ in ''
+ * ${time} [${flag}]
- ${replaceStrings ["\n"] ["\n "] entry.message}
- ''
- ) env.newsEntries
- );
+ ${replaceStrings [ "\n" ] [ "\n " ] entry.message}
+ '') env.newsEntries);
# File where each line corresponds to an unread news entry
# identifier. If non-empty then the file ends in "\n".
- newsUnreadIdsFile = pkgs.writeText "news-unread-ids" (
- let
- text = concatMapStringsSep "\n" (entry: entry.id) newsFiltered;
- in
- text + optionalString (text != "") "\n"
- );
+ newsUnreadIdsFile = pkgs.writeText "news-unread-ids"
+ (let text = concatMapStringsSep "\n" (entry: entry.id) newsFiltered;
+ in text + optionalString (text != "") "\n");
newsInfo = pkgs.writeText "news-info.sh" ''
local newsNumUnread=${toString newsNumUnread}
@@ -82,8 +68,7 @@ let
local newsUnreadIdsFile="${newsUnreadIdsFile}"
'';
-in
- {
- inherit (env) activationPackage;
- inherit newsInfo;
- }
+in {
+ inherit (env) activationPackage;
+ inherit newsInfo;
+}
diff --git a/third_party/home-manager/home-manager/install.nix b/third_party/home-manager/home-manager/install.nix
index cf45f14dcc..f4bcbb3f6e 100644
--- a/third_party/home-manager/home-manager/install.nix
+++ b/third_party/home-manager/home-manager/install.nix
@@ -1,15 +1,25 @@
-{ home-manager, runCommand }:
+{ home-manager, gettext, runCommand, ncurses }:
-runCommand "home-manager-install" {
- propagatedBuildInputs = [ home-manager ];
+let
+
+ hmBashLibInit = ''
+ export TEXTDOMAIN=home-manager
+ export TEXTDOMAINDIR=${home-manager}/share/locale
+ source ${home-manager}/share/bash/home-manager.sh
+ '';
+
+in runCommand "home-manager-install" {
+ propagatedBuildInputs = [ home-manager gettext ncurses ];
preferLocalBuild = true;
shellHookOnly = true;
shellHook = ''
+ ${hmBashLibInit}
+
confFile="''${XDG_CONFIG_HOME:-$HOME/.config}/nixpkgs/home.nix"
if [[ ! -e $confFile ]]; then
echo
- echo "Creating initial Home Manager configuration..."
+ _i "Creating initial Home Manager configuration..."
nl=$'\n'
xdgVars=""
@@ -44,7 +54,7 @@ runCommand "home-manager-install" {
# 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 = "22.05";
+ home.stateVersion = "22.11";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
@@ -53,34 +63,23 @@ runCommand "home-manager-install" {
fi
echo
- echo "Creating initial Home Manager generation..."
+ _i "Creating initial Home Manager generation..."
echo
- if home-manager switch; then
- cat <, 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-06-09 11:16+0000\n"
+"Last-Translator: Leix b \n"
+"Language-Team: Catalan \n"
+"Language: ca\n"
+"MIME-Version: 1.0\n"
+"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.13-dev\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "No s'ha trobat cap fitxer de configuració a %s"
+
+#: home-manager/home-manager:79
+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:122
+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:162
+msgid "Can't instantiate a flake configuration"
+msgstr "No es pot instanciar una configuració flake"
+
+#: home-manager/home-manager:237
+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] ""
+"Hi ha %d notícia rellevant no llegida.\n"
+"Llegeix-la executant la comanda \"%s news\"."
+msgstr[1] ""
+"Hi han %d notícies rellevants no llegides.\n"
+"Llegeix-les executant la comanda \"%s news\"."
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Configuració \"news.display\" no reconeguda \"%s\"."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Si us plau, defineix la variable d'entorn $EDITOR"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "Impossible executar la compilació en un directori només lectura"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "No existeix la generació amb ID %s"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "Impossible eliminar la generació actual %s"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "Eliminant la generació %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "No s'han trobat generacions a expirar"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "Cap paquet home-manager sembla estar instal·lat."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "Argument desconegut %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "Home Manager serà esborrat del sistema."
+
+#: home-manager/home-manager:472
+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:476
+msgid "Really uninstall Home Manager?"
+msgstr "Estàs segur que vols desinstal·lar Home Manager?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Canviant a configuració buida de Home Manager..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Visca!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Eliminar totes les generacions de Home Manager?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr ""
+"Totes les generacions són ara candidates per a la recol·lecció de brossa."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr ""
+"Deixant generacions, però aquestes encara poden ser esborrades pel recol·"
+"lector de brossa."
+
+#: home-manager/home-manager:514
+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:673
+msgid "%s: unknown option '%s'"
+msgstr "%: opció desconeguda '%s'"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Executa '%s --help' per veure l'ajuda d'ús"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations espera un argument, obtinguts %d."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Comanda desconeguda: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "Creant configuració inicial de Home Manager..."
+
+#: home-manager/install.nix:66
+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/install.nix:71
+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 ""
+"Tot fet! L'eina home-manager hauria de estar instal·lada i pots editar\n"
+"\n"
+" %s\n"
+"\n"
+"per a configurar Home Manager. Executa 'man home-configuration.nix' per\n"
+"a veure totes les opcions disponibles."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"Uh oh, la instal·lació ha fallat! Si us plau, notifica-ho a\n"
+"\n"
+" %s\n"
+"\n"
+"si l'error sembla culpa de Home Manager."
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
+"Aquesta derivació no es pot construir, si us plau executa-la utilitzant nix-"
+"shell."
diff --git a/third_party/home-manager/home-manager/po/da.po b/third_party/home-manager/home-manager/po/da.po
new file mode 100644
index 0000000000..aeda9100f0
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/da.po
@@ -0,0 +1,187 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-09-19 18:22+0000\n"
+"Last-Translator: cafkafk \n"
+"Language-Team: Danish \n"
+"Language: da\n"
+"MIME-Version: 1.0\n"
+"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"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "Ingen konfigurationsfiler fundet ved %s"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "Ingen konfigurationsfiler fundet. Venligst lav en ved %s"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "Kan ikke inspicere indstillinger af en flake konfiguration"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "Kan ikke instantiere en flake konfiguration"
+
+#: home-manager/home-manager:237
+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] ""
+"Der er %d ulæst og relavante nyheder.\n"
+"Læs den ved at køre \"%s news\"."
+msgstr[1] ""
+"Der er %d ulæste og relavante nyheder.\n"
+"Læs dem ved at køre \"%s news\"."
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Ubekændt \"news.display\" indstilling \"%s\"."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Venligst sæt $EDITOR miljøvariablen"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "Kan ikke bygge i en læs-kun folder"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "Ingen generation med ID %s"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "Kan ikke fjerne den nuværende generation %s"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "Fjern generation %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "Ingen generationer som skal udløbes"
+
+#: home-manager/home-manager:396
+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:453
+msgid "Unknown argument %s"
+msgstr "Ubekendt argument %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "Dette vil fjerne Home Manager fra dit system."
+
+#: home-manager/home-manager:472
+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:476
+msgid "Really uninstall Home Manager?"
+msgstr "Virkelig uinstaller Home Manager?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Skifter til tom Home Manager konfiguration..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Juhuu!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Fjern alle Home Manager generationer?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "Alle generationer kan nu blive tjekket for overflødige filer."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr ""
+"Forlad generationer, men de kan stadig bliver fjernet som overflødige filer."
+
+#: home-manager/home-manager:514
+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:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: ukendt indstilling '%s'"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Kør '%s --help' for brugsvejledning"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations forventer et argument, fik %d."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Ubekendt kommando: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "Laver initial Home Manager konfiguration..."
+
+#: home-manager/install.nix:66
+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/install.nix:71
+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 ""
+"Alt er færdigt! Home-manager værktøjet burde nu være installeret, og du kan "
+"ændre\n"
+"\n"
+" %s\n"
+" \n"
+"For at konfigurere Home Manager. Kør 'man home-configuration.nix' for at \n"
+"se alle de mulige indstillinger."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"Åh nej, installationen fejlede! Venligst opret en fejlrapport ved\n"
+"\n"
+" %s\n"
+" \n"
+"hvis fejlen fremstår som forskyldt af Home Manager."
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr "Denne derivation er ikke bygbar, venligst kør den gennem nix-shell."
diff --git a/third_party/home-manager/home-manager/po/de.po b/third_party/home-manager/home-manager/po/de.po
new file mode 100644
index 0000000000..79e1820ab7
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/de.po
@@ -0,0 +1,188 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-07-12 19:40+0000\n"
+"Last-Translator: Frederik Engels \n"
+"Language-Team: German \n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"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-dev\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "Keine Konfigurationsdatei unter %s gefunden"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "Keine Konfigurationsdatei gefunden. Bitte erstellen Sie eine unter %s"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "Die Optionen einer Flake-Konfiguration können nicht inspiziert werden"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "Kann eine Flake-Konfiguration nicht instanziieren"
+
+#: home-manager/home-manager:237
+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] ""
+"Es gibt eine ungelesene und relevante Nachricht.\n"
+"Lesen Sie sie, indem Sie den Befehl \"%s news\" ausführen."
+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:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Unbekannte \"news.display\" Einstellung \"%s\"."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Bitte legen Sie die $EDITOR Variable fest"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "Build kann nicht im schreibgeschützten Ordner ausgeführt werden"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "Keine Generation mit ID %s"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "Die jetzige Generation %s kann nicht entfernt werden"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "Entferne Generation %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "Keine ablaufenden Generationen"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "Es scheint, als ob keine Home Manager Pakete installiert sind."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "Unbekannte Argumente %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "Dies wird Home Manager von Ihrem System entfernen."
+
+#: home-manager/home-manager:472
+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:476
+msgid "Really uninstall Home Manager?"
+msgstr "Möchten Sie wirklich Home Manager deinstallieren?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Wechsle zu einer leeren Home Manager Konfiguration..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Juhu!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Entferne alle Home Manager Generationen?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "Alle Generationen kommen nun für die Garbage Collection in Frage."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr ""
+"Ignoriere Generationen, aber diese könnten immer noch mittels des Garbage "
+"Collectors aufgeräumt werden."
+
+#: home-manager/home-manager:514
+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:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: unbekannte Option '%s'"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Führe '%s --help' aus, um Hilfe zur Verwendung zu erhalten"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations erwartet ein Argument, hat aber %d erhalten."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Unbekannter Befehl: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "Erstelle initiale Home Manager Konfiguration..."
+
+#: home-manager/install.nix:66
+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/install.nix:71
+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 ""
+"Alles fertig! Das Home Manager Tool sollte nun installiert sein. Sie können\n"
+"\n"
+" %s\n"
+"\n"
+"bearbeiten um Home Manager zu konfigurieren. Führen Sie\n"
+"'man home-configuration.nix' aus, um alle verfügbaren Optionen zu\n"
+"sehen."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"Ups, die Installation schlug fehl. Bitte erstellen Sie ein Issue unter\n"
+"\n"
+" %s\n"
+"\n"
+"falls der Fehler auf Home Manager zurückzuführen ist."
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
+"Diese Derivation ist nicht kompilierbar. Bitte führen Sie nix-shell aus."
diff --git a/third_party/home-manager/home-manager/po/es.po b/third_party/home-manager/home-manager/po/es.po
new file mode 100644
index 0000000000..95f2fea382
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/es.po
@@ -0,0 +1,185 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-01-11 21:45+0000\n"
+"Last-Translator: Robert Helgesson \n"
+"Language-Team: Spanish \n"
+"Language: es\n"
+"MIME-Version: 1.0\n"
+"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.10.1\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "Archivo de configuración no encontrado en %s"
+
+#: home-manager/home-manager:79
+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:122
+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:162
+msgid "Can't instantiate a flake configuration"
+msgstr "No se pudo instanciar una configuración flake"
+
+#: home-manager/home-manager:237
+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] ""
+"Hay %d noticia relevante no leída.\n"
+"Léala ejecutando el comando \"%s news\"."
+msgstr[1] ""
+"Hay %d noticias relevantes no leídas.\n"
+"Léalas ejecutando el comando \"%s news\"."
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Configuración \"news.display\" no reconocida \"%s\"."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Defina la variable de ambiente $EDITOR"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "No se puede ejecutar en un directorio de sólo lectura"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "No existe la generación con ID %s"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "No se pudo borrar la generación actual %s"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "Borrando generación %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "No se encontraron generaciones para expirar"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "No se encontró ningún paquete home-manager instalado."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "Argumento desconocido %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "Home Manager será borrado del sistema."
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "Este es un simulacro, nada será realmente desinstalado."
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "Desinstalar Home Manager?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Cambiando a configuración vacía de Home Manager..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Bien!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Borrar todas las generaciones de Home Manager?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "Ahora todas las generaciones son aptas para recolección de basura."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr ""
+"Dejando generaciones aunque podrían aún ser borradas por el recolector de "
+"basura."
+
+#: home-manager/home-manager:514
+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:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: opción desconocida '%s'"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Ejecute '%s --help' para ver ayuda"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations espera un argumento pero se dieron %d."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Comando desconocido %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "Creando configuración inicial de Home Manager..."
+
+#: home-manager/install.nix:66
+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/install.nix:71
+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 ""
+"Listo! home-manager ha sido instalado y ahora puede editar\n"
+"\n"
+" %s\n"
+"\n"
+"para configurar Home Manager. Ejecute 'man home-configuration.nix' para\n"
+"ver todas las opciones disponibles."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"La instalación ha fallado. Por favor notifíquelo en\n"
+"\n"
+" %s\n"
+"\n"
+"si el error parecer ser culpa de Home Manager."
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr "Esta derivación no se puede construir, ejecute con nix-shell."
diff --git a/third_party/home-manager/home-manager/po/fa.po b/third_party/home-manager/home-manager/po/fa.po
new file mode 100644
index 0000000000..d7791d649a
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/fa.po
@@ -0,0 +1,169 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-04-09 18:11+0000\n"
+"Last-Translator: Artin Mobasher \n"
+"Language-Team: Persian \n"
+"Language: fa\n"
+"MIME-Version: 1.0\n"
+"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.12-dev\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "هیچ فایل تنظیماتی در %s پیدا نشد"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "هیچ فایل تنظیماتی پیدا نشد. لطفا یک فایل در %s بسازید"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr ""
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr ""
+
+#: home-manager/home-manager:237
+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] ""
+msgstr[1] ""
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr ""
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr ""
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr ""
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr ""
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr ""
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr ""
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr ""
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr ""
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr ""
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr ""
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr ""
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr ""
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr ""
+
+#: home-manager/home-manager:493
+#, fuzzy
+msgid "Yay!"
+msgstr "آره!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr ""
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr ""
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr ""
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr ""
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr ""
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr ""
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr ""
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "دستور ناشناخته: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "ایجاد تنظیمات اولیه Home-Manager..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr ""
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
diff --git a/third_party/home-manager/home-manager/po/fi.po b/third_party/home-manager/home-manager/po/fi.po
new file mode 100644
index 0000000000..be0ae0a6f5
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/fi.po
@@ -0,0 +1,166 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: none\n"
+"Language: fi\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr ""
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr ""
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr ""
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr ""
+
+#: home-manager/home-manager:237
+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] ""
+msgstr[1] ""
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr ""
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr ""
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr ""
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr ""
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr ""
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr ""
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr ""
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr ""
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr ""
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr ""
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr ""
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr ""
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr ""
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr ""
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr ""
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr ""
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr ""
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr ""
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr ""
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr ""
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr ""
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr ""
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr ""
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr ""
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
diff --git a/third_party/home-manager/home-manager/po/fr.po b/third_party/home-manager/home-manager/po/fr.po
new file mode 100644
index 0000000000..5a129e9d24
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/fr.po
@@ -0,0 +1,191 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2021-12-19 16:51+0000\n"
+"Last-Translator: TheBlackBeans \n"
+"Language-Team: French \n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"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.10\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "Aucun fichier de configuration trouvé à l'emplacement %s"
+
+#: home-manager/home-manager:79
+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:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "Impossible d'inspecter les options d'une configuration en flocons"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "Impossible d'instancier une configuration flake"
+
+#: home-manager/home-manager:237
+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] ""
+"Il y a %d nouvel élément non lu et pertinent.\n"
+"Vous pouvez le lire en exécutant la commande \"%s news\"."
+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:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Configuration \"news.display\" iconnue \"%s\"."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Veuillez définir la variable d'environnement $EDITOR"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "Impossible de lancer une compilation dans un dossier en écriture seule"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "Aucune génération avec l'identifiant %s"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "Impossible de supprimer la génération courante %s"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "Suppression de la génération %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "Aucune génération expirée"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "Aucun paquet home-manager ne semble être installé."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "Aucun argument %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "Cela va supprimer Home Manager de votre système."
+
+#: home-manager/home-manager:472
+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:476
+msgid "Really uninstall Home Manager?"
+msgstr "Voulez-vous vraiment désinstaller Home Manager ?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Changement vers une configuration vierge de Home Manager..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Yay !"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Supprimer toutes les générations de Home Manager ?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr ""
+"Toutes les générations sont maintenant éligibles pour la collecte des "
+"ordures."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr ""
+"Les générations sortantes mais elles peuvent encore être collectées par les "
+"ordures."
+
+#: home-manager/home-manager:514
+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:673
+msgid "%s: unknown option '%s'"
+msgstr "%s : option inconnue « %s »"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Exécuter « %s --help » pour de l'aide sur l'utilisation"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations attend un argument, a obtenu %d."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Commande inconnue : %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "Création de la configuration initiale de Home Manager..."
+
+#: home-manager/install.nix:66
+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/install.nix:71
+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 ""
+"Tout est fait! Home Manager devrait désormais être installé et vous pouvez "
+"éditer\n"
+"\n"
+" %s\n"
+"\n"
+"pour configurer Home Manager. Pour avoir une liste des options disponibles,\n"
+"essayez 'man home-configuration.nix'."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"Uh oh, l'installation n'a pas réussi! Veuillez signaler cette erreur à "
+"l'adresse suivante\n"
+"\n"
+" %s\n"
+"\n"
+"si l'erreur semble être liée à Home Manager."
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr "Cette dérivation ne peut être construite, essayez avec nix-shell."
diff --git a/third_party/home-manager/home-manager/po/home-manager.pot b/third_party/home-manager/home-manager/po/home-manager.pot
new file mode 100644
index 0000000000..003a344b0e
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/home-manager.pot
@@ -0,0 +1,167 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr ""
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr ""
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr ""
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr ""
+
+#: home-manager/home-manager:237
+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] ""
+msgstr[1] ""
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr ""
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr ""
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr ""
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr ""
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr ""
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr ""
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr ""
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr ""
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr ""
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr ""
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr ""
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr ""
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr ""
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr ""
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr ""
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr ""
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr ""
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr ""
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr ""
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr ""
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr ""
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr ""
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr ""
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr ""
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
diff --git a/third_party/home-manager/home-manager/po/it.po b/third_party/home-manager/home-manager/po/it.po
new file mode 100644
index 0000000000..610762624c
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/it.po
@@ -0,0 +1,185 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-04-20 18:18+0000\n"
+"Last-Translator: Frankie McEyes \n"
+"Language-Team: Italian \n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"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.12-dev\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "Nessun file di configurazione trovato in %s"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "Nessun file di configurazione trovato. Per favore crearne uno in %s"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "Impossibile ispezionare le opzioni di configurazione flake"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "Impossibile istanziare una configurazione flake"
+
+#: home-manager/home-manager:237
+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] ""
+"C'è %d novità di elementi non letta.\n"
+"Leggila con il comando \"%s news\"."
+msgstr[1] ""
+"Ci sono %d novità di elementi non letti\n"
+"Leggile con il comando \"%s news\"."
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Opzione \"news.display\" sconosciuta \"%s\"."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Per favore impostare la variabile d'ambient $EDITOR"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "Impossibile eseguire la build in una cartella in sola lettura"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "Nessuna generazione con ID %s"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "Impossibile rimuovere la generazione corrente %s"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "Rimuovo la generazione %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "Nessuna generazione in scadenza"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "Nessun pacchetto home-manager sembra essere installato."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "Argomento sconosciuto: %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "Questo rimuoverà Home Manger dal tuo sistema."
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "Questo è un avvio a secco, nulla verrà realmente disinstallato."
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "Vuoi davvero disinstallare Home Manager?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Cambio ad una configurazione Home Manager vuota..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Urrà!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Rimuovere tutte le generazioni Home Manager?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "Tutte le generazioni sono ora pronte per essere cestinate."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr "Abbandono le generazioni, ma possono essere ancora cestinate."
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr "Home Manager è disinstallato ma la tua home.Nix non è stata toccata."
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: opzione sconosciuta '%s'"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Esegui '%s --help' per ottenere aiuto"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations si aspetta un solo argomento, invece di %d."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Comando sconosciuto: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "Creando la configurazione iniziale di Home Manager..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr "Creando la generazione iniziale di Home Manager..."
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+"Tutto fatto! Home-manager dovrebbe essere installato e puoi modificare\n"
+"\n"
+"%s\n"
+"\n"
+"per configurare Home Manager. Esegui 'man home-configurazion.nix' per\n"
+"consultare tutte le opzioni disponibili."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"Oh no, l'installazione non è andata a buon fine! Per favore aprire un ticket "
+"issue a\n"
+"\n"
+"%s\n"
+"\n"
+"se l'errore sembra essere causato da Home Manager."
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
+"Questa derivazione non è compilabile, prova ad eseguila usando nix-shell."
diff --git a/third_party/home-manager/home-manager/po/ja.po b/third_party/home-manager/home-manager/po/ja.po
new file mode 100644
index 0000000000..869b629492
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/ja.po
@@ -0,0 +1,187 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-07-02 02:18+0000\n"
+"Last-Translator: OKA, NETSURFER AND OBSERVER, FRONTEND, DEVELOPER "
+"(DOTFILES,OSINT,OSS), KEYBASE: (3B0E8E0895DAC8B8) \n"
+"Language-Team: Japanese \n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.13.1-dev\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "%s に設定ファイルが見つかりません"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "設定ファイルがありません。ファイルを %s に作ってください"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "flake設定のオプションを検査できません"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "flake設定をインスタンス化できません"
+
+#: home-manager/home-manager:237
+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件あります。\n"
+"\"%s news\"コマンドで確認できます。"
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "知らない\"news.display\"設定\"%s\"."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "$EDITOR環境変数を設定してください"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "読み込み専用ディレクトリ内ではbuild(作成)できません"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "ID %s を持つ世代はありません"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "現在使用中の世代 %s は削除できません"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "世代 %s を削除中です"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "期限切れで削除する世代はありません"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "home-managerパッケージはインストールされていないようです。"
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "不明な引数 %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "これはシステムからHome Managerを削除します。"
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "これはdry run (予行練習)で、実際にはアンインストールは行われません。"
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "本当にHome Managerをアンインストールしますか?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "空のHome Managerの設定に切り替え中です..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "イェイ!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Home-managerの全ての世代を削除しますか?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "全ての世代がガベージコレクションの対象になりました。"
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr ""
+"世代を残していますが、それらはガベージコレクションで回収されるかもしれませ"
+"ん。"
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr ""
+"Home Managerはアンインストールされましたが、home.nixはそのまま残してありま"
+"す。"
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: 不明なオプション '%s'"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "利用方法のヘルプは'%s --help' を実行してください"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations は一つの引数を期待しますが、%d が与えられました。"
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "不明なコマンド: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "Home Managerの初期設定を生成しています..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr "Home Managerの最初の世代を生成しています..."
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+"全て実行しました! 現在Home-managerツールはインストールされているはずで、\n"
+"\n"
+" %s\n"
+"\n"
+"でHome Managerの設定を編集することができます。利用可能なオプションを見るに"
+"は\n"
+"'man home-configuration.nix' を実行してください。"
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"うあ、インストールに失敗しました!もしこのエラーがHome Managerの欠陥のせいで"
+"生じたようなら、\n"
+"\n"
+" %s\n"
+"\n"
+"というissueを立ててください。"
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr "この派生はビルドできませんので、nix-shellを使って実行してください。"
diff --git a/third_party/home-manager/home-manager/po/ko.po b/third_party/home-manager/home-manager/po/ko.po
new file mode 100644
index 0000000000..2dfe7e49aa
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/ko.po
@@ -0,0 +1,186 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-01-30 21:50+0000\n"
+"Last-Translator: 박수원 \n"
+"Language-Team: Korean \n"
+"Language: ko\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.11-dev\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "%s에서 설정 파일을 찾을 수 없음"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "설정 파일을 찾을 수 없음. %s에 설정 파일을 생성하십시오"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "flake 설정의 옵션들을 검사할 수 없음"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "flake 설정을 인스턴스화 할 수 없음"
+
+#: home-manager/home-manager:237
+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 개 있습니다.\n"
+"\"%s news\" 명령어를 실행해 읽어보십시오."
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "알 수 없는 \"news.display\"의 설정 \"%s\"."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "환경변수 $EDITOR를 설정하십시오"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "읽기전용 폴더에서 빌드를 실행할 수 없습니다"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "ID %s를 갖는 세대가 존재하지 않음"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "현재 세대인 %s를 삭제할 수 없음"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "%s 세대를 삭제하는 중"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "유효 기간이 지난 세대가 없음"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "홈 매니저 패키지들이 설치되지 않은 것으로 보입니다."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "알 수 없는 매개변수 %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "시스템에서 홈 매니저를 삭제할 것입니다."
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "모의 실행 중으로, 아무것도 실제로 설치되지 않습니다."
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "정말로 홈 매니저를 삭제할까요?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "빈 홈 매니저 설정으로 바꾸는 중..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "야호!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "모든 홈 매니저 세대를 지울까요?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "이제 모든 세대가 쓰레기 수집(가비지 컬렉션)의 대상이 됩니다."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr ""
+"세대들을 그대로 놔두지만 그들은 여전히 쓰레기 수집(가비지 컬렉션) 될 수 있습"
+"니다."
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr "홈 매니저는 삭제되지만 home.nix 파일은 남겨집니다."
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: 알 수 없는 옵션 '%s'"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "도움말을 보려면 '%s --help'를 실행하십시오"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr ""
+"expire-generations 명령어는 매개변수가 한 개 필요한데, %d 개가 입력되었습니"
+"다."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "알 수 없는 명령어: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "최초의 홈 매니저 설정을 생성하는 중..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr "최초의 홈 매니저 세대를 생성하는 중..."
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+"완료! 홈 매니저 도구들이 설치 되었고 이제 \n"
+"\n"
+" %s\n"
+"\n"
+"파일을 수정해서 홈 매니저를 설정할 수 있습니다. 'man home-configuration."
+"nix'를\n"
+"실행해서 가능한 모든 옵션을 살펴보십시오."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"이런, 설치가 실패했습니다! 만약 에러가 홈 매니저의 문제라고 생각된다면\n"
+"\n"
+" %s\n"
+"\n"
+"위 사이트에서 이슈를 생성하십시오."
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
+"이 derivation은 빌드 할 수 없습니다. nix-shell을 이용해서 실행해 주십시오."
diff --git a/third_party/home-manager/home-manager/po/lt.po b/third_party/home-manager/home-manager/po/lt.po
new file mode 100644
index 0000000000..52b3cab63b
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/lt.po
@@ -0,0 +1,186 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2023-01-09 11:33+0000\n"
+"Last-Translator: Kornelijus Tvarijanavičius \n"
+"Language-Team: Lithuanian \n"
+"Language: lt\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 % 10 == 1 && (n % 100 < 11 || n % 100 > "
+"19)) ? 0 : ((n % 10 >= 2 && n % 10 <= 9 && (n % 100 < 11 || n % 100 > 19)) ? "
+"1 : 2);\n"
+"X-Generator: Weblate 4.15.1-dev\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "Nerastas konfigūracijos failas %s"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "Nerastas konfigūracijos failas. Sukurkite jį adresu %s"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "Negalima patikrinti flake konfigūracijos pasirinkimų"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "Negalima sukurti pradinės flake konfigūracijos"
+
+#: home-manager/home-manager:237
+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] ""
+"Yra %d neperskaityta ir aktuali naujiena.\n"
+"Perskaitykite ją paleidus komandą \"%s news\"."
+msgstr[1] ""
+"Yra %d neperskaitytos ir aktualios naujienos.\n"
+"Perskaitykite jas paleidus komandą \"%s news\"."
+msgstr[2] ""
+"Yra %d neperskaitytų ir aktualių naujienų.\n"
+"Perskaitykite jas paleidus komandą \"%s news\"."
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Nežinomas \"news.display\" nustatymas \"%s\"."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Prašome nustatyti $EDITOR aplinkos kintamąjį"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr ""
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "Nėra generacijos su ID %s"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "Negalima pašalinti esamos generacijos %s"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "Pašalinama generacija %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr ""
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "Nėra instaliuotų home-manager paketų."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "Nežinomas argumentas %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "Tai pašalins Home Manager iš jūsų sistemos."
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "Tai bandomasis paleidimas, niekas nebus ištrinta."
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "Tikrai išdiegti Home Manager?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Perjungiama į tuščią Home Manager konfigūraciją..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Valio!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Pašalinti visas Home Manager generacijas?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr ""
+"Visos generacijos jau tinkamos šiukšlių surinkimui (garbage collection)."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr ""
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr "Home Manager yra išdiegtas, bet jūsų home.nix liko nepaliestas."
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: nežinomas pasirinkimas „%s“"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Paleiskite „%s --help“, kad gautumėte naudojimosi instrukcijas"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations tikisi vieno argumento, gauta %d."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Nežinoma komanda: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "Kuriama pradinė Home Manager konfigūracija..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr "Kuriama pradinė Home Manager generacija..."
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+"Viskas baigta! Įrankis home-manager turėtų būti įdiegtas ir dabar galite "
+"redaguoti\n"
+"\n"
+". . . .%s\n"
+"\n"
+", kad konfigūruotumėte Home Manager. Paleiskite „man home-configuration.nix“,"
+"\n"
+"jei norite pamatyti visus pasirinkimus."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
diff --git a/third_party/home-manager/home-manager/po/nb_NO.po b/third_party/home-manager/home-manager/po/nb_NO.po
new file mode 100644
index 0000000000..4ab763af56
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/nb_NO.po
@@ -0,0 +1,173 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2023-01-08 11:50+0000\n"
+"Last-Translator: Petter K \n"
+"Language-Team: Norwegian Bokmål \n"
+"Language: nb_NO\n"
+"MIME-Version: 1.0\n"
+"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.15.1-dev\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "Fant ingen oppsettsfil i %s"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "Fant ikke noenoppsettsfil. Opprett en i %s"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "Kan ikke inspisere alternativer for et flake-oppsett"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "Kan ikke igangsette flak-oppsett"
+
+#: home-manager/home-manager:237
+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] ""
+"Det er %d ulest og relevant nyhetselement.\n"
+"Les det ved å kjøre kommandoen «%s news»."
+msgstr[1] ""
+"Det er %d uleste og relevant nyhetselementer.\n"
+"Les det ved å kjøre kommandoen «%s news»."
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Ukjent «news.display»-innstilling «%s»."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Sett «$EDITOR»-miljøvariabelen"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "Kan ikke kjøre bygg i skrivebeskyttet mappe"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "Ingen generering med ID-en %s"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "Kan ikke fjerne nåværende generering %s"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "Fjerner generering %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "Ingen genereringer til utløp"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "Ingen «home-manager»-pakker ser ut til å være installert."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "Ukjent argument %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "Dette vil fjerne Home Manager fra systemet ditt."
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "Dette er en testkjøring. Ingenting vil bli avinstallert."
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "Vil du avinstallere Home Manager?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Bytter til tomt Home Manager-oppsett …"
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Hurra."
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Fjern alle Home Manager-genereringer?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "Alle genereringer kan nå hentes av søppelinnsamling."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr "Levner genereringer, men de kan fremdeles hentes av søppelinnsamling."
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr "Home Manager er avinstallert, men din home.nix er levnet uforandret."
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: ukjent alternativ «%s»"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Kjør «%s --help» for brukshjelp"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "«expire-generations» forventet ett argument, mottok %d."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Ukjent kommando: %s"
+
+#: home-manager/install.nix:22
+#, fuzzy
+msgid "Creating initial Home Manager configuration..."
+msgstr "Oppretter ny Home Manager-konfigurasjon..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr "Oppretter ny Home Manager-generasjon..."
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
diff --git a/third_party/home-manager/home-manager/po/nl.po b/third_party/home-manager/home-manager/po/nl.po
new file mode 100644
index 0000000000..58c90c2608
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/nl.po
@@ -0,0 +1,187 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-11-16 13:47+0000\n"
+"Last-Translator: Pablo Bollansee \n"
+"Language-Team: Dutch \n"
+"Language: nl\n"
+"MIME-Version: 1.0\n"
+"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.15-dev\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "Geen configuratiebestand gevonden op %s"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "Geen configuratiebestand gevonden, maak er alstublieft een aan op %s"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "Kan de opties van een flake configuratie niet inspecteren"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "Het is niet gelukt om de vlok-configuratie te creëren"
+
+#: home-manager/home-manager:237
+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] ""
+"Er is %d ongelezen and relevant nieuws artikel.\n"
+"Lees het door het commando \"%s news\" uit te voeren."
+msgstr[1] ""
+"Er zijn %d ongelezen and relevante nieuws artikelen.\n"
+"Lees ze door het commando \"%s news\" uit te voeren."
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Onbekende \"new.display\" instelling \"%s\"."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Gelieve de $EDITOR omgevingsvariabele in te stellen"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "Het is niet mogelijk om te bouwen in een read-only map"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "Geen generatie met de ID %s"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "Het is niet mogelijk om de huidige generatie %s te verwijderen"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "Generatie %s aan het verwijderen"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "Geen generatie om te beëindigen"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "Er lijkt geen home-manager pakket geïnstalleerd te zijn."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "Onbekend argument %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "Dit zal Home Manager van jouw systeem verwijderen."
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "Dit is een oefening, niets wordt werkelijk geïnstalleerd."
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "Wilt u zeker Home Manager verwijderen?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Naar een lege Home Manager configuratie aan het veranderen..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Joepie!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Alle Home Manager generaties verwijderen?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "Alle generaties zijn nu in aanmerking voor afvalinzameling."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr "Generaties blijven momenteel bestaan maar worden later opgekuist."
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr "Home Manager is verwijdert maar jouw home.nix is onaangeraakt."
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: onbekende keuze '%s'"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Voer '%s --help' in om gebruiksinfo te zien"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations verwacht één argument, maar kreeg er %d."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Onbekende opdracht: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "Initiële Home Manager configuratie aan het maken..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr "Initiële Home Manager generatie aan het maken..."
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+"Helemaal klaar! De home-manager tool zou nu geïnstalleerd moeten zijn en je "
+"kan\n"
+"\n"
+" %s\n"
+"\n"
+"aanpassen om Home Manager te configureren. Draai 'man home-"
+"configuration.nix' om\n"
+"alle opties te zien."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"Oh nee, de installatie is mislukt. Gelieve een ticket aan te maken in\n"
+"\n"
+" %s\n"
+"\n"
+"als de error de schuld van Home Manager lijkt te zijn."
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
+"Deze afleiding kan niet gebouwd worden, voer het alstublieft uit met nix-"
+"shell."
diff --git a/third_party/home-manager/home-manager/po/pl.po b/third_party/home-manager/home-manager/po/pl.po
new file mode 100644
index 0000000000..4835b505e9
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/pl.po
@@ -0,0 +1,191 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2021-12-29 08:48+0000\n"
+"Last-Translator: Tomasz Czyż \n"
+"Language-Team: Polish \n"
+"Language: pl\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%10>=2 && n%10<=4 && (n%100<10 "
+"|| n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.10.1\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "Nie znaleziono pliku konfiguracyjnego %s"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "Nie znaleziono pliku konfiguracyjnego. Proszę utworzyć plik %s"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "Nie mogę sprawdzić konfiguracji flake'a"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "Nie mogę zinstancjować konfiguracji flake'a"
+
+#: home-manager/home-manager:237
+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] ""
+"Jest %d nieodczytana wiadomość.\n"
+"Możesz ją odczytać uruchamiając „%s news”."
+msgstr[1] ""
+"Jest %d nieodczytanych wiadomości.\n"
+"Możesz je odczytać uruchamiając „%s news”."
+msgstr[2] ""
+"Jest %d nieodczytanych wiadomości.\n"
+"Możesz je odczytać uruchamiając „%s news”."
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Nieznane ustawienie „%s” „news.display”."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Proszę ustawić zmienną środowiskową $EDITOR"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "Nie mogę uruchomić budowania w katalogu tylko-do-odczytu"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "Brak generacji z ID %s"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "Nie mogę usunąć bieżącej generacji %s"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "Usuwanie generacji %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "Brak wygasających generacji"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "Pakiety home-manager nie wydają się być zainstalowane."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "Nieznany argument %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "To usunie Home Managera z twojego systemu."
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "To jest próba, faktycznie nic nie będzie usunięte."
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "Jesteś pewien usunięcia Home Managera?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Przełączanie do pustej konfiguracji Home Managera..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Jej!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Usunąć wszystkie generacje Home Managera?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr ""
+"Wszystkie generacje są uwzględnione przy oczyszczaniu (garbage collection)."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr ""
+"Zostawiam generacje ale wciąż mogą zostać usunięte (garbage collection)."
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr ""
+"Home Manager jest usunięty ale twój home.nix jest pozostawiony nietknięty."
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: nieznana opcja „%s”"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Uruchom „%s --help” by otrzymać pomoc"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations oczekuje jednego argumentu, otrzymane %d."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Nieznana komenda: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "Tworzenie pierwotnej konfiguracji Home Managera..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr "Tworzenie pierwotnej generacji Home Managera..."
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+"Skończone! Narzędzie home-manager powinno być zainstalowane i może edytować\n"
+"\n"
+" %s\n"
+"\n"
+"by skonfigurować Home Managera. Uruchom „man home-configuration.nix” aby\n"
+"sprawdzić wszystkie możliwe opcje konfiguracyjne."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"Ojoj, instalacja nie powiodła się! Proszę opisz problem na\n"
+"\n"
+" %s\n"
+"\n"
+"jeśli myślisz, że problem spowodowany jest przez błąd Home Managera."
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
+"Ta paczka (derivation) nie da się budować, proszę uruchom używając nix-shell."
diff --git a/third_party/home-manager/home-manager/po/pt_BR.po b/third_party/home-manager/home-manager/po/pt_BR.po
new file mode 100644
index 0000000000..de2fb70567
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/pt_BR.po
@@ -0,0 +1,188 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-04-04 11:11+0000\n"
+"Last-Translator: Alex Miranda \n"
+"Language-Team: Portuguese (Brazil) \n"
+"Language: pt_BR\n"
+"MIME-Version: 1.0\n"
+"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.12-dev\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "Nenhum arquivo de configuração encontrado no %s"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "Arquivo de configuração não encontrado. Por favor crie um em %s"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "Não é possivel inspecionar a opção de configuração do flake"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "Não foi possível instanciar a configuração de flake"
+
+#: home-manager/home-manager:237
+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] ""
+"Há %d novo item relevante não lido\n"
+"Leia executando o comando \"%s news\"."
+msgstr[1] ""
+"Há %d novos itens relevants não lidos\n"
+"Leia executando o comando \"%s news\"."
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Valor \"%s\" para configuração \"news.display\" não reconhecido."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Por favor defina a variável de ambiente $EDITOR"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "Não é possível fazer o build em um diretório somente leitura"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "Nenhuma geração com ID %s"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "Não foi possível remover a geração atual %s"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "Removendo geração %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "Nenhuma geração a expirar"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "Nenhum pacote parece instalado com home-manager."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "Argumento desconhecido %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "Isso irá remover o Home Manager do seu sistema."
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "Essa é uma execução de teste, nada de fato será desinstalado."
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "Confirma a desinstalação do Home Manager?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Trocando para configuração vazia do Home Manager..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Boa!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Remover todas as gerações do Home Manager?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "Todas gerações agora são elegíveis para coleta do garbage collector."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr ""
+"Deixando gerações, entretanto elas ainda poderão ser limpas pelo garbage "
+"collector."
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr "Home Manager foi desinstalado, mas o seu home.nix foi deixado intacto."
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: opção não reconhecida '%s'"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Execute '%s --help' para instruções de uso"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations espera um argumento, recebeu %d."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Comando não reconhecido: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "Criando a configuração inicial do Home Manager..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr "Criando a geração inicial do Home Manager..."
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+"Pronto! O home-manager deve ser instalado agora e você poderá editar o "
+"arquivo\n"
+"\n"
+" %s\n"
+"\n"
+"para configurar o Home Manager. Execute 'man home-configuration.nix' para\n"
+"ver todas as opções disponíveis."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"Ixi, a instalação falhou! Por favor crie um issue no\n"
+"\n"
+" %s\n"
+"\n"
+"se o erro lhe parecer ser um problema do Home Manager."
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
+"O build dessa derivation não pode ser feito, por favor rode usando o nix-"
+"shell."
diff --git a/third_party/home-manager/home-manager/po/ru.po b/third_party/home-manager/home-manager/po/ru.po
new file mode 100644
index 0000000000..05378c0fe5
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/ru.po
@@ -0,0 +1,188 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2021-12-21 19:55+0000\n"
+"Last-Translator: Mikhail Chekan \n"
+"Language-Team: Russian \n"
+"Language: ru\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%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.10\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "Не найден файл конфигурации в %s"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "Не найден файл конфигурации. Пожалуйста, создайте его в %s"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "Не могу получить опции для flake-конфигурации"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "Не могу создать экземляр для flake-конфигурации"
+
+#: home-manager/home-manager:237
+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 непрочитанная и релевантная новость.\n"
+"Прочтите её, выполнив команду \"%s news\"."
+msgstr[1] ""
+"У вас есть %d непрочитанные и релевантные новости.\n"
+"Прочтите их, выполнив команду \"%s news\"."
+msgstr[2] ""
+"У вас есть %d непрочитанных и релевантных новостей.\n"
+"Прочтите их, выполнив команду \"%s news\"."
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Неизвестное значение \"news.display\": \"%s\"."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Пожалуйста, определите переменную среды $EDITOR"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "Не могу начать сборку в директории, защищённой от записи"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "Поколение под номером %s не существует"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "Не могу удалить текущее поколение %s"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "Удаляю поколение %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "Нет поколений, которые можно просрочить"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "Не обнаружено пакетов, установленных через home-manager."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "Неизвестный аргумент %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "Это удалит Home Manager из вашей системы."
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "Это пробный запуск, на самом деле ничего не удаляется."
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "Действительно хотите удалить Home Manager?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Переключаюсь на пустую конфигурацию Home Manager..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Ура!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Удалить все поколения Home Manager?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "Теперь все поколения готовы к удалению сборщиком мусора."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr "Поколения остаются, но их ещё можно удалить сборщиком мусора."
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr "Home Manager удалён, но ваш home.nix остался нетронутым."
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: неизвестная опция '%s'"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Выполните '%s --help', чтобы получить справку"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations требует один аргумент, но передано %d."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Неизвестная команда: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "Создаю начальную конфигурацию Home Manager..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr "Создаю начальное поколение Home Manager..."
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+"Готово! Теперь вам должна быть доступна утилита home-manager,\n"
+"и вы можете отредактировать настройки в файле\n"
+"\n"
+" %s\n"
+"\n"
+"Выполните 'man home-configuration.nix', чтобы увидеть доступные опции."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"Ой, установка не удалась! Пожалуйста, создайте тему в багтрекере\n"
+"\n"
+" %s\n"
+"\n"
+"если считаете, что в ошибке виноват Home Manager."
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
+"Это определение нельзя собрать. Пожалуйста, запустите его через nix-shell."
diff --git a/third_party/home-manager/home-manager/po/sv.po b/third_party/home-manager/home-manager/po/sv.po
new file mode 100644
index 0000000000..6ca1fc7f94
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/sv.po
@@ -0,0 +1,183 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2021-12-17 20:50+0000\n"
+"Last-Translator: Robert Helgesson \n"
+"Language-Team: Swedish \n"
+"Language: sv\n"
+"MIME-Version: 1.0\n"
+"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.10\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "Det finns ingen konfigurationsfil i %s"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "Hittade ingen konfigurationsfil. Skapa en i %s"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "Kan inte granska alternativ i en flake-konfiguration"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "Kan inte instansera en flake-konfiguration"
+
+#: home-manager/home-manager:237
+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] ""
+"Det finns %d oläst och relevant nyhet.\n"
+"Läs den genom att köra kommandot \"%s news\"."
+msgstr[1] ""
+"Det finns %d olästa och relevanta nyheter.\n"
+"Läs dem genom att köra kommandot \"%s news\"."
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Okänt \"news.display\"-värde \"%s\"."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Vänligen tilldela miljövariablen $EDITOR"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "Kan inte bygga i katalog med bara läsrättigheter"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "Ingen generation med ID %s"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "Kan inte ta bort nuvarande generation %s"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "Tar bort generation %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "Ingen generation att förfalla"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "Paketet home-manager verkar inte vara installerat."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "Okänt argument %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "Detta kommer att ta bort Home Manager från ditt system."
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "Detta är en testkörning, inget kommer att bli avinstallerat."
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "Verkligen avinstallera Home Manager?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Byter till tom Home Manager-konfiguration..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Hurra!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Ta bort alla Home Manager-generationer?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "Alla generationer kan nu skräpsamlas."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr "Låter generationer vara kvar men de kan fortfarande skräpsamlas."
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr "Home Manager är avinstallerad men din home.nix är orörd."
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: okänt val '%s'"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Kör '%s --help' för användarhjälp"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expect-generations förväntar sig ett argument, fick %d."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Okänt kommando: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "Skapar initial Home Manager-konfiguration..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr "Skapar initial Home Manager-generation..."
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+"Färdig! Verktyget home-manager borde nu vara installerat och du kan editera\n"
+"\n"
+" %s\n"
+"\n"
+"för att konfigurera Home Manager. Kör 'man home-configuration.nix' för\n"
+"att se alla tillgängliga alternativ."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"Ajdå, installationen misslyckades! Skapa gärna en rapport på\n"
+"\n"
+" %s\n"
+"\n"
+"om problemet verkar bero på något Home Manager gör fel."
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr "Denna derivation är inte byggbar, kör den med nix-shell istället."
diff --git a/third_party/home-manager/home-manager/po/tr.po b/third_party/home-manager/home-manager/po/tr.po
new file mode 100644
index 0000000000..fade64173d
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/tr.po
@@ -0,0 +1,186 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-03-26 23:57+0000\n"
+"Last-Translator: Oğuz Ersen \n"
+"Language-Team: Turkish \n"
+"Language: tr\n"
+"MIME-Version: 1.0\n"
+"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.12-dev\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "%s konumunda yapılandırma dosyası bulunamadı"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr ""
+"Yapılandırma dosyası bulunamadı. Lütfen %s konumunda bir tane oluşturun"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "Flake yapılandırmasının ayarları incelenemiyor"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "Flake yapılandırması örneklendirilemiyor"
+
+#: home-manager/home-manager:237
+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 tane okunmamış ilgili haber bulunmakta.\n"
+"Okumak için \"%s news\"."
+msgstr[1] ""
+"%d tane okunmamış ilgili haberler bulunmakta.\n"
+"Okumak için \"%s news\"."
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "Bilinmeyen \"news.display\" seçeneği \"%s\"."
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "Lütfen $EDITOR ortam değişkenini tanımlayın"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "İnşa, sadece okunabilir bir klasörde çalıştırılamaz"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "%s ID'sine sahip inşa bulunamadı"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "Kullanımda olan %s inşası silinemez"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "İnşa siliniyor %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "Süresi dolacak inşa yok"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "Galiba home-manager paketi kurulu değil."
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "Bilinmeyen argüman %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "Bu, sisteminizden Home Manager'ı kaldıracak."
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "Bu sadece bir inşa denemesi, hiçbir şey silinmeyecek."
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "Home Manager'ı silmek istediğinize emin misiniz?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "Boş Home Manager yapılandırmasına geçiliyor..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "Güzel!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "Tüm Home Manager inşaları kaldırılsın mı?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "Artık tüm inşalar çöp olarak toplanabilir."
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr "İnşalar yine de çöp olarak toplanabilir."
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr "Home Manager kaldırıldı ama home.nix dosyasına dokunulmadı."
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr "%s: Bilinmeyen komut '%s'"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "Yardım için '%s --help'"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations bir argüman istiyor, %d tane girildi."
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "Bilinmeyen komut: %s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "İlk Home Manager yapılandırması oluşturuluyor..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr "İlk Home Manager inşası oluşturuluyor..."
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+"Herşey tamam! home-manager aracı kuruldu. Home Manager'ı yapılandırmak için\n"
+"\n"
+" %s\n"
+"\n"
+"dosyasını düzenleyin. Kullanılabilir seçenekleri görmek için:\n"
+"'man home-configuration.nix'."
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"Eyvah, kurulum başarısız! Eğer hatanın Home Manager'dan kaynaklandığını "
+"düşünüyorsanız\n"
+"\n"
+" %s\n"
+"\n"
+"adresinden bildirin."
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr ""
+"Bu türetim inşa edilebilir değil, lütfen onu nix-shell kullanarak çalıştırın."
diff --git a/third_party/home-manager/home-manager/po/zh_Hans.po b/third_party/home-manager/home-manager/po/zh_Hans.po
new file mode 100644
index 0000000000..b3de7b2b73
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/zh_Hans.po
@@ -0,0 +1,180 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2021-12-28 12:41+0000\n"
+"Last-Translator: WhiredPlanck \n"
+"Language-Team: Chinese (Simplified) \n"
+"Language: zh_Hans\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.10.1\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "未在 %s 找到配置文件"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "未找到配置文件。请在 %s 处创建一份"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "无法检查 flake 配置中的选项"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "无法创建 flake 配置实例"
+
+#: home-manager/home-manager:237
+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 条未读的相关新闻或消息。\n"
+"可运行 “%s news” 命令进行阅读。"
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "未知的 “news.display” 设置项 “%s”。"
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "请设定 $EDITOR 环境变量"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "无法在只读目录中运行构建"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "没有 ID 为 %s 的世代"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "无法移除当前世代 %s"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "正在移除世代 %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "没有即将过期的世代"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "似乎没有安装 home-manager 软件包。"
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "未知参数 %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "这将会从系统中移除 Home Manager。"
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "这是试运行结果,没有实际卸载任何软件包。"
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "确定要卸载 Home Manager 吗?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "正在切换至空的 Home Manager 配置 ..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "好耶!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "要移除所有 Home Manager 配置世代吗?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "所有世代现在均符合垃圾回收的条件。"
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr "保留世代,但它们仍然可能被垃圾回收。"
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr "Home Manager 已卸载,但未改动您的 home.nix 配置文件。"
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr "%s:未知选项 ‘%s’"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "运行 ‘%s --help’ 获取用法帮助"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations 须要一个参数,但获取到了 %d 个。"
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "未知命令:%s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "正在创建初始 Home Manager 配置 ..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr "正在创建初始 Home Manager 世代 ..."
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+"全部工作完成了!home-manager 工具现应已安装,您可以编辑\n"
+"\n"
+" %s\n"
+"\n"
+"来配置 Home Manager。运行 ‘man home-configuration.nix’\n"
+"来查看所有可用选项。"
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"啊哦,安装失败了!如果感觉是 Home Manager 造成的错误,请在下方\n"
+"\n"
+" %s\n"
+"\n"
+"处创建 Issue 告知我们。"
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr "此配置文件/变体不可构建,请在 nix-shell 中运行它。"
diff --git a/third_party/home-manager/home-manager/po/zh_Hant.po b/third_party/home-manager/home-manager/po/zh_Hant.po
new file mode 100644
index 0000000000..917f053e9c
--- /dev/null
+++ b/third_party/home-manager/home-manager/po/zh_Hant.po
@@ -0,0 +1,180 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager package.
+# FIRST AUTHOR , 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: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2021-12-29 08:48+0000\n"
+"Last-Translator: WhiredPlanck \n"
+"Language-Team: Chinese (Traditional) \n"
+"Language: zh_Hant\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.10.1\n"
+
+#: home-manager/home-manager:60
+msgid "No configuration file found at %s"
+msgstr "未在 %s 處找到配置檔案"
+
+#: home-manager/home-manager:79
+msgid "No configuration file found. Please create one at %s"
+msgstr "未找到配置檔案。請在 %s 處建立一份"
+
+#: home-manager/home-manager:122
+msgid "Can't inspect options of a flake configuration"
+msgstr "無法檢查 flake 配置中的選項"
+
+#: home-manager/home-manager:162
+msgid "Can't instantiate a flake configuration"
+msgstr "無法建立 flake 配置例項"
+
+#: home-manager/home-manager:237
+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 條未讀的相關新聞或訊息。\n"
+"可執行 “%s news” 命令進行閱讀。"
+
+#: home-manager/home-manager:251
+msgid "Unknown \"news.display\" setting \"%s\"."
+msgstr "未知的 “news.display” 設定項 “%s”。"
+
+#: home-manager/home-manager:258
+#, sh-format
+msgid "Please set the $EDITOR environment variable"
+msgstr "請設定 $EDITOR 環境變數"
+
+#: home-manager/home-manager:273
+msgid "Cannot run build in read-only directory"
+msgstr "無法在只讀目錄中執行構建"
+
+#: home-manager/home-manager:355
+msgid "No generation with ID %s"
+msgstr "沒有 ID 為 %s 的世代"
+
+#: home-manager/home-manager:357
+msgid "Cannot remove the current generation %s"
+msgstr "無法移除當前世代 %s"
+
+#: home-manager/home-manager:359
+msgid "Removing generation %s"
+msgstr "正在移除世代 %s"
+
+#: home-manager/home-manager:385
+msgid "No generations to expire"
+msgstr "沒有即將過期的世代"
+
+#: home-manager/home-manager:396
+msgid "No home-manager packages seem to be installed."
+msgstr "似乎沒有安裝 home-manager 軟體包。"
+
+#: home-manager/home-manager:453
+msgid "Unknown argument %s"
+msgstr "未知引數 %s"
+
+#: home-manager/home-manager:469
+msgid "This will remove Home Manager from your system."
+msgstr "這將會從系統中移除 Home Manager。"
+
+#: home-manager/home-manager:472
+msgid "This is a dry run, nothing will actually be uninstalled."
+msgstr "這是試執行結果,沒有實際解除安裝任何軟體包。"
+
+#: home-manager/home-manager:476
+msgid "Really uninstall Home Manager?"
+msgstr "確定要解除安裝 Home Manager 嗎?"
+
+#: home-manager/home-manager:481
+msgid "Switching to empty Home Manager configuration..."
+msgstr "正在切換至空的 Home Manager 配置 ..."
+
+#: home-manager/home-manager:493
+msgid "Yay!"
+msgstr "好耶!"
+
+#: home-manager/home-manager:500
+msgid "Remove all Home Manager generations?"
+msgstr "要移除所有 Home Manager 配置世代嗎?"
+
+#: home-manager/home-manager:507
+msgid "All generations are now eligible for garbage collection."
+msgstr "所有世代現在均符合垃圾回收的條件。"
+
+#: home-manager/home-manager:510
+msgid "Leaving generations but they may still be garbage collected."
+msgstr "保留世代,但它們仍然可能被垃圾回收。"
+
+#: home-manager/home-manager:514
+msgid "Home Manager is uninstalled but your home.nix is left untouched."
+msgstr "Home Manager 已解除安裝,但未改動您的 home.nix 配置檔案。"
+
+#: home-manager/home-manager:673
+msgid "%s: unknown option '%s'"
+msgstr "%s:未知選項 ‘%s’"
+
+#: home-manager/home-manager:674
+msgid "Run '%s --help' for usage help"
+msgstr "執行 ‘%s --help’ 獲取用法幫助"
+
+#: home-manager/home-manager:708
+msgid "expire-generations expects one argument, got %d."
+msgstr "expire-generations 須要一個引數,但獲取到了 %d 個。"
+
+#: home-manager/home-manager:730
+msgid "Unknown command: %s"
+msgstr "未知命令:%s"
+
+#: home-manager/install.nix:22
+msgid "Creating initial Home Manager configuration..."
+msgstr "正在建立初始 Home Manager 配置 ..."
+
+#: home-manager/install.nix:66
+msgid "Creating initial Home Manager generation..."
+msgstr "正在建立初始 Home Manager 世代 ..."
+
+#. translators: The "%s" specifier will be replaced by a file path.
+#: home-manager/install.nix:71
+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 ""
+"全部工作完成了!home-manager 工具現應已安裝,您可以編輯\n"
+"\n"
+" %s\n"
+"\n"
+"來配置 Home Manager。執行 ‘man home-configuration.nix’\n"
+"來檢視所有可用選項。"
+
+#. translators: The "%s" specifier will be replaced by a URL.
+#: home-manager/install.nix:76
+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 ""
+"啊哦,安裝失敗了!如果感覺是 Home Manager 造成的錯誤,請在下方\n"
+"\n"
+" %s\n"
+"\n"
+"處建立 Issue 告知我們。"
+
+#: home-manager/install.nix:83
+msgid "This derivation is not buildable, please run it using nix-shell."
+msgstr "此配置檔案/變體不可構建,請在 nix-shell 中執行它。"
diff --git a/third_party/home-manager/lib/bash/home-manager.sh b/third_party/home-manager/lib/bash/home-manager.sh
new file mode 100644
index 0000000000..b7f3f42b28
--- /dev/null
+++ b/third_party/home-manager/lib/bash/home-manager.sh
@@ -0,0 +1,85 @@
+#!/usr/bin/env bash
+
+#
+# This file contains a number of utilities for use by the home-manager tool and
+# the generated Home Manager activation scripts. No guarantee is made about
+# backwards or forward compatibility.
+#
+
+# Sets up colors suitable for the `errorEcho`, `warnEcho`, and `noteEcho`
+# functions.
+#
+# The check for terminal output and color support is heavily inspired by
+# https://unix.stackexchange.com/a/10065.
+#
+# The setup respects the `NO_COLOR` environment variable.
+function setupColors() {
+ normalColor=""
+ errorColor=""
+ warnColor=""
+ noteColor=""
+
+ # Enable colors for terminals, and allow opting out.
+ if [[ ! -v NO_COLOR && -t 1 ]]; then
+ # See if it supports colors.
+ local ncolors
+ ncolors=$(tput colors 2> /dev/null || echo 0)
+
+ if [[ -n "$ncolors" && "$ncolors" -ge 8 ]]; then
+ normalColor="$(tput sgr0)"
+ errorColor="$(tput bold)$(tput setaf 1)"
+ warnColor="$(tput setaf 3)"
+ noteColor="$(tput bold)$(tput setaf 6)"
+ fi
+ fi
+}
+
+setupColors
+
+function errorEcho() {
+ echo "${errorColor}$*${normalColor}"
+}
+
+function warnEcho() {
+ echo "${warnColor}$*${normalColor}"
+}
+
+function noteEcho() {
+ echo "${noteColor}$*${normalColor}"
+}
+
+function _i() {
+ local msgid="$1"
+ shift
+
+ # shellcheck disable=2059
+ printf "$(gettext "$msgid")\n" "$@"
+}
+
+function _ip() {
+ local msgid="$1"
+ local msgidPlural="$2"
+ local count="$3"
+ shift 3
+
+ # shellcheck disable=2059
+ printf "$(ngettext "$msgid" "$msgidPlural" "$count")\n" "$@"
+}
+
+function _iError() {
+ echo -n "${errorColor}"
+ _i "$@"
+ echo -n "${normalColor}"
+}
+
+function _iWarn() {
+ echo -n "${warnColor}"
+ _i "$@"
+ echo -n "${normalColor}"
+}
+
+function _iNote() {
+ echo -n "${noteColor}"
+ _i "$@"
+ echo -n "${normalColor}"
+}
diff --git a/third_party/home-manager/modules/accounts/email.nix b/third_party/home-manager/modules/accounts/email.nix
index e48024e023..2d158a212a 100644
--- a/third_party/home-manager/modules/accounts/email.nix
+++ b/third_party/home-manager/modules/accounts/email.nix
@@ -44,6 +44,28 @@ let
'';
};
+ delimiter = mkOption {
+ type = types.str;
+ default = ''
+ --
+ '';
+ example = literalExpression ''
+ ~*~*~*~*~*~*~*~*~*~*~*~
+ '';
+ description = ''
+ The delimiter used between the document and the signature.
+ '';
+ };
+
+ command = mkOption {
+ type = with types; nullOr path;
+ default = null;
+ example = literalExpression ''
+ pkgs.writeScript "signature" "echo This is my signature"
+ '';
+ description = "A command that generates a signature.";
+ };
+
showSignature = mkOption {
type = types.enum [ "append" "attach" "none" ];
default = "none";
@@ -114,6 +136,38 @@ let
};
};
+ jmapModule = types.submodule {
+ options = {
+ host = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ example = "jmap.example.org";
+ description = ''
+ Hostname of JMAP server.
+
+ If both this option and are specified,
+ host is preferred by applications when establishing a
+ session.
+ '';
+ };
+
+ sessionUrl = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ example = "https://jmap.example.org:443/.well-known/jmap";
+ description = ''
+ URL for the JMAP Session resource.
+
+ If both this option and are specified,
+ host is preferred by applications when establishing a
+ session.
+ '';
+ };
+ };
+ };
+
smtpModule = types.submodule {
options = {
host = mkOption {
@@ -188,7 +242,14 @@ let
};
flavor = mkOption {
- type = types.enum [ "plain" "gmail.com" "runbox.com" "fastmail.com" ];
+ type = types.enum [
+ "plain"
+ "gmail.com"
+ "runbox.com"
+ "fastmail.com"
+ "yandex.com"
+ "outlook.office365.com"
+ ];
default = "plain";
description = ''
Some email providers have peculiar behavior that require
@@ -196,7 +257,7 @@ let
indicate the nature of the provider.
When this indicates a specific provider then, for example,
- the IMAP and SMTP server configuration may be set
+ the IMAP, SMTP, and JMAP server configuration may be set
automatically.
'';
};
@@ -225,7 +286,7 @@ let
default = null;
description = ''
The server username of this account. This will be used as
- the SMTP and IMAP user name.
+ the SMTP, IMAP, and JMAP user name.
'';
};
@@ -290,6 +351,14 @@ let
'';
};
+ jmap = mkOption {
+ type = types.nullOr jmapModule;
+ default = null;
+ description = ''
+ The JMAP configuration to use for this account.
+ '';
+ };
+
signature = mkOption {
type = signatureModule;
default = { };
@@ -328,17 +397,61 @@ let
name = name;
maildir = mkOptionDefault { path = "${name}"; };
}
+
+ (mkIf (config.flavor == "yandex.com") {
+ userName = mkDefault config.address;
+
+ imap = {
+ host = "imap.yandex.com";
+ port = 993;
+ tls.enable = true;
+ };
+
+ smtp = {
+ host = "smtp.yandex.com";
+ port = 465;
+ tls.enable = true;
+ };
+ })
+
+ (mkIf (config.flavor == "outlook.office365.com") {
+ userName = mkDefault config.address;
+
+ imap = {
+ host = "outlook.office365.com";
+ port = 993;
+ tls.enable = true;
+ };
+
+ smtp = {
+ host = "smtp.office365.com";
+ port = 587;
+ tls = {
+ enable = true;
+ useStartTls = true;
+ };
+ };
+ })
+
(mkIf (config.flavor == "fastmail.com") {
userName = mkDefault config.address;
- smtp = {
- host = "smtp.fastmail.com";
- port = if config.smtp.tls.useStartTls then 587 else 465;
- };
+
imap = {
host = "imap.fastmail.com";
port = 993;
};
+
+ smtp = {
+ host = "smtp.fastmail.com";
+ port = if config.smtp.tls.useStartTls then 587 else 465;
+ };
+
+ jmap = {
+ host = "fastmail.com";
+ sessionUrl = "https://jmap.fastmail.com/.well-known/jmap";
+ };
})
+
(mkIf (config.flavor == "gmail.com") {
userName = mkDefault config.address;
diff --git a/third_party/home-manager/modules/config/home-cursor.nix b/third_party/home-manager/modules/config/home-cursor.nix
new file mode 100644
index 0000000000..a246773693
--- /dev/null
+++ b/third_party/home-manager/modules/config/home-cursor.nix
@@ -0,0 +1,156 @@
+{ config, options, lib, pkgs, ... }:
+
+with lib;
+
+let
+
+ cfg = config.home.pointerCursor;
+
+ pointerCursorModule = types.submodule {
+ options = {
+ package = mkOption {
+ type = types.package;
+ example = literalExpression "pkgs.vanilla-dmz";
+ description = "Package providing the cursor theme.";
+ };
+
+ name = mkOption {
+ type = types.str;
+ example = "Vanilla-DMZ";
+ description = "The cursor name within the package.";
+ };
+
+ size = mkOption {
+ type = types.int;
+ default = 32;
+ example = 64;
+ description = "The cursor size.";
+ };
+
+ x11 = {
+ enable = mkEnableOption ''
+ x11 config generation for
+ '';
+
+ defaultCursor = mkOption {
+ type = types.str;
+ default = "left_ptr";
+ example = "X_cursor";
+ description = "The default cursor file to use within the package.";
+ };
+ };
+
+ gtk = {
+ enable = mkEnableOption ''
+ gtk config generation for
+ '';
+ };
+ };
+ };
+
+ cursorPath = "${cfg.package}/share/icons/${escapeShellArg cfg.name}/cursors/${
+ escapeShellArg cfg.x11.defaultCursor
+ }";
+
+in {
+ meta.maintainers = [ maintainers.polykernel maintainers.league ];
+
+ imports = [
+ (mkAliasOptionModule [ "xsession" "pointerCursor" "package" ] [
+ "home"
+ "pointerCursor"
+ "package"
+ ])
+ (mkAliasOptionModule [ "xsession" "pointerCursor" "name" ] [
+ "home"
+ "pointerCursor"
+ "name"
+ ])
+ (mkAliasOptionModule [ "xsession" "pointerCursor" "size" ] [
+ "home"
+ "pointerCursor"
+ "size"
+ ])
+ (mkAliasOptionModule [ "xsession" "pointerCursor" "defaultCursor" ] [
+ "home"
+ "pointerCursor"
+ "x11"
+ "defaultCursor"
+ ])
+
+ ({ ... }: {
+ warnings = optional (any (x:
+ getAttrFromPath
+ ([ "xsession" "pointerCursor" ] ++ [ x ] ++ [ "isDefined" ])
+ options) [ "package" "name" "size" "defaultCursor" ]) ''
+ The option `xsession.pointerCursor` has been merged into `home.pointerCursor` and will be removed
+ in the future. Please change to set `home.pointerCursor` directly and enable `home.pointerCursor.x11.enable`
+ to generate x11 specific cursor configurations. You can refer to the documentation for more details.
+ '';
+ })
+ ];
+
+ options = {
+ home.pointerCursor = mkOption {
+ type = types.nullOr pointerCursorModule;
+ default = null;
+ description = ''
+ Cursor configuration. Set to null to disable.
+
+ Top-level options declared under this submodule are backend indepedent
+ options. Options declared under namespaces such as x11
+ are backend specific options. By default, only backend independent cursor
+ configurations are generated. If you need configurations for specific
+ backends, you can toggle them via the enable option. For example,
+
+ will enable x11 cursor configurations.
+ '';
+ };
+ };
+
+ config = mkIf (cfg != null) (mkMerge [
+ {
+ assertions = [
+ (hm.assertions.assertPlatform "home.pointerCursor" pkgs platforms.linux)
+ ];
+
+ home.packages = [ cfg.package ];
+
+ # Set name in icons theme, for compatibility with AwesomeWM etc. See:
+ # https://github.com/nix-community/home-manager/issues/2081
+ # https://wiki.archlinux.org/title/Cursor_themes#XDG_specification
+ home.file.".icons/default/index.theme".text = ''
+ [icon theme]
+ Name=Default
+ Comment=Default Cursor Theme
+ Inherits=${cfg.name}
+ '';
+
+ # Set directory to look for cursors in, needed for some applications
+ # that are unable to find cursors otherwise. See:
+ # https://github.com/nix-community/home-manager/issues/2812
+ # https://wiki.archlinux.org/title/Cursor_themes#Environment_variable
+ home.sessionVariables = {
+ XCURSOR_PATH = mkDefault ("$XCURSOR_PATH\${XCURSOR_PATH:+:}"
+ + "${config.home.profileDirectory}/share/icons");
+ };
+ }
+
+ (mkIf cfg.x11.enable {
+ xsession.initExtra = ''
+ ${pkgs.xorg.xsetroot}/bin/xsetroot -xcf ${cursorPath} ${
+ toString cfg.size
+ }
+ '';
+
+ xresources.properties = {
+ "Xcursor.theme" = cfg.name;
+ "Xcursor.size" = cfg.size;
+ };
+ })
+
+ (mkIf cfg.gtk.enable {
+ gtk.cursorTheme = mkDefault { inherit (cfg) package name size; };
+ })
+ ]);
+}
diff --git a/third_party/home-manager/modules/default.nix b/third_party/home-manager/modules/default.nix
index a138dc2c94..02be152fdd 100644
--- a/third_party/home-manager/modules/default.nix
+++ b/third_party/home-manager/modules/default.nix
@@ -21,7 +21,7 @@ let
in
fold f res res.config.warnings;
- extendedLib = import ./lib/stdlib-extended.nix pkgs.lib;
+ extendedLib = import ./lib/stdlib-extended.nix lib;
hmModules =
import ./modules.nix {
@@ -61,4 +61,6 @@ in
sort (a: b: a.time > b.time) (
filter (a: a.condition) rawModule.config.news.entries
);
+
+ inherit (module._module.args) pkgs;
}
diff --git a/third_party/home-manager/modules/files.nix b/third_party/home-manager/modules/files.nix
index d6b5eb6433..daeeb0b1f9 100644
--- a/third_party/home-manager/modules/files.nix
+++ b/third_party/home-manager/modules/files.nix
@@ -80,7 +80,7 @@ in
(filterAttrs (n: v: v.force) cfg));
check = pkgs.writeText "check" ''
- . ${./lib-bash/color-echo.sh}
+ ${config.lib.bash.initHomeManagerLib}
# A symbolic link whose target path matches this pattern will be
# considered part of a Home Manager generation.
@@ -185,14 +185,15 @@ in
$VERBOSE_ECHO "Skipping '$targetPath' as it is identical to '$sourcePath'"
else
# Place that symlink, --force
+ # This can still fail if the target is a directory, in which case we bail out.
$DRY_RUN_CMD mkdir -p $VERBOSE_ARG "$(dirname "$targetPath")"
- $DRY_RUN_CMD ln -nsf $VERBOSE_ARG "$sourcePath" "$targetPath"
+ $DRY_RUN_CMD ln -Tsf $VERBOSE_ARG "$sourcePath" "$targetPath" || exit 1
fi
done
'';
cleanup = pkgs.writeShellScript "cleanup" ''
- . ${./lib-bash/color-echo.sh}
+ ${config.lib.bash.initHomeManagerLib}
# A symbolic link whose target path matches this pattern will be
# considered part of a Home Manager generation.
@@ -230,7 +231,7 @@ in
in
''
function linkNewGen() {
- echo "Creating home file links in $HOME"
+ _i "Creating home file links in %s" "$HOME"
local newGenFiles
newGenFiles="$(readlink -e "$newGenPath/home-files")"
@@ -239,11 +240,11 @@ in
}
function cleanOldGen() {
- if [[ ! -v oldGenPath ]] ; then
+ if [[ ! -v oldGenPath || ! -e "$oldGenPath/home-files" ]] ; then
return
fi
- echo "Cleaning up orphan links from $HOME"
+ _i "Cleaning up orphan links from %s" "$HOME"
local newGenFiles oldGenFiles
newGenFiles="$(readlink -e "$newGenPath/home-files")"
@@ -259,11 +260,21 @@ in
cleanOldGen
if [[ ! -v oldGenPath || "$oldGenPath" != "$newGenPath" ]] ; then
- echo "Creating profile generation $newGenNum"
- $DRY_RUN_CMD nix-env $VERBOSE_ARG --profile "$genProfilePath" --set "$newGenPath"
+ _i "Creating profile generation %s" $newGenNum
+ if [[ -e "$genProfilePath"/manifest.json ]] ; then
+ # Remove all packages from "$genProfilePath"
+ # `nix profile remove '.*' --profile "$genProfilePath"` was not working, so here is a workaround:
+ nix profile list --profile "$genProfilePath" \
+ | cut -d ' ' -f 4 \
+ | xargs -t $DRY_RUN_CMD nix profile remove $VERBOSE_ARG --profile "$genProfilePath"
+ $DRY_RUN_CMD nix profile install $VERBOSE_ARG --profile "$genProfilePath" "$newGenPath"
+ else
+ $DRY_RUN_CMD nix-env $VERBOSE_ARG --profile "$genProfilePath" --set "$newGenPath"
+ fi
+
$DRY_RUN_CMD ln -Tsf $VERBOSE_ARG "$newGenPath" "$newGenGcPath"
else
- echo "No change so reusing latest profile generation $oldGenNum"
+ _i "No change so reusing latest profile generation %s" "$oldGenNum"
fi
linkNewGen
diff --git a/third_party/home-manager/modules/home-environment.nix b/third_party/home-manager/modules/home-environment.nix
index dd8b9817f1..098e10b21c 100644
--- a/third_party/home-manager/modules/home-environment.nix
+++ b/third_party/home-manager/modules/home-environment.nix
@@ -256,7 +256,7 @@ in
home.sessionVariables = mkOption {
default = {};
- type = types.attrs;
+ type = with types; lazyAttrsOf (oneOf [ str path int float ]);
example = { EDITOR = "emacs"; GS_OPTIONS = "-sPAPERSIZE=a4"; };
description = ''
Environment variables to always set at login.
@@ -346,12 +346,18 @@ in
home.emptyActivationPath = mkOption {
internal = true;
- default = false;
type = types.bool;
+ default = versionAtLeast stateVersion "22.11";
+ defaultText = literalExpression ''
+ false for state version < 22.11,
+ true for state version ≥ 22.11
+ '';
description = ''
Whether the activation script should start with an empty
- PATH variable. When false
- then the user's PATH will be used.
+ PATH variable. When false then the
+ user's PATH will be accessible in the script. It is
+ recommended to keep this at true to avoid
+ uncontrolled use of tools found in PATH.
'';
};
@@ -383,7 +389,7 @@ in
unexpected state is found. For example, the
checkLinkTargets script block checks for
collisions between non-managed files and files defined in
- home.file.
+ .
@@ -578,37 +584,78 @@ in
if config.submoduleSupport.externalPackageInstall
then
''
- if nix-env -q | grep '^home-manager-path$'; then
- $DRY_RUN_CMD nix-env -e home-manager-path
+ if [[ -e "$nixProfilePath"/manifest.json ]] ; then
+ nix profile list \
+ | { grep 'home-manager-path$' || test $? = 1; } \
+ | cut -d ' ' -f 4 \
+ | xargs -t $DRY_RUN_CMD nix profile remove $VERBOSE_ARG
+ else
+ if nix-env -q | grep '^home-manager-path$'; then
+ $DRY_RUN_CMD nix-env -e home-manager-path
+ fi
fi
''
else
''
- if ! $DRY_RUN_CMD nix-env -i ${cfg.path} ; then
- cat < $out/hm-version
+
cp ${activationScript} $out/activate
mkdir $out/bin
diff --git a/third_party/home-manager/modules/i18n/input-method/fcitx5.nix b/third_party/home-manager/modules/i18n/input-method/fcitx5.nix
index 9211d0b7ef..78eb970838 100644
--- a/third_party/home-manager/modules/i18n/input-method/fcitx5.nix
+++ b/third_party/home-manager/modules/i18n/input-method/fcitx5.nix
@@ -24,6 +24,7 @@ in {
i18n.inputMethod.package = fcitx5Package;
home.sessionVariables = {
+ GLFW_IM_MODULE = "ibus"; # IME support in kitty
GTK_IM_MODULE = "fcitx";
QT_IM_MODULE = "fcitx";
XMODIFIERS = "@im=fcitx";
diff --git a/third_party/home-manager/modules/i18n/input-method/kime.nix b/third_party/home-manager/modules/i18n/input-method/kime.nix
index 4a84768e72..70f3219001 100644
--- a/third_party/home-manager/modules/i18n/input-method/kime.nix
+++ b/third_party/home-manager/modules/i18n/input-method/kime.nix
@@ -48,11 +48,12 @@ in {
replaceStrings [ "\\\\" ] [ "\\" ] (builtins.toJSON cfg.config);
systemd.user.services.kime-daemon = {
- Unit = { Description = "Kime input method editor"; };
- PartOf = [ "graphical-session.target" ];
+ Unit = {
+ Description = "Kime input method editor";
+ PartOf = [ "graphical-session.target" ];
+ };
Service.ExecStart = "${pkgs.kime}/bin/kime";
Install.WantedBy = [ "graphical-session.target" ];
};
};
-
}
diff --git a/third_party/home-manager/modules/launchd/default.nix b/third_party/home-manager/modules/launchd/default.nix
new file mode 100644
index 0000000000..34fefc1751
--- /dev/null
+++ b/third_party/home-manager/modules/launchd/default.nix
@@ -0,0 +1,213 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+ inherit (pkgs.stdenv.hostPlatform) isDarwin;
+ inherit (lib.generators) toPlist;
+
+ cfg = config.launchd;
+ labelPrefix = "org.nix-community.home.";
+ dstDir = "${config.home.homeDirectory}/Library/LaunchAgents";
+
+ launchdConfig = { config, name, ... }: {
+ options = {
+ enable = mkEnableOption name;
+ config = mkOption {
+ type = types.submodule (import ./launchd.nix);
+ default = { };
+ example = literalExpression ''
+ {
+ ProgramArguments = [ "/usr/bin/say" "Good afternoon" ];
+ StartCalendarInterval = {
+ Hour = 12;
+ Minute = 0;
+ };
+ }
+ '';
+ description = ''
+ Define a launchd job. See
+ launchd.plist5
+ for details.
+ '';
+ };
+ };
+
+ config = { config.Label = mkDefault "${labelPrefix}${name}"; };
+ };
+
+ toAgent = config: pkgs.writeText "${config.Label}.plist" (toPlist { } config);
+
+ agentPlists =
+ mapAttrs' (n: v: nameValuePair "${v.config.Label}.plist" (toAgent v.config))
+ (filterAttrs (n: v: v.enable) cfg.agents);
+
+ agentsDrv = pkgs.runCommand "home-manager-agents" { } ''
+ mkdir -p "$out"
+
+ declare -A plists
+ plists=(${
+ concatStringsSep " "
+ (mapAttrsToList (name: value: "['${name}']='${value}'") agentPlists)
+ })
+
+ for dest in "''${!plists[@]}"; do
+ src="''${plists[$dest]}"
+ ln -s "$src" "$out/$dest"
+ done
+ '';
+in {
+ meta.maintainers = with maintainers; [ midchildan ];
+
+ options.launchd = {
+ enable = mkOption {
+ type = types.bool;
+ default = isDarwin;
+ defaultText = literalExpression "pkgs.stdenv.hostPlatform.isDarwin";
+ description = ''
+ Whether to enable Home Manager to define per-user daemons by making use
+ of launchd's LaunchAgents.
+ '';
+ };
+
+ agents = mkOption {
+ type = with types; attrsOf (submodule launchdConfig);
+ default = { };
+ description = "Define LaunchAgents.";
+ };
+ };
+
+ config = mkMerge [
+ {
+ assertions = [{
+ assertion = (cfg.enable && agentPlists != { }) -> isDarwin;
+ message = let names = lib.concatStringsSep ", " (attrNames agentPlists);
+ in "Must use Darwin for modules that require Launchd: " + names;
+ }];
+ }
+
+ (mkIf isDarwin {
+ home.extraBuilderCommands = ''
+ ln -s "${agentsDrv}" $out/LaunchAgents
+ '';
+
+ home.activation.checkLaunchAgents =
+ hm.dag.entryBefore [ "writeBoundary" ] ''
+ checkLaunchAgents() {
+ local oldDir newDir dstDir err
+ oldDir=""
+ err=0
+ if [[ -n "''${oldGenPath:-}" ]]; then
+ oldDir="$(readlink -m "$oldGenPath/LaunchAgents")" || err=$?
+ if (( err )); then
+ oldDir=""
+ fi
+ fi
+ newDir=${escapeShellArg agentsDrv}
+ dstDir=${escapeShellArg dstDir}
+
+ local oldSrcPath newSrcPath dstPath agentFile agentName
+
+ find -L "$newDir" -maxdepth 1 -name '*.plist' -type f -print0 \
+ | while IFS= read -rd "" newSrcPath; do
+ agentFile="''${newSrcPath##*/}"
+ agentName="''${agentFile%.plist}"
+ dstPath="$dstDir/$agentFile"
+ oldSrcPath="$oldDir/$agentFile"
+
+ if [[ ! -e "$dstPath" ]]; then
+ continue
+ fi
+
+ if ! cmp --quiet "$oldSrcPath" "$dstPath"; then
+ errorEcho "Existing file '$dstPath' is in the way of '$newSrcPath'"
+ exit 1
+ fi
+ done
+ }
+
+ checkLaunchAgents
+ '';
+
+ # NOTE: Launch Agent configurations can't be symlinked from the Nix store
+ # because it needs to be owned by the user running it.
+ home.activation.setupLaunchAgents =
+ hm.dag.entryAfter [ "writeBoundary" ] ''
+ setupLaunchAgents() {
+ local oldDir newDir dstDir domain err
+ oldDir=""
+ err=0
+ if [[ -n "''${oldGenPath:-}" ]]; then
+ oldDir="$(readlink -m "$oldGenPath/LaunchAgents")" || err=$?
+ if (( err )); then
+ oldDir=""
+ fi
+ fi
+ newDir="$(readlink -m "$newGenPath/LaunchAgents")"
+ dstDir=${escapeShellArg dstDir}
+ domain="gui/$UID"
+ err=0
+
+ local srcPath dstPath agentFile agentName i bootout_retries
+ bootout_retries=10
+
+ find -L "$newDir" -maxdepth 1 -name '*.plist' -type f -print0 \
+ | while IFS= read -rd "" srcPath; do
+ agentFile="''${srcPath##*/}"
+ agentName="''${agentFile%.plist}"
+ dstPath="$dstDir/$agentFile"
+
+ if cmp --quiet "$srcPath" "$dstPath"; then
+ continue
+ fi
+ if [[ -f "$dstPath" ]]; then
+ for (( i = 0; i < bootout_retries; i++ )); do
+ $DRY_RUN_CMD /bin/launchctl bootout "$domain/$agentName" || err=$?
+ if [[ -v DRY_RUN ]]; then
+ break
+ fi
+ if (( err != 9216 )) &&
+ ! /bin/launchctl print "$domain/$agentName" &> /dev/null; then
+ break
+ fi
+ sleep 1
+ done
+ if (( i == bootout_retries )); then
+ warnEcho "Failed to stop '$domain/$agentName'"
+ return 1
+ fi
+ fi
+ $DRY_RUN_CMD install -Dm444 -T "$srcPath" "$dstPath"
+ $DRY_RUN_CMD /bin/launchctl bootstrap "$domain" "$dstPath"
+ done
+
+ if [[ ! -e "$oldDir" ]]; then
+ return
+ fi
+
+ find -L "$oldDir" -maxdepth 1 -name '*.plist' -type f -print0 \
+ | while IFS= read -rd "" srcPath; do
+ agentFile="''${srcPath##*/}"
+ agentName="''${agentFile%.plist}"
+ dstPath="$dstDir/$agentFile"
+ if [[ -e "$newDir/$agentFile" ]]; then
+ continue
+ fi
+
+ $DRY_RUN_CMD /bin/launchctl bootout "$domain/$agentName" || :
+ if [[ ! -e "$dstPath" ]]; then
+ continue
+ fi
+ if ! cmp --quiet "$srcPath" "$dstPath"; then
+ warnEcho "Skipping deletion of '$dstPath', since its contents have diverged"
+ continue
+ fi
+ $DRY_RUN_CMD rm -f $VERBOSE_ARG "$dstPath"
+ done
+ }
+
+ setupLaunchAgents
+ '';
+ })
+ ];
+}
diff --git a/third_party/home-manager/modules/launchd/launchd.nix b/third_party/home-manager/modules/launchd/launchd.nix
new file mode 100644
index 0000000000..2e0e65859d
--- /dev/null
+++ b/third_party/home-manager/modules/launchd/launchd.nix
@@ -0,0 +1,872 @@
+# launchd option type from nix-darwin
+#
+# Original Source:
+# https://github.com/LnL7/nix-darwin/blob/a34dea2/modules/launchd/launchd.nix
+
+# Copyright 2017 Daiderd Jordan
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
+# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+{ config, lib, ... }:
+
+with lib;
+
+{
+ options = {
+ Label = mkOption {
+ type = types.str;
+ description = "This required key uniquely identifies the job to launchd.";
+ };
+
+ Disabled = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ This optional key is used as a hint to launchctl(1) that it should not submit this job to launchd when
+ loading a job or jobs. The value of this key does NOT reflect the current state of the job on the running
+ system. If you wish to know whether a job is loaded in launchd, reading this key from a configuration
+ file yourself is not a sufficient test. You should query launchd for the presence of the job using
+ the launchctl(1) list subcommand or use the ServiceManagement framework's
+ SMJobCopyDictionary() method.
+
+ Note that as of Mac OS X v10.6, this key's value in a configuration file conveys a default value, which
+ is changed with the [-w] option of the launchctl(1) load and unload subcommands. These subcommands no
+ longer modify the configuration file, so the value displayed in the configuration file is not necessarily
+ the value that launchctl(1) will apply. See launchctl(1) for more information.
+
+ Please also be mindful that you should only use this key if the provided on-demand and KeepAlive criteria
+ are insufficient to describe the conditions under which your job needs to run. The cost to have a
+ job loaded in launchd is negligible, so there is no harm in loading a job which only runs once or very
+ rarely.
+ '';
+ };
+
+ UserName = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ description = ''
+ This optional key specifies the user to run the job as. This key is only applicable when launchd is
+ running as root.
+ '';
+ };
+
+ GroupName = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ description = ''
+ This optional key specifies the group to run the job as. This key is only applicable when launchd is
+ running as root. If UserName is set and GroupName is not, the the group will be set to the default
+ group of the user.
+ '';
+ };
+
+ inetdCompatibility = mkOption {
+ default = null;
+ example = { Wait = true; };
+ description = ''
+ The presence of this key specifies that the daemon expects to be run as if it were launched from inetd.
+ '';
+ type = types.nullOr (types.submodule {
+ options = {
+ Wait = mkOption {
+ type = types.nullOr (types.either types.bool types.str);
+ default = null;
+ description = ''
+ This flag corresponds to the "wait" or "nowait" option of inetd. If true, then the listening
+ socket is passed via the standard in/out/error file descriptors. If false, then accept(2) is
+ called on behalf of the job, and the result is passed via the standard in/out/error descriptors.
+ '';
+ };
+ };
+ });
+ };
+
+ LimitLoadToHosts = mkOption {
+ type = types.nullOr (types.listOf types.str);
+ default = null;
+ description = ''
+ This configuration file only applies to the hosts listed with this key. Note: One should set kern.host-name kern.hostname
+ name in sysctl.conf(5) for this feature to work reliably.
+ '';
+ };
+
+ LimitLoadFromHosts = mkOption {
+ type = types.nullOr (types.listOf types.str);
+ default = null;
+ description = ''
+ This configuration file only applies to hosts NOT listed with this key. Note: One should set kern.host-name kern.hostname
+ name in sysctl.conf(5) for this feature to work reliably.
+ '';
+ };
+
+ LimitLoadToSessionType = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ description = ''
+ This configuration file only applies to sessions of the type specified. This key is used in concert
+ with the -S flag to launchctl.
+ '';
+ };
+
+ Program = mkOption {
+ type = types.nullOr types.path;
+ default = null;
+ description = ''
+ This key maps to the first argument of execvp(3). If this key is missing, then the first element of
+ the array of strings provided to the ProgramArguments will be used instead. This key is required in
+ the absence of the ProgramArguments key.
+ '';
+ };
+
+ ProgramArguments = mkOption {
+ type = types.nullOr (types.listOf types.str);
+ default = null;
+ description = ''
+ This key maps to the second argument of execvp(3). This key is required in the absence of the Program
+ key. Please note: many people are confused by this key. Please read execvp(3) very carefully!
+ '';
+ };
+
+ EnableGlobbing = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ This flag causes launchd to use the glob(3) mechanism to update the program arguments before invocation.
+ '';
+ };
+
+ EnableTransactions = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ This flag instructs launchd that the job promises to use vproc_transaction_begin(3) and
+ vproc_transaction_end(3) to track outstanding transactions that need to be reconciled before the
+ process can safely terminate. If no outstanding transactions are in progress, then launchd is free to
+ send the SIGKILL signal.
+ '';
+ };
+
+ OnDemand = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ This key was used in Mac OS X 10.4 to control whether a job was kept alive or not. The default was
+ true. This key has been deprecated and replaced in Mac OS X 10.5 and later with the more powerful
+ KeepAlive option.
+ '';
+ };
+
+ KeepAlive = mkOption {
+ type = types.nullOr (types.either types.bool (types.submodule {
+ options = {
+
+ SuccessfulExit = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ If true, the job will be restarted as long as the program exits and with an exit status of zero.
+ If false, the job will be restarted in the inverse condition. This key implies that "RunAtLoad"
+ is set to true, since the job needs to run at least once before we can get an exit status.
+ '';
+ };
+
+ NetworkState = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ If true, the job will be kept alive as long as the network is up, where up is defined as at least
+ one non-loopback interface being up and having IPv4 or IPv6 addresses assigned to them. If
+ false, the job will be kept alive in the inverse condition.
+ '';
+ };
+
+ PathState = mkOption {
+ type = types.nullOr (types.attrsOf types.bool);
+ default = null;
+ description = ''
+ Each key in this dictionary is a file-system path. If the value of the key is true, then the job
+ will be kept alive as long as the path exists. If false, the job will be kept alive in the
+ inverse condition. The intent of this feature is that two or more jobs may create semaphores in
+ the file-system namespace.
+ '';
+ };
+
+ OtherJobEnabled = mkOption {
+ type = types.nullOr (types.attrsOf types.bool);
+ default = null;
+ description = ''
+ Each key in this dictionary is the label of another job. If the value of the key is true, then
+ this job is kept alive as long as that other job is enabled. Otherwise, if the value is false,
+ then this job is kept alive as long as the other job is disabled. This feature should not be
+ considered a substitute for the use of IPC.
+ '';
+ };
+
+ # NOTE: this was missing in the original source at the time of writing
+ Crashed = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ If true, the the job will be restarted as long as it exited due to a signal which is typically
+ associated with a crash (SIGILL, SIGSEGV, etc.). If false, the job will be restarted in the inverse
+ condition.
+ '';
+ };
+
+ };
+ }));
+ default = null;
+ description = ''
+ This optional key is used to control whether your job is to be kept continuously running or to let
+ demand and conditions control the invocation. The default is false and therefore only demand will start
+ the job. The value may be set to true to unconditionally keep the job alive. Alternatively, a dictionary
+ of conditions may be specified to selectively control whether launchd keeps a job alive or not. If
+ multiple keys are provided, launchd ORs them, thus providing maximum flexibility to the job to refine
+ the logic and stall if necessary. If launchd finds no reason to restart the job, it falls back on
+ demand based invocation. Jobs that exit quickly and frequently when configured to be kept alive will
+ be throttled to conserve system resources.
+ '';
+ };
+
+ RunAtLoad = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ This optional key is used to control whether your job is launched once at the time the job is loaded.
+ The default is false.
+ '';
+ };
+
+ RootDirectory = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ description = ''
+ This optional key is used to specify a directory to chroot(2) to before running the job.
+ '';
+ };
+
+ WorkingDirectory = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ description = ''
+ This optional key is used to specify a directory to chdir(2) to before running the job.
+ '';
+ };
+
+ EnvironmentVariables = mkOption {
+ type = types.nullOr (types.attrsOf types.str);
+ default = null;
+ description = ''
+ This optional key is used to specify additional environment variables to be set before running the
+ job.
+ '';
+ };
+
+ Umask = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ This optional key specifies what value should be passed to umask(2) before running the job. Known bug:
+ Property lists don't support octal, so please convert the value to decimal.
+ '';
+ };
+
+ TimeOut = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The recommended idle time out (in seconds) to pass to the job. If no value is specified, a default time
+ out will be supplied by launchd for use by the job at check in time.
+ '';
+ };
+
+ ExitTimeOut = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The amount of time launchd waits before sending a SIGKILL signal. The default value is 20 seconds. The
+ value zero is interpreted as infinity.
+ '';
+ };
+
+ ThrottleInterval = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ This key lets one override the default throttling policy imposed on jobs by launchd. The value is in
+ seconds, and by default, jobs will not be spawned more than once every 10 seconds. The principle
+ behind this is that jobs should linger around just in case they are needed again in the near future.
+ This not only reduces the latency of responses, but it encourages developers to amortize the cost of
+ program invocation.
+ '';
+ };
+
+ InitGroups = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ This optional key specifies whether initgroups(3) should be called before running the job. The default
+ is true in 10.5 and false in 10.4. This key will be ignored if the UserName key is not set.
+ '';
+ };
+
+ WatchPaths = mkOption {
+ type = types.nullOr (types.listOf types.path);
+ default = null;
+ description = ''
+ This optional key causes the job to be started if any one of the listed paths are modified.
+ '';
+ };
+
+ QueueDirectories = mkOption {
+ type = types.nullOr (types.listOf types.str);
+ default = null;
+ description = ''
+ Much like the WatchPaths option, this key will watch the paths for modifications. The difference being
+ that the job will only be started if the path is a directory and the directory is not empty.
+ '';
+ };
+
+ StartOnMount = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ This optional key causes the job to be started every time a filesystem is mounted.
+ '';
+ };
+
+ StartInterval = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ This optional key causes the job to be started every N seconds. If the system is asleep, the job will
+ be started the next time the computer wakes up. If multiple intervals transpire before the computer is
+ woken, those events will be coalesced into one event upon wake from sleep.
+ '';
+ };
+
+ StartCalendarInterval = mkOption {
+ default = null;
+ example = {
+ Hour = 2;
+ Minute = 30;
+ };
+ description = ''
+ This optional key causes the job to be started every calendar interval as specified. Missing arguments
+ are considered to be wildcard. The semantics are much like crontab(5). Unlike cron which skips job
+ invocations when the computer is asleep, launchd will start the job the next time the computer wakes
+ up. If multiple intervals transpire before the computer is woken, those events will be coalesced into
+ one event upon wake from sleep.
+ '';
+ type = types.nullOr (types.listOf (types.submodule {
+ options = {
+ Minute = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The minute on which this job will be run.
+ '';
+ };
+
+ Hour = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The hour on which this job will be run.
+ '';
+ };
+
+ Day = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The day on which this job will be run.
+ '';
+ };
+
+ Weekday = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The weekday on which this job will be run (0 and 7 are Sunday).
+ '';
+ };
+
+ Month = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The month on which this job will be run.
+ '';
+ };
+ };
+ }));
+ };
+
+ StandardInPath = mkOption {
+ type = types.nullOr types.path;
+ default = null;
+ description = ''
+ This optional key specifies what file should be used for data being supplied to stdin when using
+ stdio(3).
+ '';
+ };
+
+ StandardOutPath = mkOption {
+ type = types.nullOr types.path;
+ default = null;
+ description = ''
+ This optional key specifies what file should be used for data being sent to stdout when using stdio(3).
+ '';
+ };
+
+ StandardErrorPath = mkOption {
+ type = types.nullOr types.path;
+ default = null;
+ description = ''
+ This optional key specifies what file should be used for data being sent to stderr when using stdio(3).
+ '';
+ };
+
+ Debug = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ This optional key specifies that launchd should adjust its log mask temporarily to LOG_DEBUG while
+ dealing with this job.
+ '';
+ };
+
+ WaitForDebugger = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ This optional key specifies that launchd should instruct the kernel to have the job wait for a debugger
+ to attach before any code in the job is executed.
+ '';
+ };
+
+ SoftResourceLimits = mkOption {
+ default = null;
+ description = ''
+ Resource limits to be imposed on the job. These adjust variables set with setrlimit(2). The following
+ keys apply:
+ '';
+ type = types.nullOr (types.submodule {
+ options = {
+ Core = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The largest size (in bytes) core file that may be created.
+ '';
+ };
+
+ CPU = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum amount of cpu time (in seconds) to be used by each process.
+ '';
+ };
+
+ Data = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum size (in bytes) of the data segment for a process; this defines how far a program may
+ extend its break with the sbrk(2) system call.
+ '';
+ };
+
+ FileSize = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The largest size (in bytes) file that may be created.
+ '';
+ };
+
+ MemoryLock = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum size (in bytes) which a process may lock into memory using the mlock(2) function.
+ '';
+ };
+
+ NumberOfFiles = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum number of open files for this process. Setting this value in a system wide daemon
+ will set the sysctl(3) kern.maxfiles (SoftResourceLimits) or kern.maxfilesperproc (HardResource-Limits) (HardResourceLimits)
+ Limits) value in addition to the setrlimit(2) values.
+ '';
+ };
+
+ NumberOfProcesses = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum number of simultaneous processes for this user id. Setting this value in a system
+ wide daemon will set the sysctl(3) kern.maxproc (SoftResourceLimits) or kern.maxprocperuid
+ (HardResourceLimits) value in addition to the setrlimit(2) values.
+ '';
+ };
+
+ ResidentSetSize = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum size (in bytes) to which a process's resident set size may grow. This imposes a
+ limit on the amount of physical memory to be given to a process; if memory is tight, the system
+ will prefer to take memory from processes that are exceeding their declared resident set size.
+ '';
+ };
+
+ Stack = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum size (in bytes) of the stack segment for a process; this defines how far a program's
+ stack segment may be extended. Stack extension is performed automatically by the system.
+ '';
+ };
+ };
+ });
+ };
+
+ HardResourceLimits = mkOption {
+ default = null;
+ example = { NumberOfFiles = 4096; };
+ description = ''
+ Resource limits to be imposed on the job. These adjust variables set with setrlimit(2). The following
+ keys apply:
+ '';
+ type = types.nullOr (types.submodule {
+ options = {
+ Core = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The largest size (in bytes) core file that may be created.
+ '';
+ };
+
+ CPU = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum amount of cpu time (in seconds) to be used by each process.
+ '';
+ };
+
+ Data = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum size (in bytes) of the data segment for a process; this defines how far a program may
+ extend its break with the sbrk(2) system call.
+ '';
+ };
+
+ FileSize = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The largest size (in bytes) file that may be created.
+ '';
+ };
+
+ MemoryLock = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum size (in bytes) which a process may lock into memory using the mlock(2) function.
+ '';
+ };
+
+ NumberOfFiles = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum number of open files for this process. Setting this value in a system wide daemon
+ will set the sysctl(3) kern.maxfiles (SoftResourceLimits) or kern.maxfilesperproc (HardResource-Limits) (HardResourceLimits)
+ Limits) value in addition to the setrlimit(2) values.
+ '';
+ };
+
+ NumberOfProcesses = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum number of simultaneous processes for this user id. Setting this value in a system
+ wide daemon will set the sysctl(3) kern.maxproc (SoftResourceLimits) or kern.maxprocperuid
+ (HardResourceLimits) value in addition to the setrlimit(2) values.
+ '';
+ };
+
+ ResidentSetSize = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum size (in bytes) to which a process's resident set size may grow. This imposes a
+ limit on the amount of physical memory to be given to a process; if memory is tight, the system
+ will prefer to take memory from processes that are exceeding their declared resident set size.
+ '';
+ };
+
+ Stack = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ The maximum size (in bytes) of the stack segment for a process; this defines how far a program's
+ stack segment may be extended. Stack extension is performed automatically by the system.
+ '';
+ };
+ };
+ });
+ };
+
+ Nice = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ This optional key specifies what nice(3) value should be applied to the daemon.
+ '';
+ };
+
+ ProcessType = mkOption {
+ type = types.nullOr
+ (types.enum [ "Background" "Standard" "Adaptive" "Interactive" ]);
+ default = null;
+ example = "Background";
+ description = ''
+ This optional key describes, at a high level, the intended purpose of the job. The system will apply
+ resource limits based on what kind of job it is. If left unspecified, the system will apply light
+ resource limits to the job, throttling its CPU usage and I/O bandwidth. The following are valid values:
+
+ Background
+ Background jobs are generally processes that do work that was not directly requested by the user.
+ The resource limits applied to Background jobs are intended to prevent them from disrupting the
+ user experience.
+
+ Standard
+ Standard jobs are equivalent to no ProcessType being set.
+
+ Adaptive
+ Adaptive jobs move between the Background and Interactive classifications based on activity over
+ XPC connections. See xpc_transaction_begin(3) for details.
+
+ Interactive
+ Interactive jobs run with the same resource limitations as apps, that is to say, none. Interactive
+ jobs are critical to maintaining a responsive user experience, and this key should only be
+ used if an app's ability to be responsive depends on it, and cannot be made Adaptive.
+ '';
+ };
+
+ AbandonProcessGroup = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ When a job dies, launchd kills any remaining processes with the same process group ID as the job. Setting
+ this key to true disables that behavior.
+ '';
+ };
+
+ LowPriorityIO = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ This optional key specifies whether the kernel should consider this daemon to be low priority when
+ doing file system I/O.
+ '';
+ };
+
+ LaunchOnlyOnce = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ This optional key specifies whether the job can only be run once and only once. In other words, if the
+ job cannot be safely respawned without a full machine reboot, then set this key to be true.
+ '';
+ };
+
+ MachServices = mkOption {
+ default = null;
+ example = { ResetAtClose = true; };
+ description = ''
+ This optional key is used to specify Mach services to be registered with the Mach bootstrap sub-system.
+ Each key in this dictionary should be the name of service to be advertised. The value of the key must
+ be a boolean and set to true. Alternatively, a dictionary can be used instead of a simple true value.
+
+ Finally, for the job itself, the values will be replaced with Mach ports at the time of check-in with
+ launchd.
+ '';
+ type = types.nullOr (types.submodule {
+ options = {
+ ResetAtClose = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ If this boolean is false, the port is recycled, thus leaving clients to remain oblivious to the
+ demand nature of job. If the value is set to true, clients receive port death notifications when
+ the job lets go of the receive right. The port will be recreated atomically with respect to boot-strap_look_up() bootstrap_look_up()
+ strap_look_up() calls, so that clients can trust that after receiving a port death notification,
+ the new port will have already been recreated. Setting the value to true should be done with
+ care. Not all clients may be able to handle this behavior. The default value is false.
+ '';
+ };
+
+ HideUntilCheckIn = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Reserve the name in the namespace, but cause bootstrap_look_up() to fail until the job has
+ checked in with launchd.
+ '';
+ };
+ };
+ });
+ };
+
+ Sockets = mkOption {
+ default = null;
+ description = ''
+ This optional key is used to specify launch on demand sockets that can be used to let launchd know when
+ to run the job. The job must check-in to get a copy of the file descriptors using APIs outlined in
+ launch(3). The keys of the top level Sockets dictionary can be anything. They are meant for the application
+ developer to use to differentiate which descriptors correspond to which application level protocols
+ (e.g. http vs. ftp vs. DNS...). At check-in time, the value of each Sockets dictionary key will
+ be an array of descriptors. Daemon/Agent writers should consider all descriptors of a given key to be
+ to be effectively equivalent, even though each file descriptor likely represents a different networking
+ protocol which conforms to the criteria specified in the job configuration file.
+
+ The parameters below are used as inputs to call getaddrinfo(3).
+ '';
+ type = types.nullOr (types.attrsOf (types.submodule {
+ options = {
+ SockType = mkOption {
+ type = types.nullOr (types.enum [ "stream" "dgram" "seqpacket" ]);
+ default = null;
+ description = ''
+ This optional key tells launchctl what type of socket to create. The default is "stream" and
+ other valid values for this key are "dgram" and "seqpacket" respectively.
+ '';
+ };
+
+ SockPassive = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ This optional key specifies whether listen(2) or connect(2) should be called on the created file
+ descriptor. The default is true ("to listen").
+ '';
+ };
+
+ SockNodeName = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ description = ''
+ This optional key specifies the node to connect(2) or bind(2) to.
+ '';
+ };
+
+ SockServiceName = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ description = ''
+ This optional key specifies the service on the node to connect(2) or bind(2) to.
+ '';
+ };
+
+ SockFamily = mkOption {
+ type = types.nullOr (types.enum [ "IPv4" "IPv6" ]);
+ default = null;
+ description = ''
+ This optional key can be used to specifically request that "IPv4" or "IPv6" socket(s) be created.
+ '';
+ };
+
+ SockProtocol = mkOption {
+ type = types.nullOr (types.enum [ "TCP" ]);
+ default = null;
+ description = ''
+ This optional key specifies the protocol to be passed to socket(2). The only value understood by
+ this key at the moment is "TCP".
+ '';
+ };
+
+ SockPathName = mkOption {
+ type = types.nullOr types.path;
+ default = null;
+ description = ''
+ This optional key implies SockFamily is set to "Unix". It specifies the path to connect(2) or
+ bind(2) to.
+ '';
+ };
+
+ SecureSocketWithKey = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ description = ''
+ This optional key is a variant of SockPathName. Instead of binding to a known path, a securely
+ generated socket is created and the path is assigned to the environment variable that is inherited
+ by all jobs spawned by launchd.
+ '';
+ };
+
+ SockPathMode = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ description = ''
+ This optional key specifies the mode of the socket. Known bug: Property lists don't support
+ octal, so please convert the value to decimal.
+ '';
+ };
+
+ Bonjour = mkOption {
+ type =
+ types.nullOr (types.either types.bool (types.listOf types.str));
+ default = null;
+ description = ''
+ This optional key can be used to request that the service be registered with the
+ mDNSResponder(8). If the value is boolean, the service name is inferred from the SockService-Name. SockServiceName.
+ Name.
+ '';
+ };
+
+ MulticastGroup = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ description = ''
+ This optional key can be used to request that the datagram socket join a multicast group. If the
+ value is a hostname, then getaddrinfo(3) will be used to join the correct multicast address for a
+ given socket family. If an explicit IPv4 or IPv6 address is given, it is required that the Sock-Family SockFamily
+ Family family also be set, otherwise the results are undefined.
+ '';
+ };
+ };
+ }));
+ };
+ };
+
+ config = { };
+}
diff --git a/third_party/home-manager/modules/lib-bash/activation-init.sh b/third_party/home-manager/modules/lib-bash/activation-init.sh
index eb2dc1ec97..aadc88dd35 100755
--- a/third_party/home-manager/modules/lib-bash/activation-init.sh
+++ b/third_party/home-manager/modules/lib-bash/activation-init.sh
@@ -5,6 +5,7 @@ function setupVars() {
local profilesPath="$nixStateDir/profiles/per-user/$USER"
local gcPath="$nixStateDir/gcroots/per-user/$USER"
+ declare -gr nixProfilePath="$profilesPath/profile"
declare -gr genProfilePath="$profilesPath/home-manager"
declare -gr newGenPath="@GENERATION_DIR@";
declare -gr newGenGcPath="$gcPath/current-home"
@@ -27,17 +28,12 @@ function setupVars() {
declare -gr oldGenPath
fi
- $VERBOSE_ECHO "Sanity checking oldGenNum and oldGenPath"
+ $VERBOSE_RUN _i "Sanity checking oldGenNum and oldGenPath"
if [[ -v oldGenNum && ! -v oldGenPath
|| ! -v oldGenNum && -v oldGenPath ]]; then
- errorEcho "Invalid profile number and current profile values! These"
- errorEcho "must be either both empty or both set but are now set to"
- errorEcho " '${oldGenNum:-}' and '${oldGenPath:-}'"
- errorEcho "If you don't mind losing previous profile generations then"
- errorEcho "the easiest solution is probably to run"
- errorEcho " rm $profilesPath/home-manager*"
- errorEcho " rm $gcPath/current-home"
- errorEcho "and trying home-manager switch again. Good luck!"
+ _i $'The previous generation number and path are in conflict! These\nmust be either both empty or both set but are now set to\n\n \'%s\' and \'%s\'\n\nIf you don\'t mind losing previous profile generations then\nthe easiest solution is probably to run\n\n rm %s/home-manager*\n rm %s/current-home\n\nand trying home-manager switch again. Good luck!' \
+ "${oldGenNum:-}" "${oldGenPath:-}" \
+ "$profilesPath" "$gcPath"
exit 1
fi
}
@@ -45,34 +41,35 @@ function setupVars() {
if [[ -v VERBOSE ]]; then
export VERBOSE_ECHO=echo
export VERBOSE_ARG="--verbose"
+ export VERBOSE_RUN=""
else
export VERBOSE_ECHO=true
export VERBOSE_ARG=""
+ export VERBOSE_RUN=true
fi
-echo "Starting home manager activation"
+_i "Starting Home Manager activation"
# Verify that we can connect to the Nix store and/or daemon. This will
# also create the necessary directories in profiles and gcroots.
-$VERBOSE_ECHO "Sanity checking Nix"
+$VERBOSE_RUN _i "Sanity checking Nix"
nix-build --expr '{}' --no-out-link
setupVars
if [[ -v DRY_RUN ]] ; then
- echo "This is a dry run"
+ _i "This is a dry run"
export DRY_RUN_CMD=echo
else
- $VERBOSE_ECHO "This is a live run"
+ $VERBOSE_RUN _i "This is a live run"
export DRY_RUN_CMD=""
fi
if [[ -v VERBOSE ]]; then
- echo -n "Using Nix version: "
- nix-env --version
+ _i 'Using Nix version: %s' "$(nix-env --version)"
fi
-$VERBOSE_ECHO "Activation variables:"
+$VERBOSE_RUN _i "Activation variables:"
if [[ -v oldGenNum ]] ; then
$VERBOSE_ECHO " oldGenNum=$oldGenNum"
$VERBOSE_ECHO " oldGenPath=$oldGenPath"
diff --git a/third_party/home-manager/modules/lib-bash/color-echo.sh b/third_party/home-manager/modules/lib-bash/color-echo.sh
deleted file mode 100644
index ac36cedc6e..0000000000
--- a/third_party/home-manager/modules/lib-bash/color-echo.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-# The check for terminal output and color support is heavily inspired
-# by https://unix.stackexchange.com/a/10065.
-#
-# Allow opt out by respecting the `NO_COLOR` environment variable.
-
-function setupColors() {
- normalColor=""
- errorColor=""
- warnColor=""
- noteColor=""
-
- # Enable colors for terminals, and allow opting out.
- if [[ ! -v NO_COLOR && -t 1 ]]; then
- # See if it supports colors.
- local ncolors
- ncolors=$(tput colors)
-
- if [[ -n "$ncolors" && "$ncolors" -ge 8 ]]; then
- normalColor="$(tput sgr0)"
- errorColor="$(tput bold)$(tput setaf 1)"
- warnColor="$(tput setaf 3)"
- noteColor="$(tput bold)$(tput setaf 6)"
- fi
- fi
-}
-
-setupColors
-
-function errorEcho() {
- echo "${errorColor}$*${normalColor}"
-}
-
-function warnEcho() {
- echo "${warnColor}$*${normalColor}"
-}
-
-function noteEcho() {
- echo "${noteColor}$*${normalColor}"
-}
diff --git a/third_party/home-manager/modules/lib/booleans.nix b/third_party/home-manager/modules/lib/booleans.nix
new file mode 100644
index 0000000000..f6c2af586e
--- /dev/null
+++ b/third_party/home-manager/modules/lib/booleans.nix
@@ -0,0 +1,5 @@
+{ lib }: {
+ # Converts a boolean to a yes/no string. This is used in lots of
+ # configuration formats.
+ yesNo = value: if value then "yes" else "no";
+}
diff --git a/third_party/home-manager/modules/lib/dag.nix b/third_party/home-manager/modules/lib/dag.nix
index 0c0e33ee76..50044a0b73 100644
--- a/third_party/home-manager/modules/lib/dag.nix
+++ b/third_party/home-manager/modules/lib/dag.nix
@@ -4,39 +4,38 @@
#
# - not specific to strings, i.e., any payload is OK,
#
-# - the addition of the function `dagEntryBefore` indicating a
-# "wanted by" relationship.
+# - the addition of the function `entryBefore` indicating a "wanted
+# by" relationship.
{ lib }:
-let inherit (lib) all any filterAttrs mapAttrs mapAttrsToList toposort;
-in rec {
-
- emptyDag = { };
+let inherit (lib) all filterAttrs hm mapAttrs toposort;
+in {
+ empty = { };
+ isEntry = e: e ? data && e ? after && e ? before;
isDag = dag:
- let isEntry = e: (e ? data) && (e ? after) && (e ? before);
- in builtins.isAttrs dag && all (x: x) (mapAttrsToList (n: isEntry) dag);
+ builtins.isAttrs dag && all hm.dag.isEntry (builtins.attrValues dag);
- # Takes an attribute set containing entries built by
- # dagEntryAnywhere, dagEntryAfter, and dagEntryBefore to a
- # topologically sorted list of entries.
+ # Takes an attribute set containing entries built by entryAnywhere,
+ # entryAfter, and entryBefore to a topologically sorted list of
+ # entries.
#
# Internally this function uses the `toposort` function in
# `` and its value is accordingly.
#
# Specifically, the result on success is
#
- # { result = [{name = ?; data = ?;} …] }
+ # { result = [ { name = ?; data = ?; } … ] }
#
# For example
#
- # nix-repl> dagTopoSort {
- # a = dagEntryAnywhere "1";
- # b = dagEntryAfter ["a" "c"] "2";
- # c = dagEntryBefore ["d"] "3";
- # d = dagEntryBefore ["e"] "4";
- # e = dagEntryAnywhere "5";
+ # nix-repl> topoSort {
+ # a = entryAnywhere "1";
+ # b = entryAfter [ "a" "c" ] "2";
+ # c = entryBefore [ "d" ] "3";
+ # d = entryBefore [ "e" ] "4";
+ # e = entryAnywhere "5";
# } == {
# result = [
# { data = "1"; name = "a"; }
@@ -51,66 +50,54 @@ in rec {
# And the result on error is
#
# {
- # cycle = [ {after = ?; name = ?; data = ?} … ];
- # loops = [ {after = ?; name = ?; data = ?} … ];
+ # cycle = [ { after = ?; name = ?; data = ? } … ];
+ # loops = [ { after = ?; name = ?; data = ? } … ];
# }
#
# For example
#
- # nix-repl> dagTopoSort {
- # a = dagEntryAnywhere "1";
- # b = dagEntryAfter ["a" "c"] "2";
- # c = dagEntryAfter ["d"] "3";
- # d = dagEntryAfter ["b"] "4";
- # e = dagEntryAnywhere "5";
+ # nix-repl> topoSort {
+ # a = entryAnywhere "1";
+ # b = entryAfter [ "a" "c" ] "2";
+ # c = entryAfter [ "d" ] "3";
+ # d = entryAfter [ "b" ] "4";
+ # e = entryAnywhere "5";
# } == {
# cycle = [
- # { after = ["a" "c"]; data = "2"; name = "b"; }
- # { after = ["d"]; data = "3"; name = "c"; }
- # { after = ["b"]; data = "4"; name = "d"; }
+ # { after = [ "a" "c" ]; data = "2"; name = "b"; }
+ # { after = [ "d" ]; data = "3"; name = "c"; }
+ # { after = [ "b" ]; data = "4"; name = "d"; }
# ];
# loops = [
- # { after = ["a" "c"]; data = "2"; name = "b"; }
+ # { after = [ "a" "c" ]; data = "2"; name = "b"; }
# ];
- # } == {}
+ # }
# true
- dagTopoSort = dag:
+ topoSort = dag:
let
dagBefore = dag: name:
- mapAttrsToList (n: v: n)
- (filterAttrs (n: v: any (a: a == name) v.before) dag);
+ builtins.attrNames
+ (filterAttrs (n: v: builtins.elem name v.before) dag);
normalizedDag = mapAttrs (n: v: {
name = n;
data = v.data;
after = v.after ++ dagBefore dag n;
}) dag;
- before = a: b: any (c: a.name == c) b.after;
- sorted = toposort before (mapAttrsToList (n: v: v) normalizedDag);
+ before = a: b: builtins.elem a.name b.after;
+ sorted = toposort before (builtins.attrValues normalizedDag);
in if sorted ? result then {
result = map (v: { inherit (v) name data; }) sorted.result;
} else
sorted;
# Applies a function to each element of the given DAG.
- dagMap = f: dag: mapAttrs (n: v: v // { data = f n v.data; }) dag;
+ map = f: mapAttrs (n: v: v // { data = f n v.data; });
+
+ entryBetween = before: after: data: { inherit data before after; };
# Create a DAG entry with no particular dependency information.
- dagEntryAnywhere = data: {
- inherit data;
- before = [ ];
- after = [ ];
- };
-
- dagEntryBetween = before: after: data: { inherit data before after; };
-
- dagEntryAfter = after: data: {
- inherit data after;
- before = [ ];
- };
-
- dagEntryBefore = before: data: {
- inherit data before;
- after = [ ];
- };
+ entryAnywhere = hm.dag.entryBetween [ ] [ ];
+ entryAfter = hm.dag.entryBetween [ ];
+ entryBefore = before: hm.dag.entryBetween before [ ];
}
diff --git a/third_party/home-manager/modules/lib/default.nix b/third_party/home-manager/modules/lib/default.nix
index c087c81097..59f707c4ea 100644
--- a/third_party/home-manager/modules/lib/default.nix
+++ b/third_party/home-manager/modules/lib/default.nix
@@ -1,27 +1,15 @@
{ lib }:
rec {
- dag =
- let
- d = import ./dag.nix { inherit lib; };
- in
- {
- empty = d.emptyDag;
- isDag = d.isDag;
- topoSort = d.dagTopoSort;
- map = d.dagMap;
- entryAnywhere = d.dagEntryAnywhere;
- entryBetween = d.dagEntryBetween;
- entryAfter = d.dagEntryAfter;
- entryBefore = d.dagEntryBefore;
- };
+ dag = import ./dag.nix { inherit lib; };
assertions = import ./assertions.nix { inherit lib; };
+ booleans = import ./booleans.nix { inherit lib; };
gvariant = import ./gvariant.nix { inherit lib; };
maintainers = import ./maintainers.nix;
strings = import ./strings.nix { inherit lib; };
- types = import ./types.nix { inherit dag gvariant lib; };
+ types = import ./types.nix { inherit gvariant lib; };
shell = import ./shell.nix { inherit lib; };
zsh = import ./zsh.nix { inherit lib; };
diff --git a/third_party/home-manager/modules/lib/file-type.nix b/third_party/home-manager/modules/lib/file-type.nix
index 0b30cb1b69..cc23292ba0 100644
--- a/third_party/home-manager/modules/lib/file-type.nix
+++ b/third_party/home-manager/modules/lib/file-type.nix
@@ -33,7 +33,7 @@ in
type = types.nullOr types.lines;
description = ''
Text of the file. If this option is null then
- home.file.<name?>.source
+
must be set.
'';
};
@@ -42,7 +42,7 @@ in
type = types.path;
description = ''
Path of the source file or directory. If
- home.file.<name?>.text
+
is non-null then this option will automatically point to a file
containing that text.
'';
diff --git a/third_party/home-manager/modules/lib/gvariant.nix b/third_party/home-manager/modules/lib/gvariant.nix
index 7c4ca5b08c..bbb97c64ab 100644
--- a/third_party/home-manager/modules/lib/gvariant.nix
+++ b/third_party/home-manager/modules/lib/gvariant.nix
@@ -20,6 +20,7 @@ let
arrayOf = t: "a${t}";
maybeOf = t: "m${t}";
tupleOf = ts: "(${concatStrings ts})";
+ dictionaryEntryOf = ts: "{${concatStrings ts}}";
string = "s";
boolean = "b";
uchar = "y";
@@ -30,6 +31,7 @@ let
int64 = "x";
uint64 = "t";
double = "d";
+ variant = "v";
};
# Returns the GVariant type of a given Nix value. If no type can be
@@ -74,13 +76,13 @@ in rec {
isGVariant = v: v._type or "" == "gvariant";
isArray = hasPrefix "a";
+ isDictionaryEntry = hasPrefix "{";
isMaybe = hasPrefix "m";
isTuple = hasPrefix "(";
# Returns the GVariant value that most closely matches the given Nix
# value. If no GVariant value can be found then `null` is returned.
- #
- # No support for dictionaries, maybe types, or variants.
+
mkValue = v:
if builtins.isBool v then
mkBoolean v
@@ -105,6 +107,21 @@ in rec {
mkEmptyArray = elemType: mkArray elemType [ ];
+ mkVariant = elem:
+ let gvarElem = mkValue elem;
+ in mkPrimitive type.variant gvarElem // {
+ __toString = self: "@${self.type} <${toString self.value}>";
+ };
+
+ mkDictionaryEntry = elems:
+ let
+ gvarElems = map mkValue elems;
+ dictionaryType = type.dictionaryEntryOf (map (e: e.type) gvarElems);
+ in mkPrimitive dictionaryType gvarElems // {
+ __toString = self:
+ "@${self.type} {${concatMapStringsSep "," toString self.value}}";
+ };
+
mkNothing = elemType: mkMaybe elemType null;
mkJust = elem: let gvarElem = mkValue elem; in mkMaybe gvarElem.type gvarElem;
diff --git a/third_party/home-manager/modules/lib/maintainers.nix b/third_party/home-manager/modules/lib/maintainers.nix
index 0a88c66457..7aa1842af1 100644
--- a/third_party/home-manager/modules/lib/maintainers.nix
+++ b/third_party/home-manager/modules/lib/maintainers.nix
@@ -7,6 +7,58 @@
# [1] https://github.com/NixOS/nixpkgs/blob/fca0d6e093c82b31103dc0dacc48da2a9b06e24b/maintainers/maintainer-list.nix#LC1
{
+ amesgen = {
+ name = "amesgen";
+ email = "amesgen@amesgen.de";
+ github = "amesgen";
+ githubId = 15369874;
+ };
+ austreelis = {
+ email = "github@accounts.austreelis.net";
+ github = "Austreelis";
+ githubId = 56743515;
+ name = "Morgane Austreelis";
+ };
+ blmhemu = {
+ name = "blmhemu";
+ email = "19410501+blmhemu@users.noreply.github.com";
+ github = "blmhemu";
+ githubId = 19410501;
+ };
+ bertof = {
+ name = "bertof";
+ email = "berto.f@protonmail.com";
+ github = "bertof";
+ githubId = 9915675;
+ };
+ CarlosLoboxyz = {
+ name = "Carlos Lobo";
+ email = "86011416+CarlosLoboxyz@users.noreply.github.com";
+ github = "CarlosLoboxyz";
+ githubId = 86011416;
+ };
+ d-dervishi = {
+ email = "david.dervishi@epfl.ch";
+ github = "d-dervishi";
+ githubId = 61125355;
+ name = "David Dervishi";
+ keys = [{
+ longKeyId = "rsa4096/0xB1C012F0E7697195";
+ fingerprint = "4C92 E3B0 21B5 5562 A1E0 CE3D B1C0 12F0 E769 7195";
+ }];
+ };
+ dwagenk = {
+ email = "dwagenk@mailbox.org";
+ github = "dwagenk";
+ githubId = 32838899;
+ name = "Daniel Wagenknecht";
+ };
+ jkarlson = {
+ email = "jekarlson@gmail.com";
+ github = "jkarlson";
+ githubId = 1204734;
+ name = "Emil Karlson";
+ };
justinlovinger = {
name = "Justin Lovinger";
email = "git@justinlovinger.com";
@@ -31,12 +83,24 @@
github = "chisui";
githubId = 4526429;
};
+ foo-dogsquared = {
+ name = "Gabriel Arazas";
+ email = "foo.dogsquared@gmail.com";
+ github = "foo-dogsquared";
+ githubId = 34962634;
+ };
olmokramer = {
name = "Olmo Kramer";
email = "olmokramer@users.noreply.github.com";
github = "olmokramer";
githubId = 3612514;
};
+ iosmanthus = {
+ name = "iosmanthus";
+ email = "myosmanthustree@gmail.com";
+ github = "iosmanthus";
+ githubId = 16307070;
+ };
kalhauge = {
name = "Christian Gram Kalhauge";
email = "kalhauge@users.noreply.github.com";
@@ -53,18 +117,42 @@
fingerprint = "2BE3 BAFD 793E A349 ED1F F00F 04D0 CEAF 916A 9A40";
}];
};
+ katexochen = {
+ name = "Paul Meyer";
+ email = "49727155+katexochen@users.noreply.github.com";
+ github = "katexochen";
+ githubId = 49727155;
+ };
kubukoz = {
name = "Jakub Kozłowski";
email = "kubukoz@users.noreply.github.com";
github = "kubukoz";
githubId = 894884;
};
+ loicreynier = {
+ name = "Loïc Reynier";
+ email = "loic@loireynier.fr";
+ github = "loicreynier";
+ githubId = 88983487;
+ };
matrss = {
name = "Matthias Riße";
email = "matrss@users.noreply.github.com";
github = "matrss";
githubId = 9308656;
};
+ mforster = {
+ name = "Michael Forster";
+ email = "email@michael-forster.de";
+ github = "MForster";
+ githubId = 4067975;
+ };
+ mifom = {
+ name = "mifom";
+ email = "mifom@users.noreply.github.com";
+ github = "mifom";
+ githubId = 23462908;
+ };
seylerius = {
email = "sable@seyleri.us";
name = "Sable Seyler";
@@ -81,6 +169,24 @@
githubId = 46252070;
name = "Sara Johnsson";
};
+ florpe = {
+ email = "jens.krewald@gmail.com";
+ github = "florpe";
+ githubId = 53856373;
+ name = "Jens Krewald";
+ };
+ GaetanLepage = {
+ email = "gaetan@glepage.com";
+ github = "GaetanLepage";
+ githubId = 33058747;
+ name = "Gaetan Lepage";
+ };
+ maximsmol = {
+ email = "maximsmol@gmail.com";
+ github = "maximsmol";
+ githubId = 1472826;
+ name = "Max Smolin";
+ };
msfjarvis = {
email = "me@msfjarvis.dev";
github = "msfjarvis";
@@ -127,17 +233,131 @@
githubId = 1553581;
name = "Josh Robson Chase";
};
+ jwygoda = {
+ name = "Jarosław Wygoda";
+ email = "jaroslaw@wygoda.me";
+ github = "jwygoda";
+ githubId = 20658981;
+ };
hawkw = {
name = "Eliza Weisman";
email = "eliza@elizas.website";
github = "hawkw";
githubId = 2796466;
};
-
pamplemousse = {
name = "Xavier Maso";
email = "xav.maso@gmail.com";
github = "pamplemousse";
githubId = 2647236;
};
+ onny = {
+ name = "onny";
+ email = "onny@project-insanity.org";
+ github = "onny";
+ githubId = 757752;
+ };
+ aheaume = {
+ name = "aheaume";
+ email = "aheaume@users.noreply.github.com";
+ github = "aheaume";
+ githubId = 13830042;
+ };
+ t4ccer = {
+ name = "t4ccer";
+ email = "t4ccer@users.noreply.github.com";
+ github = "t4ccer";
+ githubId = 64430288;
+ };
+ nurelin = {
+ name = "nurelin";
+ email = "nurelin@users.noreply.github.com";
+ github = "nurelin";
+ githubId = 5276274;
+ };
+ pltanton = {
+ name = "pltanton";
+ email = "plotnikovanton@gmail.com";
+ github = "pltanton";
+ githubId = 4561823;
+ };
+ Philipp-M = {
+ email = "philipp@mildenberger.me";
+ github = "Philipp-M";
+ githubId = 9267430;
+ name = "Philipp Mildenberger";
+ };
+ pinage404 = {
+ name = "pinage404";
+ email = "pinage404@gmail.com";
+ github = "pinage404";
+ githubId = 6325757;
+ };
+ podocarp = {
+ name = "Jia Xiaodong";
+ email = "xdjiaxd@gmail.com";
+ github = "podocarp";
+ githubId = 10473184;
+ };
+ mainrs = {
+ name = "mainrs";
+ email = "5113257+mainrs@users.noreply.github.com";
+ github = "mainrs";
+ githubId = 5113257;
+ };
+ kmaasrud = {
+ name = "Knut Magnus Aasrud";
+ email = "km@aasrud.com";
+ github = "kmaasrud";
+ githubId = 54394333;
+ };
+ sebtm = {
+ name = "Sebastian Sellmeier";
+ email = "sebtm@users.noreply.github.com";
+ github = "sebtm";
+ githubId = 17243347;
+ };
+ rosuavio = {
+ name = "Rosario Pulella";
+ email = "RosarioPulella@gmail.com";
+ github = "Rosuavio";
+ githubId = 7164552;
+ };
+ rszamszur = {
+ name = "Radosław Szamszur";
+ email = "radoslawszamszur@gmail.com";
+ github = "rszamszur";
+ githubId = 10353018;
+ };
+ rcerc = {
+ name = "rcerc";
+ email = "88944439+rcerc@users.noreply.github.com";
+ github = "rcerc";
+ githubId = 88944439;
+ keys = [{
+ longkeyid = "ed25519/0x3F98EC7EC2B87ED1";
+ fingerprint = "D5D6 FD1F 0D9A 3284 FB9B C26D 3F98 EC7E C2B8 7ED1";
+ }];
+ };
+ mtoohey = {
+ name = "Matthew Toohey";
+ email = "contact@mtoohey.com";
+ github = "mtoohey31";
+ githubId = 36740602;
+ };
+ lukasngl = {
+ name = "Lukas Nagel";
+ email = "69244516+lukasngl@users.noreply.github.com";
+ github = "lukasngl";
+ githubId = 69244516;
+ };
+ toastal = {
+ email = "toastal+nix@posteo.net";
+ matrix = "@toastal:matrix.org";
+ github = "toastal";
+ githubId = 561087;
+ name = "toastal";
+ keys =
+ [{ fingerprint = "7944 74B7 D236 DAB9 C9EF E7F9 5CCE 6F14 66D4 7C9E"; }];
+ };
}
diff --git a/third_party/home-manager/modules/lib/types-dag.nix b/third_party/home-manager/modules/lib/types-dag.nix
index 68a5826fec..46694f2ae5 100644
--- a/third_party/home-manager/modules/lib/types-dag.nix
+++ b/third_party/home-manager/modules/lib/types-dag.nix
@@ -1,24 +1,41 @@
-{ dag, lib }:
+{ lib }:
let
inherit (lib)
- concatStringsSep defaultFunctor fixedWidthNumber imap1 isAttrs isList length
- listToAttrs mapAttrs mkIf mkOption mkOptionType nameValuePair stringLength
- types warn;
+ concatStringsSep defaultFunctor fixedWidthNumber hm imap1 isAttrs isList
+ length listToAttrs mapAttrs mkIf mkOrder mkOption mkOptionType nameValuePair
+ stringLength types warn;
- isDagEntry = e: isAttrs e && (e ? data) && (e ? after) && (e ? before);
-
- dagContentType = elemType:
- types.submodule ({ name, ... }: {
- options = {
- data = mkOption { type = elemType; };
- after = mkOption { type = with types; uniq (listOf str); };
- before = mkOption { type = with types; uniq (listOf str); };
- };
- config = mkIf (elemType.name == "submodule") {
- data._module.args.dagName = name;
- };
- });
+ dagEntryOf = elemType:
+ let
+ submoduleType = types.submodule ({ name, ... }: {
+ options = {
+ data = mkOption { type = elemType; };
+ after = mkOption { type = with types; listOf str; };
+ before = mkOption { type = with types; listOf str; };
+ };
+ config = mkIf (elemType.name == "submodule") {
+ data._module.args.dagName = name;
+ };
+ });
+ maybeConvert = def:
+ if hm.dag.isEntry def.value then
+ def.value
+ else
+ hm.dag.entryAnywhere (if def ? priority then
+ mkOrder def.priority def.value
+ else
+ def.value);
+ in mkOptionType {
+ name = "dagEntryOf";
+ description = "DAG entry of ${elemType.description}";
+ # leave the checking to the submodule type
+ merge = loc: defs:
+ submoduleType.merge loc (map (def: {
+ inherit (def) file;
+ value = maybeConvert def;
+ }) defs);
+ };
in rec {
# A directed acyclic graph of some inner type.
@@ -29,21 +46,16 @@ in rec {
# "actual" attribute name a new submodule argument is provided with
# the name `dagName`.
dagOf = elemType:
- let
- convertAllToDags = let
- maybeConvert = n: v: if isDagEntry v then v else dag.entryAnywhere v;
- in map (def: def // { value = mapAttrs maybeConvert def.value; });
-
- attrEquivalent = types.attrsOf (dagContentType elemType);
+ let attrEquivalent = types.attrsOf (dagEntryOf elemType);
in mkOptionType rec {
name = "dagOf";
- description = "DAG of ${elemType.description}s";
- check = isAttrs;
- merge = loc: defs: attrEquivalent.merge loc (convertAllToDags defs);
+ description = "DAG of ${elemType.description}";
+ inherit (attrEquivalent) check merge emptyValue;
getSubOptions = prefix: elemType.getSubOptions (prefix ++ [ "" ]);
getSubModules = elemType.getSubModules;
substSubModules = m: dagOf (elemType.substSubModules m);
functor = (defaultFunctor name) // { wrapped = elemType; };
+ nestedTypes.elemType = elemType;
};
# A directed acyclic graph of some inner type OR a list of that
diff --git a/third_party/home-manager/modules/lib/types.nix b/third_party/home-manager/modules/lib/types.nix
index 71ec587f1a..0195bbfc8a 100644
--- a/third_party/home-manager/modules/lib/types.nix
+++ b/third_party/home-manager/modules/lib/types.nix
@@ -1,5 +1,4 @@
-{ lib, dag ? import ./dag.nix { inherit lib; }
-, gvariant ? import ./gvariant.nix { inherit lib; } }:
+{ lib, gvariant ? import ./gvariant.nix { inherit lib; } }:
let
inherit (lib)
@@ -7,7 +6,7 @@ let
mergeAttrs mergeDefaultOption mergeOneOption mergeOptions mkOption
mkOptionType showFiles showOption types;
- typesDag = import ./types-dag.nix { inherit dag lib; };
+ typesDag = import ./types-dag.nix { inherit lib; };
# Needed since the type is called gvariant and its merge attribute
# must refer back to the type.
@@ -56,7 +55,7 @@ in rec {
};
size = mkOption {
- type = types.nullOr types.int;
+ type = types.nullOr types.number;
default = null;
example = "8";
description = ''
@@ -96,6 +95,10 @@ in rec {
mergeOneOption loc defs
else if gvar.isMaybe sharedDefType && allChecked then
mergeOneOption loc defs
+ else if gvar.isDictionaryEntry sharedDefType && allChecked then
+ mergeOneOption loc defs
+ else if gvar.type.variant == sharedDefType && allChecked then
+ mergeOneOption loc defs
else if gvar.type.string == sharedDefType && allChecked then
types.str.merge loc defs
else if gvar.type.double == sharedDefType && allChecked then
diff --git a/third_party/home-manager/modules/manual.nix b/third_party/home-manager/modules/manual.nix
index a5c020510f..356f311a9e 100644
--- a/third_party/home-manager/modules/manual.nix
+++ b/third_party/home-manager/modules/manual.nix
@@ -8,9 +8,7 @@ let
docs = import ../docs { inherit lib pkgs; };
-in
-
-{
+in {
options = {
manual.html.enable = mkOption {
type = types.bool;
diff --git a/third_party/home-manager/modules/misc/dconf.nix b/third_party/home-manager/modules/misc/dconf.nix
index 7fed1ae279..aaefdfa391 100644
--- a/third_party/home-manager/modules/misc/dconf.nix
+++ b/third_party/home-manager/modules/misc/dconf.nix
@@ -10,8 +10,16 @@ let
mkIniKeyValue = key: value: "${key}=${toString (hm.gvariant.mkValue value)}";
+ # The dconf keys managed by this configuration. We store this as part of the
+ # generation state to be able to reset keys that become unmanaged during
+ # switch.
+ stateDconfKeys = pkgs.writeText "dconf-keys.json" (builtins.toJSON
+ (concatLists (mapAttrsToList
+ (dir: entries: mapAttrsToList (key: _: "/${dir}/${key}") entries)
+ cfg.settings)));
+
in {
- meta.maintainers = [ maintainers.gnidorah maintainers.rycee ];
+ meta.maintainers = [ maintainers.rycee ];
options = {
dconf = {
@@ -21,6 +29,11 @@ in {
visible = false;
description = ''
Whether to enable dconf settings.
+
+ Note, if you use NixOS then you must add
+ programs.dconf.enable = true
+ to your system configuration. Otherwise you will see a systemd error
+ message when your configuration is activated.
'';
};
@@ -49,22 +62,58 @@ in {
# Make sure the dconf directory exists.
xdg.configFile."dconf/.keep".source = builtins.toFile "keep" "";
- home.activation.dconfSettings = hm.dag.entryAfter [ "installPackages" ]
- (let iniFile = pkgs.writeText "hm-dconf.ini" (toDconfIni cfg.settings);
- in ''
- if [[ -v DBUS_SESSION_BUS_ADDRESS ]]; then
- DCONF_DBUS_RUN_SESSION=""
- else
- DCONF_DBUS_RUN_SESSION="${pkgs.dbus}/bin/dbus-run-session"
+ home.extraBuilderCommands = ''
+ mkdir -p $out/state/
+ ln -s ${stateDconfKeys} $out/state/${stateDconfKeys.name}
+ '';
+
+ home.activation.dconfSettings = hm.dag.entryAfter [ "installPackages" ] (let
+ iniFile = pkgs.writeText "hm-dconf.ini" (toDconfIni cfg.settings);
+
+ statePath = "state/${stateDconfKeys.name}";
+
+ cleanup = pkgs.writeShellScript "dconf-cleanup" ''
+ set -euo pipefail
+
+ ${config.lib.bash.initHomeManagerLib}
+
+ PATH=${makeBinPath [ pkgs.dconf pkgs.jq ]}''${PATH:+:}$PATH
+
+ oldState="$1"
+ newState="$2"
+
+ # Can't do cleanup if we don't know the old state.
+ if [[ ! -f $oldState ]]; then
+ exit 0
fi
- if [[ -v DRY_RUN ]]; then
- echo $DCONF_DBUS_RUN_SESSION ${pkgs.dconf}/bin/dconf load / "<" ${iniFile}
- else
- $DCONF_DBUS_RUN_SESSION ${pkgs.dconf}/bin/dconf load / < ${iniFile}
- fi
+ # Reset all keys that are present in the old generation but not the new
+ # one.
+ jq -r -n \
+ --slurpfile old "$oldState" \
+ --slurpfile new "$newState" \
+ '($old[] - $new[])[]' \
+ | while read -r key; do
+ $VERBOSE_ECHO "Resetting dconf key \"$key\""
+ $DRY_RUN_CMD $DCONF_DBUS_RUN_SESSION dconf reset "$key"
+ done
+ '';
+ in ''
+ if [[ -v DBUS_SESSION_BUS_ADDRESS ]]; then
+ export DCONF_DBUS_RUN_SESSION=""
+ else
+ export DCONF_DBUS_RUN_SESSION="${pkgs.dbus}/bin/dbus-run-session --dbus-daemon=${pkgs.dbus}/bin/dbus-daemon"
+ fi
- unset DCONF_DBUS_RUN_SESSION
- '');
+ if [[ -v oldGenPath ]]; then
+ ${cleanup} \
+ "$oldGenPath/${statePath}" \
+ "$newGenPath/${statePath}"
+ fi
+
+ $DRY_RUN_CMD $DCONF_DBUS_RUN_SESSION ${pkgs.dconf}/bin/dconf load / < ${iniFile}
+
+ unset DCONF_DBUS_RUN_SESSION
+ '');
};
}
diff --git a/third_party/home-manager/modules/misc/editorconfig.nix b/third_party/home-manager/modules/misc/editorconfig.nix
new file mode 100644
index 0000000000..579ef1f81d
--- /dev/null
+++ b/third_party/home-manager/modules/misc/editorconfig.nix
@@ -0,0 +1,53 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+
+ cfg = config.editorconfig;
+
+ iniFormat = pkgs.formats.ini { };
+
+in {
+ meta.maintainers = with maintainers; [ loicreynier ];
+
+ options.editorconfig = {
+ enable = mkEnableOption "EditorConfig home configuration file";
+
+ settings = mkOption {
+ type = iniFormat.type;
+ default = { };
+ description = ''
+ Configuration written to $HOME/.editorconfig.
+ root = true is automatically added to the file,
+ it must not be added here.
+ See for documentation.
+ '';
+ example = literalExpression ''
+ {
+ "*" = {
+ charset = "utf-8";
+ end_of_line = "lf";
+ trim_trailing_whitespace = true;
+ insert_final_newline = true;
+ max_line_width = 78;
+ indent_style = "space";
+ indent_size = 4;
+ };
+ };
+ '';
+ };
+ };
+
+ config = mkIf (cfg.enable && cfg.settings != { }) {
+ home.file.".editorconfig".text = let
+ renderedSettings = generators.toINIWithGlobalSection { } {
+ globalSection = { root = true; };
+ sections = cfg.settings;
+ };
+ in ''
+ # Generated by Home Manager
+ ${renderedSettings}
+ '';
+ };
+}
diff --git a/third_party/home-manager/modules/misc/gtk.nix b/third_party/home-manager/modules/misc/gtk.nix
index 669329b7bf..dfebf201f1 100644
--- a/third_party/home-manager/modules/misc/gtk.nix
+++ b/third_party/home-manager/modules/misc/gtk.nix
@@ -7,33 +7,30 @@ let
cfg = config.gtk;
cfg2 = config.gtk.gtk2;
cfg3 = config.gtk.gtk3;
+ cfg4 = config.gtk.gtk4;
toGtk3Ini = generators.toINI {
mkKeyValue = key: value:
- let
- value' = if isBool value then
- (if value then "true" else "false")
- else
- toString value;
- in "${key}=${value'}";
+ let value' = if isBool value then boolToString value else toString value;
+ in "${escape [ "=" ] key}=${value'}";
};
formatGtk2Option = n: v:
let
v' = if isBool v then
- (if v then "true" else "false")
+ boolToString value
else if isString v then
''"${v}"''
else
toString v;
- in "${n} = ${v'}";
+ in "${escape [ "=" ] n} = ${v'}";
themeType = types.submodule {
options = {
package = mkOption {
type = types.nullOr types.package;
default = null;
- example = literalExpression "pkgs.gnome.gnome_themes_standard";
+ example = literalExpression "pkgs.gnome.gnome-themes-extra";
description = ''
Package providing the theme. This package will be installed
to your profile. If null then the theme
@@ -49,6 +46,57 @@ let
};
};
+ iconThemeType = types.submodule {
+ options = {
+ package = mkOption {
+ type = types.nullOr types.package;
+ default = null;
+ example = literalExpression "pkgs.gnome.adwaita-icon-theme";
+ description = ''
+ Package providing the icon theme. This package will be installed
+ to your profile. If null then the theme
+ is assumed to already be available in your profile.
+ '';
+ };
+
+ name = mkOption {
+ type = types.str;
+ example = "Adwaita";
+ description = "The name of the icon theme within the package.";
+ };
+ };
+ };
+
+ cursorThemeType = types.submodule {
+ options = {
+ package = mkOption {
+ type = types.nullOr types.package;
+ default = null;
+ example = literalExpression "pkgs.vanilla-dmz";
+ description = ''
+ Package providing the cursor theme. This package will be installed
+ to your profile. If null then the theme
+ is assumed to already be available in your profile.
+ '';
+ };
+
+ name = mkOption {
+ type = types.str;
+ example = "Vanilla-DMZ";
+ description = "The name of the cursor theme within the package.";
+ };
+
+ size = mkOption {
+ type = types.nullOr types.int;
+ default = null;
+ example = 16;
+ description = ''
+ The size of the cursor.
+ '';
+ };
+ };
+ };
+
in {
meta.maintainers = [ maintainers.rycee ];
@@ -70,8 +118,14 @@ in {
'';
};
+ cursorTheme = mkOption {
+ type = types.nullOr cursorThemeType;
+ default = null;
+ description = "The cursor theme to use.";
+ };
+
iconTheme = mkOption {
- type = types.nullOr themeType;
+ type = types.nullOr iconThemeType;
default = null;
description = "The icon theme to use.";
};
@@ -115,7 +169,7 @@ in {
};
extraConfig = mkOption {
- type = with types; attrsOf (either bool (either int str));
+ type = with types; attrsOf (oneOf [ bool int str ]);
default = { };
example = {
gtk-cursor-blink = false;
@@ -123,7 +177,7 @@ in {
};
description = ''
Extra configuration options to add to
- ~/.config/gtk-3.0/settings.ini.
+ $XDG_CONFIG_HOME/gtk-3.0/settings.ini.
'';
};
@@ -132,7 +186,22 @@ in {
default = "";
description = ''
Extra configuration lines to add verbatim to
- ~/.config/gtk-3.0/gtk.css.
+ $XDG_CONFIG_HOME/gtk-3.0/gtk.css.
+ '';
+ };
+ };
+
+ gtk4 = {
+ extraConfig = mkOption {
+ type = with types; attrsOf (either bool (either int str));
+ default = { };
+ example = {
+ gtk-cursor-blink = false;
+ gtk-recent-files-limit = 20;
+ };
+ description = ''
+ Extra configuration options to add to
+ $XDG_CONFIG_HOME/gtk-4.0/settings.ini.
'';
};
};
@@ -140,7 +209,7 @@ in {
};
config = mkIf cfg.enable (let
- ini = optionalAttrs (cfg.font != null) {
+ gtkIni = optionalAttrs (cfg.font != null) {
gtk-font-name = let
fontSize =
optionalString (cfg.font.size != null) " ${toString cfg.font.size}";
@@ -148,6 +217,11 @@ in {
} // optionalAttrs (cfg.theme != null) { gtk-theme-name = cfg.theme.name; }
// optionalAttrs (cfg.iconTheme != null) {
gtk-icon-theme-name = cfg.iconTheme.name;
+ } // optionalAttrs (cfg.cursorTheme != null) {
+ gtk-cursor-theme-name = cfg.cursorTheme.name;
+ } // optionalAttrs
+ (cfg.cursorTheme != null && cfg.cursorTheme.size != null) {
+ gtk-cursor-theme-size = cfg.cursorTheme.size;
};
dconfIni = optionalAttrs (cfg.font != null) {
@@ -158,29 +232,42 @@ in {
} // optionalAttrs (cfg.theme != null) { gtk-theme = cfg.theme.name; }
// optionalAttrs (cfg.iconTheme != null) {
icon-theme = cfg.iconTheme.name;
+ } // optionalAttrs (cfg.cursorTheme != null) {
+ cursor-theme = cfg.cursorTheme.name;
+ } // optionalAttrs
+ (cfg.cursorTheme != null && cfg.cursorTheme.size != null) {
+ cursor-size = cfg.cursorTheme.size;
};
optionalPackage = opt:
optional (opt != null && opt.package != null) opt.package;
in {
- home.packages = optionalPackage cfg.font ++ optionalPackage cfg.theme
- ++ optionalPackage cfg.iconTheme;
+ home.packages = concatMap optionalPackage [
+ cfg.font
+ cfg.theme
+ cfg.iconTheme
+ cfg.cursorTheme
+ ];
home.file.${cfg2.configLocation}.text =
- concatMapStrings (l: l + "\n") (mapAttrsToList formatGtk2Option ini)
- + cfg2.extraConfig;
+ concatMapStrings (l: l + "\n") (mapAttrsToList formatGtk2Option gtkIni)
+ + cfg2.extraConfig + "\n";
home.sessionVariables.GTK2_RC_FILES = cfg2.configLocation;
xdg.configFile."gtk-3.0/settings.ini".text =
- toGtk3Ini { Settings = ini // cfg3.extraConfig; };
+ toGtk3Ini { Settings = gtkIni // cfg3.extraConfig; };
- xdg.configFile."gtk-3.0/gtk.css".text = cfg3.extraCss;
+ xdg.configFile."gtk-3.0/gtk.css" =
+ mkIf (cfg3.extraCss != "") { text = cfg3.extraCss; };
xdg.configFile."gtk-3.0/bookmarks" = mkIf (cfg3.bookmarks != [ ]) {
text = concatMapStrings (l: l + "\n") cfg3.bookmarks;
};
+ xdg.configFile."gtk-4.0/settings.ini".text =
+ toGtk3Ini { Settings = gtkIni // cfg4.extraConfig; };
+
dconf.settings."org/gnome/desktop/interface" = dconfIni;
});
}
diff --git a/third_party/home-manager/modules/misc/news.nix b/third_party/home-manager/modules/misc/news.nix
index a850bd8d78..f59d50b591 100644
--- a/third_party/home-manager/modules/misc/news.nix
+++ b/third_party/home-manager/modules/misc/news.nix
@@ -120,1931 +120,6 @@ in
#
# date -u +'%Y-%m-%dT%H:%M:%S+00:00'
news.entries = [
- {
- time = "2017-09-01T10:56:28+00:00";
- message = ''
- Hello! This is a news entry and it represents an
- experimental new feature of Home Manager. The idea is to
- inform you when something of importance happens in Home
- Manager or its modules.
-
- We will try to not disturb you about the same news more than
- once so the next time you run
-
- home-manager switch
-
- or
-
- home-manager build
-
- it should not notify you about this text again.
-
- News items may be conditional and will then only show if the
- condition holds, for example if they are relevant to your
- configuration.
-
- If you want to see all relevant news then please use the
-
- home-manager news
-
- command.
-
- Since this is an experimental feature any positive or
- negative feedback would be greatly appreciated. For example,
- by commenting in https://git.io/v5BJL.
- '';
- }
-
- {
- time = "2017-09-10T22:15:19+00:00";
- condition = config.programs.zsh.enable;
- message = ''
- Home Manager now offers its own minimal zsh plugin manager
- under the 'programs.zsh.plugins' option path. By statically
- sourcing your plugins it achieves no startup overhead.
- '';
- }
-
- {
- time = "2017-09-12T13:11:48+00:00";
- condition = (
- config.programs.zsh.enable &&
- config.programs.zsh.shellAliases != {}
- );
- message = ''
- Aliases defined in 'programs.zsh.shellAliases'
- are now have the highest priority. Such aliases will
- not be redefined by the code in 'programs.zsh.initExtra'
- or any external plugins.
- '';
- }
-
- {
- time = "2017-09-12T14:22:18+00:00";
- message = ''
- A new service is available: 'services.blueman-applet'.
- '';
- }
-
- {
- time = "2017-09-13T11:30:22+00:00";
- message = ''
- A new service is available: 'services.compton'.
- '';
- }
-
- {
- time = "2017-09-20T14:47:14+00:00";
- message = ''
- A new service is available: 'services.screen-locker'.
- '';
- }
-
- {
- time = "2017-09-22T12:09:01+00:00";
- condition = isString config.programs.git.extraConfig;
- message = ''
- The 'programs.git.extraConfig' parameter now accepts
- attributes instead of strings which allows more flexible
- configuration.
-
- The string parameter type will be deprecated in the future,
- please change your configuration file accordingly.
-
- For example, if your configuration includes
-
- programs.git.extraConfig = '''
- [core]
- editor = vim
- ''';
-
- then you can now change it to
-
- programs.git.extraConfig = {
- core = {
- editor = "vim";
- };
- };
- '';
- }
-
- {
- time = "2017-09-27T07:28:54+00:00";
- message = ''
- A new program module is available: 'programs.command-not-found'.
-
- Note, this differs from the NixOS system command-not-found
- tool in that NIX_AUTO_INSTALL is not supported.
- '';
- }
-
- {
- time = "2017-09-28T12:39:36+00:00";
- message = ''
- A new program module is available: 'programs.rofi';
- '';
- }
-
- {
- time = "2017-10-02T11:15:03+00:00";
- condition = config.services.udiskie.enable;
- message = ''
- The udiskie service now defaults to automatically mounting
- new devices. Previous behavior was to not automatically
- mount. To restore this previous behavior add
-
- services.udiskie.automount = false;
-
- to your Home Manager configuration.
- '';
- }
-
- {
- time = "2017-10-04T18:36:07+00:00";
- message = ''
- A new module is available: 'xsession.windowManager.xmonad'.
- '';
- }
-
- {
- time = "2017-10-06T08:21:43+00:00";
- message = ''
- A new service is available: 'services.polybar'.
- '';
- }
-
- {
- time = "2017-10-09T16:38:34+00:00";
- message = ''
- A new module is available: 'fonts.fontconfig'.
-
- In particular, the Boolean option
-
- fonts.fontconfig.enableProfileFonts
-
- was added for those who do not use NixOS and want to install
- font packages using 'nix-env' or 'home.packages'. If you are
- using NixOS then you do not need to enable this option.
- '';
- }
-
- {
- time = "2017-10-12T11:21:45+00:00";
- condition = config.programs.zsh.enable;
- message = ''
- A new option in zsh module is available: 'programs.zsh.sessionVariables'.
-
- This option can be used to set zsh specific session variables which
- will be set only on zsh launch.
- '';
- }
-
- {
- time = "2017-10-15T13:59:47+00:00";
- message = ''
- A new module is available: 'programs.man'.
-
- This module is enabled by default and makes sure that manual
- pages are installed for packages in 'home.packages'.
- '';
- }
-
- {
- time = "2017-10-20T12:15:27+00:00";
- condition = with config.systemd.user;
- services != {} || sockets != {} || targets != {} || timers != {};
- message = ''
- Home Manager's interaction with systemd is now done using
- 'systemctl' from Nixpkgs, not the 'systemctl' in '$PATH'.
-
- If you are using a distribution whose systemd is
- incompatible with the version in Nixpkgs then you can
- override this behavior by adding
-
- systemd.user.systemctlPath = "/usr/bin/systemctl"
-
- to your configuration. Home Manager will then use your
- chosen version.
- '';
- }
-
- {
- time = "2017-10-23T23:10:29+00:00";
- condition = !config.programs.home-manager.enable;
- message = ''
- Unfortunately, due to some internal restructuring it is no
- longer possible to install the home-manager command when
- having
-
- home-manager = import ./home-manager { inherit pkgs; };
-
- in the '~/.config/nixpkgs/config.nix' package override
- section. Attempting to use the above override will now
- result in the error "cannot coerce a set to a string".
-
- To resolve this please delete the override from the
- 'config.nix' file and either link the Home Manager overlay
-
- $ ln -s ~/.config/nixpkgs/home-manager/overlay.nix \
- ~/.config/nixpkgs/overlays/home-manager.nix
-
- or add
-
- programs.home-manager.enable = true;
-
- to your Home Manager configuration. The latter is
- recommended as the home-manager tool then is updated
- automatically whenever you do a switch.
- '';
- }
-
- {
- time = "2017-10-23T23:26:17+00:00";
- message = ''
- A new module is available: 'nixpkgs'.
-
- Like the identically named NixOS module, this allows you to
- set Nixpkgs options and define Nixpkgs overlays. Note, the
- changes you make here will not automatically apply to Nix
- commands run outside Home Manager.
- '';
- }
-
- {
- time = "2017-10-28T23:39:55+00:00";
- message = ''
- A new module is available: 'xdg'.
-
- If enabled, this module allows configuration of the XDG base
- directory paths.
-
- Whether the module is enabled or not, it also offers the
- option 'xdg.configFile', which acts much like 'home.file'
- except the target path is relative to the XDG configuration
- directory. That is, unless `XDG_CONFIG_HOME` is configured
- otherwise, the assignment
-
- xdg.configFile.hello.text = "hello world";
-
- will result in a file '$HOME/.config/hello'.
-
- Most modules in Home Manager that previously were hard coded
- to write configuration to '$HOME/.config' now use this
- option and will therefore honor the XDG configuration
- directory.
- '';
- }
-
- {
- time = "2017-10-31T11:46:07+00:00";
- message = ''
- A new window manager module is available: 'xsession.windowManager.i3'.
- '';
- }
-
- {
- time = "2017-11-12T00:18:59+00:00";
- message = ''
- A new program module is available: 'programs.neovim'.
- '';
- }
-
- {
- time = "2017-11-14T19:56:49+00:00";
- condition = with config.xsession.windowManager; (
- i3.enable && i3.config != null && i3.config.startup != []
- );
- message = ''
- A new 'notification' option was added to
- xsession.windowManager.i3.startup submodule.
-
- Startup commands are now executed with the startup-notification
- support enabled by default. Please, set 'notification' to false
- where --no-startup-id option is necessary.
- '';
- }
-
- {
- time = "2017-11-17T10:36:10+00:00";
- condition = config.xsession.windowManager.i3.enable;
- message = ''
- The i3 window manager module has been extended with the following options:
-
- i3.config.keycodebindings
- i3.config.window.commands
- i3.config.window.hideEdgeBorders
- i3.config.focus.mouseWarping
- '';
- }
-
- {
- time = "2017-11-26T21:57:23+00:00";
- message = ''
- Two new modules are available:
-
- 'services.kbfs' and 'services.keybase'
- '';
- }
-
- {
- time = "2017-12-07T22:23:11+00:00";
- message = ''
- A new module is available: 'services.parcellite'
- '';
- }
-
- {
- time = "2017-12-11T17:23:12+00:00";
- condition = config.home.activation ? reloadSystemd;
- message = ''
- The Boolean option 'systemd.user.startServices' is now
- available. When enabled the current naive systemd unit
- reload logic is replaced by a more sophisticated one that
- attempts to automatically start, stop, and restart units as
- necessary.
- '';
- }
-
- {
- time = "2018-02-02T11:15:00+00:00";
- message = ''
- A new program configuration is available: 'programs.mercurial'
- '';
- }
-
- {
- time = "2018-02-03T10:00:00+00:00";
- message = ''
- A new module is available: 'services.stalonetray'
- '';
- }
-
- {
- time = "2018-02-04T22:58:49+00:00";
- condition = config.xsession.enable;
- message = ''
- A new option 'xsession.pointerCursor' is now available. It
- allows specifying the pointer cursor theme and size. The
- settings will be applied in the xsession, Xresources, and
- GTK configurations.
- '';
- }
-
- {
- time = "2018-02-06T20:23:34+00:00";
- message = ''
- It is now possible to use Home Manager as a NixOS module.
- This allows you to prepare user environments 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.
-
- This feature should be considered experimental for now and
- some critial limitations apply. For example, it is currently
- not possible to use 'nixos-rebuild build-vm' when using the
- Home Manager NixOS module. That said, it should be
- reasonably robust and stable for simpler use cases.
-
- To make Home Manager available in your NixOS system
- configuration you can add
-
- imports = [
- "''${builtins.fetchTarball https://github.com/nix-community/home-manager/archive/master.tar.gz}/nixos"
- ];
-
- to your 'configuration.nix' file. This will introduce a new
- NixOS option called 'home-manager.users' whose type is an
- attribute set mapping user names to Home Manager
- configurations.
-
- For example, a NixOS configuration may include the lines
-
- users.users.eve.isNormalUser = true;
- home-manager.users.eve = {
- home.packages = [ pkgs.atool pkgs.httpie ];
- programs.bash.enable = true;
- };
-
- and after a 'nixos-rebuild switch' the user eve's
- environment should include a basic Bash configuration and
- the packages atool and httpie.
-
- More detailed documentation on the intricacies of this new
- feature is slowly forthcoming.
- '';
- }
-
- {
- time = "2018-02-19T21:45:26+00:00";
- message = ''
- A new module is available: 'programs.pidgin'
- '';
- }
-
- {
- time = "2018-03-04T06:54:26+00:00";
- message = ''
- A new module is available: 'services.unclutter'
- '';
- }
-
- {
- time = "2018-03-07T21:38:27+00:00";
- message = ''
- A new module is available: 'programs.fzf'.
- '';
- }
-
- {
- time = "2018-03-25T06:49:57+00:00";
- condition = with config.programs.ssh; enable && matchBlocks != {};
- message = ''
- Options set through the 'programs.ssh' module are now placed
- at the end of the SSH configuration file. This was done to
- make it possible to override global options such as
- 'ForwardAgent' or 'Compression' inside a host match block.
-
- If you truly need to override an SSH option across all match
- blocks then the new option
-
- programs.ssh.extraOptionOverrides
-
- can be used.
- '';
- }
-
- {
- time = "2018-04-19T07:42:01+00:00";
- message = ''
- A new module is available: 'programs.autorandr'.
- '';
- }
-
- {
- time = "2018-04-19T15:44:55+00:00";
- condition = config.programs.git.enable;
- message = ''
- A new option 'programs.git.includes' is available. Additional
- Git configuration files may be included via
-
- programs.git.includes = [
- { path = "~/path/to/config.inc"; }
- ];
-
- or conditionally via
-
- programs.git.includes = [
- { path = "~/path/to/config.inc"; condition = "gitdir:~/src/"; }
- ];
-
- and the corresponding '[include]' or '[includeIf]' sections will be
- appended to the main Git configuration file.
- '';
- }
-
- {
- time = "2018-05-01T20:49:31+00:00";
- message = ''
- A new module is available: 'services.mbsync'.
- '';
- }
- {
- time = "2018-05-03T12:34:47+00:00";
- message = ''
- A new module is available: 'services.flameshot'.
- '';
- }
-
- {
- time = "2018-05-18T18:34:15+00:00";
- message = ''
- A new module is available: 'qt'
-
- At the moment this module allows you to set up Qt to use the
- GTK+ theme, and not much else.
- '';
- }
-
- {
- time = "2018-06-05T01:36:45+00:00";
- message = ''
- A new module is available: 'services.kdeconnect'.
- '';
- }
-
- {
- time = "2018-06-09T09:11:59+00:00";
- message = ''
- A new module is available: `programs.newsboat`.
- '';
- }
-
- {
- time = "2018-07-01T14:33:15+00:00";
- message = ''
- A new module is available: 'accounts.email'.
-
- As the name suggests, this new module offers a number of
- options for configuring email accounts. This, for example,
- includes the email address and owner's real name but also
- server settings for IMAP and SMTP.
-
- The intent is to have a central location for account
- specific configuration that other modules can use.
-
- Note, this module is still somewhat experimental and its
- structure should not be seen as final. Feedback is greatly
- appreciated, both positive and negative.
- '';
- }
-
- {
- time = "2018-07-01T16:07:04+00:00";
- message = ''
- A new module is available: 'programs.mbsync'.
- '';
- }
-
- {
- time = "2018-07-01T16:12:20+00:00";
- message = ''
- A new module is available: 'programs.notmuch'.
- '';
- }
-
- {
- time = "2018-07-07T15:48:56+00:00";
- message = ''
- A new module is available: 'xsession.windowManager.awesome'.
- '';
- }
-
- {
- time = "2018-07-18T20:14:11+00:00";
- message = ''
- A new module is available: 'services.mpd'.
- '';
- }
-
- {
- time = "2018-07-31T13:33:39+00:00";
- message = ''
- A new module is available: 'services.status-notifier-watcher'.
- '';
- }
-
- {
- time = "2018-07-31T13:47:06+00:00";
- message = ''
- A new module is available: 'programs.direnv'.
- '';
- }
-
- {
- time = "2018-08-17T20:30:14+00:00";
- message = ''
- A new module is available: 'programs.fish'.
- '';
- }
-
- {
- time = "2018-08-18T19:03:42+00:00";
- condition = config.services.gpg-agent.enable;
- message = ''
- A new option is available: 'services.gpg-agent.extraConfig'.
-
- Extra lines may be appended to $HOME/.gnupg/gpg-agent.conf
- using this option.
- '';
- }
-
- {
- time = "2018-08-19T20:46:09+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new modules is available: 'programs.chromium'.
- '';
- }
-
- {
- time = "2018-08-20T20:27:26+00:00";
- message = ''
- A new module is available: 'programs.msmtp'.
- '';
- }
-
- {
- time = "2018-08-21T20:13:50+00:00";
- message = ''
- A new module is available: 'services.pasystray'.
- '';
- }
-
- {
- time = "2018-08-29T20:27:04+00:00";
- message = ''
- A new module is available: 'programs.offlineimap'.
- '';
- }
-
- {
- time = "2018-09-18T21:25:14+00:00";
- message = ''
- A new module is available: 'programs.taskwarrior'.
- '';
- }
-
- {
- time = "2018-09-18T21:43:54+00:00";
- message = ''
- A new module is available: 'programs.zathura'.
- '';
- }
-
- {
- time = "2018-09-20T19:26:40+00:00";
- message = ''
- A new module is available: 'programs.noti'.
- '';
- }
-
- {
- time = "2018-09-20T22:10:45+00:00";
- message = ''
- A new module is available: 'programs.go'.
- '';
- }
-
- {
- time = "2018-09-27T17:48:08+00:00";
- message = ''
- A new module is available: 'programs.obs-studio'.
- '';
- }
-
- {
- time = "2018-09-28T21:38:48+00:00";
- message = ''
- A new module is available: 'programs.alot'.
- '';
- }
-
- {
- time = "2018-10-20T09:30:57+00:00";
- message = ''
- A new module is available: 'programs.urxvt'.
- '';
- }
-
- {
- time = "2018-11-13T23:08:03+00:00";
- message = ''
- A new module is available: 'programs.tmux'.
- '';
- }
-
- {
- time = "2018-11-18T18:55:15+00:00";
- message = ''
- A new module is available: 'programs.astroid'.
- '';
- }
-
- {
- time = "2018-11-18T21:41:51+00:00";
- message = ''
- A new module is available: 'programs.afew'.
- '';
- }
-
- {
- time = "2018-11-19T00:40:34+00:00";
- message = ''
- A new nix-darwin module is available. Use it the same way the NixOS
- module is used. A major limitation is that Home Manager services don't
- work, as they depend explicitly on Linux and systemd user services.
- However, 'home.file' and 'home.packages' do work. Everything else is
- untested at this time.
- '';
- }
-
- {
- time = "2018-11-24T16:22:19+00:00";
- message = ''
- A new option 'home.stateVersion' is available. Its function
- is much like the 'system.stateVersion' option in NixOS.
-
- Briefly, the state version indicates a stable set of option
- defaults. In the future, whenever Home Manager changes an
- option default in a way that may cause program breakage it
- will do so only for the unstable state version, currently
- 19.03. Once 19.03 becomes the stable version only backwards
- compatible changes will be made and 19.09 becomes the
- unstable state version.
-
- The default value for this option is 18.09 but it may still
- be a good idea to explicitly add
-
- home.stateVersion = "18.09";
-
- to your Home Manager configuration.
- '';
- }
-
- {
- time = "2018-11-25T22:10:15+00:00";
- message = ''
- A new module is available: 'services.nextcloud-client'.
- '';
- }
-
- {
- time = "2018-11-25T22:55:12+00:00";
- message = ''
- A new module is available: 'programs.vscode'.
- '';
- }
-
- {
- time = "2018-12-04T21:54:38+00:00";
- condition = config.programs.beets.settings != {};
- message = ''
- A new option 'programs.beets.enable' has been added.
- Starting with state version 19.03 this option defaults to
- false. For earlier versions it defaults to true if
- 'programs.beets.settings' is non-empty.
-
- It is recommended to explicitly add
-
- programs.beets.enable = true;
-
- to your configuration.
- '';
- }
-
- {
- time = "2018-12-12T21:02:05+00:00";
- message = ''
- A new module is available: 'programs.jq'.
- '';
- }
-
- {
- time = "2018-12-24T16:26:16+00:00";
- message = ''
- A new module is available: 'dconf'.
-
- Note, on NixOS you may need to add
-
- services.dbus.packages = with pkgs; [ gnome3.dconf ];
-
- to the system configuration for this module to work as
- expected. In particular if you get the error message
-
- The name ca.desrt.dconf was not provided by any .service files
-
- when activating your Home Manager configuration.
- '';
- }
-
- {
- time = "2018-12-28T12:32:30+00:00";
- message = ''
- A new module is available: 'programs.opam'.
- '';
- }
-
- {
- time = "2019-01-18T00:21:56+00:00";
- message = ''
- A new module is available: 'programs.matplotlib'.
- '';
- }
-
- {
- time = "2019-01-26T13:20:37+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.xembed-sni-proxy'.
- '';
- }
-
- {
- time = "2019-01-28T23:36:10+00:00";
- message = ''
- A new module is available: 'programs.irssi'.
- '';
- }
-
- {
- time = "2019-02-09T14:09:58+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.emacs'.
-
- This module provides a user service that runs the Emacs
- configured in
-
- programs.emacs
-
- as an Emacs daemon.
- '';
- }
-
- {
- time = "2019-02-16T20:33:56+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- When using Home Manager as a NixOS submodule it is now
- possible to install packages using the NixOS
-
- users.users..packages
-
- option. This is enabled by adding
-
- home-manager.useUserPackages = true;
-
- to your NixOS system configuration. This mode of operation
- is necessary if you want to use 'nixos-rebuild build-vm'.
- '';
- }
-
- {
- time = "2019-02-17T21:11:24+00:00";
- message = ''
- A new module is available: 'programs.keychain'.
- '';
- }
-
- {
- time = "2019-02-24T00:32:23+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new service is available: 'services.mpdris2'.
- '';
- }
-
- {
- time = "2019-03-19T22:56:20+00:00";
- message = ''
- A new module is available: 'programs.bat'.
- '';
- }
-
- {
- time = "2019-03-19T23:07:34+00:00";
- message = ''
- A new module is available: 'programs.lsd'.
- '';
- }
-
- {
- time = "2019-04-09T20:10:22+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.xcape'.
- '';
- }
-
- {
- time = "2019-04-11T22:50:10+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- The type used for the systemd unit options under
-
- systemd.user.services, 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 due to this change.
-
- In particular, if you get an error saying that a "unique option" is
- "defined multiple times" then you need to use 'lib.mkForce'. For
- example,
-
- systemd.user.services.foo.Service.ExecStart = "/foo/bar";
-
- becomes
-
- 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. Apologies for potentially
- breaking your configuration!
- '';
- }
-
- {
- time = "2019-04-14T15:35:16+00:00";
- message = ''
- A new module is available: 'programs.skim'.
- '';
- }
-
- {
- time = "2019-04-22T12:43:20+00:00";
- message = ''
- A new module is available: 'programs.alacritty'.
- '';
- }
-
- {
- time = "2019-04-26T22:53:48+00:00";
- condition = config.programs.vscode.enable;
- message = ''
- A new module is available: 'programs.vscode.haskell'.
-
- Enable to add Haskell IDE Engine and syntax highlighting
- support to your VSCode.
- '';
- }
-
- {
- time = "2019-05-04T23:56:39+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.rsibreak'.
- '';
- }
-
- {
- time = "2019-05-07T20:49:29+00:00";
- message = ''
- A new module is available: 'programs.mpv'.
- '';
- }
-
- {
- time = "2019-05-30T17:49:29+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.xsuspender'.
- '';
- }
-
- {
- time = "2019-06-03T21:47:10+00:00";
- message = ''
- A new module is available: 'programs.gpg'.
- '';
- }
-
- {
- time = "2019-06-09T12:19:18+00:00";
- message = ''
- Collisions between unmanaged and managed files can now be
- automatically resolved by moving the target file to a new
- path instead of failing the switch operation. To enable
- this, use the new '-b' command line argument. For example,
-
- home-manager -b bck switch
-
- where 'bck' is the suffix to give the moved file. In this
- case a colliding file 'foo.conf' will be moved to
- 'foo.conf.bck'.
- '';
- }
-
- {
- time = "2019-06-19T17:49:29+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: `services.getmail`.
- '';
- }
-
- {
- time = "2019-07-02T09:27:56+00:00";
- message = ''
- A new module is available: 'programs.broot'.
- '';
- }
-
- {
- time = "2019-07-17T19:30:29+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.taskwarrior-sync'.
- '';
- }
-
- {
- time = "2019-07-17T20:05:29+00:00";
- message = ''
- A new module is available: 'programs.kakoune'.
- '';
- }
-
- {
- time = "2019-08-08T11:49:35+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.hound'.
- '';
- }
-
- {
- time = "2019-08-17T12:24:58+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.muchsync'.
- '';
- }
-
- {
- time = "2019-08-18T14:22:41+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.dwm-status'.
- '';
- }
-
- {
- time = "2019-08-28T10:18:07+00:00";
- condition = config.programs.vim.enable;
- message = ''
- The 'programs.vim.plugins' option now accepts packages.
- Specifying them as strings is deprecated.
- '';
- }
-
- {
- time = "2019-09-17T19:33:49+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.sxhkd'.
- '';
- }
-
- {
- time = "2019-09-26T21:05:24+00:00";
- message = ''
- A new module is available: 'programs.starship'.
- '';
- }
-
- {
- time = "2019-09-26T21:47:13+00:00";
- message = ''
- A new module is available: 'programs.rtorrent'.
- '';
- }
-
- {
- time = "2019-11-04T20:56:29+00:00";
- message = ''
- A new module is available: 'programs.pazi'.
- '';
- }
-
- {
- time = "2019-11-05T21:54:04+00:00";
- condition = config.programs.zsh.enable;
- message = ''
- The 'programs.zsh.history.path' option behavior and the
- default value has changed for state version 20.03 and above.
-
- Specifically, '$HOME' will no longer be prepended to the
- option value, which allows specifying absolute paths (e.g.
- using the xdg module). Also, the default value is fixed to
- '$HOME/.zsh_history' and 'dotDir' path is not prepended to
- it anymore.
- '';
- }
-
- {
- time = "2019-11-17T18:47:40+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.lorri'.
- '';
- }
-
- {
- time = "2019-11-24T17:46:57+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.spotifyd'.
- '';
- }
-
- {
- time = "2019-11-29T21:18:48+00:00";
- message = ''
- A new module is available: 'programs.password-store'.
- '';
- }
-
- {
- time = "2019-11-29T21:18:48+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.password-store-sync'.
- '';
- }
-
- {
- time = "2019-11-29T22:46:49+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.unison'.
- '';
- }
-
- {
- time = "2019-12-01T22:10:23+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'xdg.mime'.
-
- If enabled, which it is by default, this module will create
- the XDG mime database and desktop file database caches from
- programs installed via Home Manager.
- '';
- }
-
- {
- time = "2019-12-08T19:48:26+00:00";
- message = ''
- A new module is available: 'programs.readline'.
- '';
- }
-
- {
- time = "2020-01-11T11:49:51+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.cbatticon'.
- '';
- }
-
- {
- time = "2020-01-26T12:42:33+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'xsession.windowManager.bspwm'.
- '';
- }
-
- {
- time = "2020-01-26T12:49:40+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.grobi'.
- '';
- }
-
- {
- time = "2020-01-26T19:37:57+00:00";
- message = ''
- A new module is available: 'programs.neomutt'.
- '';
- }
-
- {
- time = "2020-02-23T10:19:48+00:00";
- message = ''
- A new module is available: 'programs.kitty'.
- '';
- }
-
- {
- time = "2020-02-26T21:20:55+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'wayland.windowManager.sway'
- '';
- }
-
- {
- time = "2020-03-04T18:55:03+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'programs.abook'
- '';
- }
-
- {
- time = "2020-03-07T11:43:26+00:00";
- condition = config.programs.fish.enable;
- message = ''
- The option 'programs.fish.functions' has been reworked in
- order to support all available flags, such as
- '--description', '--on-event', and more.
- '';
- }
-
- {
- time = "2020-03-07T13:11:43+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- The NixOS module has a new option: 'home-manager.useGlobalPkgs'.
-
- This enables using the system configuration's 'pkgs'
- argument in Home Manager.
-
- To learn more, see the installation section of the manual
-
- https://nix-community.github.io/home-manager/#sec-install-nixos-module
- '';
- }
-
- {
- time = "2020-03-07T14:12:50+00:00";
- message = ''
- A new module is available: 'programs.lieer'.
- '';
- }
-
- {
- time = "2020-03-07T14:12:50+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.lieer'.
- '';
- }
-
- {
- time = "2020-03-15T16:55:28+00:00";
- condition = config.programs.firefox.enable;
- message = ''
- In anticipation of Firefox dropping support for extension
- sideloading[1], we now install extensions directly to
- Firefox profiles managed through Home Manager's
-
- 'programs.firefox.profiles'
-
- option.
-
- Unfortunately this will most likely trigger an "Existing
- file is in the way" error when activating your configuration
- since Firefox keeps a copy of the add-on in the location
- Home Manager wants to overwrite. If this is the case, remove
- the listed '.xpi' files and try again.
-
- This change also means that extensions installed through
- Home Manager may disappear from unmanaged profiles in future
- Firefox releases.
-
- [1] https://blog.mozilla.org/addons/2019/10/31/firefox-to-discontinue-sideloaded-extensions/
- '';
- }
-
- {
- time = "2020-03-17T21:56:26+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.keynav'.
- '';
- }
-
- {
- time = "2020-03-24T22:17:20+00:00";
- condition = config.services.compton.enable;
- message = ''
- 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 'services.compton' and 'services.picom' modules have a
- few differences:
-
- - 'services.picom' has a new 'experimentalBackends'
- option.
-
- - 'vSync' is now a boolean value on 'services.picom', as
- opposed to the string in 'services.compton'.
-
- Migrating to the new picom service is simple - just change
- all references to 'services.compton' to 'services.picom',
- and adhere to the above changes.
-
- The deprecated 'services.compton' will eventually be removed
- in the future. Please update your configurations to use
- 'services.picom' as soon as possible.
- '';
- }
-
- {
- time = "2020-04-08T09:33:05+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'targets.genericLinux'.
-
- When enabled, this module will configure various settings
- and environment variables to make Home Manager and programs
- installed through Nix work better on GNU/Linux distributions
- other than NixOS.
-
- It should not be enabled if your Home Manager configuration
- is deployed on a NixOS host.
- '';
- }
-
- {
- time = "2020-04-08T11:51:15+00:00";
- message = ''
- A new module is available: 'programs.qutebrowser'
- '';
- }
-
- {
- time = "2020-04-09T09:19:38+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.mako'
- '';
- }
-
- {
- time = "2020-04-23T19:45:26+00:00";
- message = ''
- A new module is available: 'programs.lf'
- '';
- }
-
- {
- time = "2020-04-26T13:46:28+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.pulseeffects'
- '';
- }
-
- {
- time = "2020-05-03T11:13:07+00:00";
- message = ''
- A new module is available: 'programs.i3status'
- '';
- }
-
- {
- time = "2020-05-03T11:21:42+00:00";
- message = ''
- A new module is available: 'programs.aria2'
- '';
- }
-
- {
- time = "2020-05-04T21:19:43+00:00";
- condition = config.programs.git.enable;
- message = ''
- The Git module now supports the 'delta' syntax highlighter.
-
- It can be enabled through the option 'programs.git.delta.enable'.
- '';
- }
-
- {
- time = "2020-05-12T20:09:54+00:00";
- message = ''
- A new module is available: 'programs.dircolors'
- '';
- }
-
- {
- time = "2020-05-26T17:13:58+00:00";
- message = ''
- A new module is available: 'programs.zoxide'
- '';
- }
-
- {
- time = "2020-06-03T17:46:11+00:00";
- condition = config.programs.ssh.enable;
- message = ''
- The ssh module now supports the 'ServerAliveCountMax' option
- both globally through
-
- programs.ssh.serverAliveCountMax
-
- and per match blocks
-
- programs.ssh.matchBlocks..serverAliveCountMax
- '';
- }
-
- {
- time = "2020-06-11T18:06:37+00:00";
- condition = hostPlatform.isLinux && config.services.emacs.enable;
- message = ''
- The Emacs service now supports systemd socket activation.
-
- It can be enabled through the option 'services.emacs.socketActivation.enable'.
- '';
- }
-
- {
- time = "2020-06-12T17:48:01+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.clipmenu'
- '';
- }
-
- {
- time = "2020-06-12T07:08:09+00:00";
- condition = config.programs.bash.enable;
- message = ''
- A new module is available: 'programs.powerline-go'
- '';
- }
-
- {
- time = "2020-06-14T13:30:19+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'service.fluidsynth'
- '';
- }
-
- {
- time = "2020-06-17T22:17:52+00:00";
- condition = config.programs.git.enable;
- message = ''
- Since May 1, 2020 string values in Git configurations are
- automatically escaped. If you have any manually escaped characters,
- then you may need to restore them to their unescaped form to avoid
- double escaping.
-
- In other words, if you now have something along the lines of
-
- programs.git.aliases.hello = '''"!echo $'Hello\\nWorld'"''';
-
- you must replace it by the unescaped form
-
- programs.git.aliases.hello = "!echo $'Hello\nWorld'";
-
- Apologies for the belated notification!
- '';
- }
-
- {
- time = "2020-06-23T20:06:39+00:00";
- message = ''
- A new module is available: 'programs.ne'
- '';
- }
-
- {
- time = "2020-07-24T15:03:11+00:00";
- message = ''
- A new module is available: 'programs.nushell'.
- '';
- }
-
- {
- time = "2020-07-25T21:04:59+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.dropbox'.
- '';
- }
-
- {
- time = "2020-08-13T22:15:27+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'programs.waybar'
- '';
- }
-
- {
- time = "2020-08-14T22:44:20+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.kanshi'
- '';
- }
-
- {
- time = "2020-08-25T22:14:01+00:00";
- message = ''
- A new module is available: 'programs.mcfly'
- '';
- }
-
- {
- time = "2020-09-01T18:38:18+00:00";
- message = ''
- A new module is available: 'programs.ncmpcpp'
- '';
- }
-
- {
- time = "2020-09-11T10:06:47+00:00";
- condition = hostPlatform.isLinux && config.targets.genericLinux.enable;
- message = ''
- A new option 'targets.genericLinux.extraXdgDataDirs' is available
- to setup the user environment with the OS's data files.
-
- This is useful for example to get Bash completion for
- 'systemctl' which shouldn't be installed through Home Manager.
-
- This is also useful to have non Home Manager applications
- available in menus.
- '';
- }
-
- {
- time = "2020-09-09T06:54:59+00:00";
- condition = config.programs.man.enable;
- message = ''
- A new option 'programs.man.generateCaches' was added to
- support the apropos command.
- '';
- }
-
- {
- time = "2020-09-22T21:03:28+00:00";
- message = ''
- A new module is available: 'programs.pet'.
- '';
- }
-
- {
- time = "2020-09-29T21:21:44+00:00";
- message = ''
- A new module is available: 'programs.mu'.
- '';
- }
-
- {
- time = "2020-10-08T21:28:16+00:00";
- message = ''
- A new module is available: 'programs.autojump'
-
- The option `programs.bash.enableAutojump` is deprecated and this new
- module should be used instead.
- '';
- }
-
- {
- time = "2020-10-12T00:12:23+00:00";
- condition = config.programs.zsh.enable;
- message = ''
- A new zsh submodule is available: 'programs.zsh.prezto'.
- '';
- }
-
- {
- time = "2020-10-22T21:10:38+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.gammastep'.
- '';
- }
-
- {
- time = "2020-10-22T21:30:42+00:00";
- message = ''
- A new module is available: 'programs.gh'.
- '';
- }
-
- {
- time = "2020-11-01T11:17:02+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.caffeine'.
- '';
- }
-
- {
- time = "2020-11-05T22:59:21+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'programs.i3status-rust'.
- '';
- }
-
- {
- time = "2020-11-14T13:02:40+00:00";
- condition = config.programs.broot.enable;
- message = ''
- The '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,
-
- programs.broot.verbs = {
- "p" = { execution = ":parent"; };
- };
-
- becomes
-
- programs.broot.verbs = [
- {
- invocation = "p";
- execution = ":parent";
- }
- ];
- '';
- }
-
- {
- time = "2020-12-01T20:46:14+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.wlsunset'.
- '';
- }
-
- {
- time = "2020-12-09T22:34:33+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.pbgopy'.
- '';
- }
-
- {
- time = "2020-12-18T22:22:25+00:00";
- message = ''
- A new module is available: 'programs.rofi.pass'.
- '';
- }
-
- {
- time = "2020-12-31T14:16:47+00:00";
- message = ''
- A new module is available: 'programs.octant'.
- '';
- }
-
- {
- time = "2021-01-01T08:51:11+00:00";
- condition = config.pam.sessionVariables != {};
- message = ''
- The option 'pam.sessionVariables' will be deprecated in the future.
- This is due to PAM 1.5.0 deprecating reading of the user environment.
- The deprecation will not take place immediately but you may wish to
- consider alternatives to PAM environment variables.
-
- See
-
- https://github.com/nix-community/home-manager/issues/1691
-
- for discussion.
- '';
- }
-
- {
- time = "2021-01-02T07:49:15+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.plan9port'.
- '';
- }
-
- {
- time = "2021-01-31T11:23:30+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.playerctld'.
- '';
- }
-
- {
- time = "2021-01-28T15:07:34+00:00";
- condition = hostPlatform.isDarwin;
- message = ''
- New options are available for 'targets.darwin':
-
- - targets.darwin.defaults
-
- This adds options for configuring macOS through the defaults(1)
- system.
-
- - targets.darwin.keybindings
-
- This adds options for configuring the default keybindings for macOS
- text fields.
-
- - targets.darwin.search
-
- This adds options for configuring the default search engine for
- macOS.
- '';
- }
-
- {
- time = "2021-02-04T22:28:26+00:00";
- message = ''
- A new module is available: 'programs.sbt'.
- '';
- }
-
- {
- time = "2021-02-20T00:00:00+00:00";
- condition = config.services.polybar.enable;
- message = ''
- The polybar configuration can now be written in a more nix-friendly format.
- The new 'services.polybar.settings' option is an alternative to
- 'services.polybar.config' that supports nested keys and converts nix
- lists to polybar-style 'foo-0, foo-1, ...' lists.
- '';
- }
-
- {
- time = "2021-02-25T22:36:43+00:00";
- condition = config.programs.git.enable && any (msmtp: msmtp.enable)
- (mapAttrsToList (name: account: account.msmtp)
- config.accounts.email.accounts);
- message = ''
- Git will now defer to msmtp for sending emails if
- 'accounts.email.accounts..msmtp.enable' is true.
- '';
- }
-
- {
- time = "2021-03-03T22:16:05+00:00";
- message = ''
- Home Manager now respects the 'NO_COLOR' environment variable as per
- https://no-color.org/.
- '';
- }
-
- {
- time = "2021-03-29T21:05:50+00:00";
- message = ''
- Configuration specified by 'programs.dircolors.extraConfig' is now
- applied after 'programs.dircolors.settings'.
- '';
- }
-
- {
- time = "2021-04-11T20:44:54+00:00";
- message = ''
- A new module is available: 'programs.exa'.
- '';
- }
-
- {
- time = "2021-04-23T10:00:00+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.pass-secret-service'.
- '';
- }
-
- {
- time = "2021-04-26T07:00:00+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new service is available: 'services.poweralertd'.
- '';
- }
-
- {
- time = "2021-04-28T10:00:00+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new service is available: 'services.mpris-proxy'.
- '';
- }
-
- {
- time = "2021-04-28T12:00:00+00:00";
- message = ''
- A new module is available: 'programs.topgrade'.
- '';
- }
-
- {
- time = "2021-04-30T22:05:01+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new service is available: 'services.barrier'.
- '';
- }
-
- {
- time = "2021-05-01T15:16:08+00:00";
- message = ''
- A new module is available: 'programs.lazygit'.
- '';
- }
-
- {
- time = "2021-04-27T00:00:00+00:00";
- message = ''
- A new module is available: 'programs.ncspot'.
- '';
- }
-
- {
- time = "2021-05-02T11:22:42+00:00";
- condition = hostPlatform.isLinux && config.services.sxhkd.enable;
- message = ''
- The sxhkd service now is started using 'xsession.initExtra',
- therefore this module loses systemd service management capabilities
- and works only if Home Manager starts the user X session.
-
- The option 'services.sxhkd.extraPath' has been deprecated.
- '';
- }
-
- {
- time = "2021-05-06T20:47:37+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'services.etesync-dav'
- '';
- }
-
- {
- time = "2021-05-06T11:01:41+00:00";
- message = ''
- A new module is available: 'programs.nix-index'.
- '';
- }
-
- {
- time = "2021-05-10T18:50:07+00:00";
- message = ''
- A new module is available: 'xdg.systemDirs'. Options are:
-
- - xdg.systemDirs.config
-
- Extra directory names to add to $XDG_CONFIG_DIRS in the user
- session.
-
- - xdg.systemDirs.data
-
- Extra directory names to add to $XDG_DATA_DIRS in the user
- session.
-
- These variables are visible in both systemd user services and
- login shells.
- '';
- }
-
- {
- time = "2021-05-18T12:22:42+00:00";
- condition = config.services.syncthing != {};
- message = ''
- Setting 'services.syncthing.tray' as a boolean will be deprecated in
- the future.
-
- This is to make the syncthing tray package configurable, with
- `services.syncthing.tray.package`, following QSyncthingTray becoming
- no longer actively maintained. The default syncthing tray package has
- also changed to https://github.com/Martchus/syncthingtray. To
- continue as before, set `services.syncthing.tray.enable`.
-
- See
-
- https://github.com/nix-community/home-manager/pull/1257
-
- for discussion.
- '';
- }
-
- {
- time = "2021-05-18T20:28:50+00:00";
- condition = hostPlatform.isLinux;
- message = ''
- A new module is available: 'programs.foot'.
- '';
- }
-
- {
- time = "2021-05-23T18:31:38+00:00";
- condition = config.programs.mbsync.enable;
- message = ''
- mbsync channels no longer accepts the masterPattern or slavePattern
- attribute keys. This is due to an upstream change.
- They have been renamed: masterPattern -> farPattern, and
- slavePattern -> nearPattern.
- This is a stateful change, where the database file(s) used to keep track
- of mail are silently upgraded once you upgrade both your configuration file
- and the mbsync program.
-
- Note that this change is non-reversible, meaning once you choose to switch to
- near/farPattern, you can no longer use your previous slave/masterPattern
- configuration file.
- '';
- }
-
- {
- time = "2021-05-10T20:41:44+00:00";
- message = ''
- A new module is available: 'programs.rbw'.
- '';
- }
-
- {
- time = "2021-05-30T15:22:10+00:00";
- message = ''
- A new module is available: 'programs.piston-cli'.
- '';
- }
-
{
time = "2021-06-02T04:24:10+00:00";
condition = hostPlatform.isLinux;
@@ -2280,6 +355,537 @@ in
modules.
'';
}
+
+ {
+ time = "2021-12-08T10:23:42+00:00";
+ condition = config.programs.less.enable;
+ message = ''
+ The 'lesskey' configuration file is now stored under
+ '$XDG_CONFIG_HOME/lesskey' since it is fully supported upstream
+ starting from v596.
+ '';
+ }
+
+ {
+ time = "2021-12-10T23:19:57+00:00";
+ message = ''
+ A new module is available: 'programs.sqls'.
+ '';
+ }
+
+ {
+ time = "2021-12-11T11:55:12+00:00";
+ message = ''
+ A new module is available: 'programs.navi'.
+ '';
+ }
+
+ {
+ time = "2021-12-11T16:07:00+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.gromit-mpx'.
+ '';
+ }
+
+ {
+ time = "2021-12-12T17:09:38+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.opensnitch-ui'.
+ '';
+ }
+
+ {
+ time = "2021-12-21T22:17:30+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.systembus-notify'.
+ '';
+ }
+
+ {
+ time = "2021-12-31T09:39:20+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'xsession.windowManager.herbstluftwm'.
+ '';
+ }
+
+ {
+ time = "2022-01-03T10:34:45+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.swayidle'.
+ '';
+ }
+
+ {
+ time = "2022-01-11T12:26:43+00:00";
+ message = ''
+ A new module is available: 'programs.sagemath'.
+ '';
+ }
+
+ {
+ time = "2022-01-22T14:36:25+00:00";
+ message = ''
+ A new module is available: 'programs.helix'.
+ '';
+ }
+
+ {
+ time = "2022-01-22T15:12:20+00:00";
+ message = ''
+ A new module is available: 'programs.watson'.
+ '';
+ }
+
+ {
+ time = "2022-01-22T15:33:42+00:00";
+ message = ''
+ A new module is available: 'programs.timidity'.
+ '';
+ }
+
+ {
+ time = "2022-01-22T16:54:31+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'programs.tint2'.
+ '';
+ }
+
+ {
+ time = "2022-01-22T17:39:20+00:00";
+ message = ''
+ A new module is available: 'programs.pandoc'.
+ '';
+ }
+
+ {
+ time = "2022-01-26T22:08:29+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'programs.kodi'.
+ '';
+ }
+
+ {
+ time = "2022-02-03T23:23:49+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.twmn'.
+ '';
+ }
+
+ {
+ time = "2022-02-16T23:50:35+00:00";
+ message = ''
+ A new module is available: 'programs.zellij'.
+ '';
+ }
+
+ {
+ time = "2022-02-17T17:12:46+00:00";
+ message = ''
+ A new module is available: 'programs.eww'.
+ '';
+ }
+
+ {
+ time = "2022-02-17T23:11:13+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.espanso'.
+ '';
+ }
+
+ {
+ time = "2022-02-24T22:35:22+00:00";
+ message = ''
+ A new module is available: 'programs.gitui'.
+ '';
+ }
+
+ {
+ time = "2022-02-26T09:28:57+00:00";
+ condition = hostPlatform.isDarwin;
+ message = ''
+ A new module is available: 'launchd.agents'
+
+ Use this to enable services based on macOS LaunchAgents.
+ '';
+ }
+
+ {
+ time = "2022-03-06T08:50:32+00:00";
+ message = ''
+ A new module is available: 'programs.just'.
+ '';
+ }
+
+ {
+ time = "2022-03-06T09:40:17+00:00";
+ message = ''
+ A new module is available: 'programs.pubs'.
+ '';
+ }
+
+ {
+ time = "2022-03-13T20:59:38+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.fusuma'.
+ '';
+ }
+
+ {
+ time = "2022-05-02T20:55:46+00:00";
+ message = ''
+ A new module is available: 'programs.tealdeer'.
+ '';
+ }
+
+ {
+ time = "2022-05-18T22:09:45+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.mopidy'.
+ '';
+ }
+
+ {
+ time = "2022-06-21T22:29:37+00:00";
+ message = ''
+ A new module is available: 'programs.mujmap'.
+ '';
+ }
+
+ {
+ time = "2022-06-24T17:18:32+00:00";
+ message = ''
+ A new module is available: 'programs.micro'.
+ '';
+ }
+
+ {
+ time = "2022-06-24T22:40:27+00:00";
+ message = ''
+ A new module is available: 'programs.pistol'.
+ '';
+ }
+
+ {
+ time = "2022-06-26T19:29:25+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.sctd'.
+ '';
+ }
+
+ {
+ time = "2022-07-12T08:59:50+00:00";
+ condition = config.services.picom.enable;
+ message = ''
+ 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'. 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' instead.
+ '';
+ }
+
+ {
+ time = "2022-07-13T13:28:54+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'programs.librewolf'.
+ '';
+ }
+
+ {
+ time = "2022-07-24T13:17:01+00:00";
+ condition = hostPlatform.isDarwin;
+ message = ''
+ A new option is available: 'targets.darwin.currentHostDefaults'.
+
+ This exposes macOS preferences that are available through the
+ 'defaults -currentHost' command.
+ '';
+ }
+
+ {
+ time = "2022-07-25T11:29:14+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'xsession.windowManager.spectrwm'.
+ '';
+ }
+
+ {
+ time = "2022-07-27T12:22:37+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.recoll'.
+ '';
+ }
+
+ {
+ time = "2022-08-01T16:35:28+00:00";
+ message = ''
+ A new module is available: 'programs.hyfetch'.
+ '';
+ }
+
+ {
+ time = "2022-08-07T09:07:35+00:00";
+ message = ''
+ A new module is available: 'programs.wezterm'.
+ '';
+ }
+
+ {
+ time = "2022-08-08T16:11:22+00:00";
+ message = ''
+ A new module is available: 'programs.bashmount'.
+ '';
+ }
+
+ {
+ time = "2022-08-25T21:01:37+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.pueue'.
+ '';
+ }
+
+ {
+ time = "2022-09-05T12:33:11+00:00";
+ message = ''
+ A new module is available: 'programs.btop'.
+ '';
+ }
+
+ {
+ time = "2022-09-05T11:05:25+00:00";
+ message = ''
+ A new module is available: 'editorconfig'.
+ '';
+ }
+
+ {
+ time = "2022-09-08T15:41:46+00:00";
+ message = ''
+ A new module is available: 'programs.nheko'.
+ '';
+ }
+
+ {
+ time = "2022-09-08T17:50:43+00:00";
+ message = ''
+ A new module is available: 'programs.yt-dlp'.
+ '';
+ }
+
+ {
+ time = "2022-09-09T09:55:50+00:00";
+ message = ''
+ A new module is available: 'programs.gallery-dl'.
+ '';
+ }
+
+ {
+ time = "2022-09-21T22:42:42+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'xsession.windowManager.fluxbox'.
+ '';
+ }
+
+ {
+ time = "2022-09-25T21:00:05+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.safeeyes'.
+ '';
+ }
+
+ {
+ time = "2022-09-25T22:22:17+00:00";
+ message = ''
+ A new module is available: 'programs.tmate'.
+ '';
+ }
+
+ {
+ time = "2022-09-29T13:43:02+00:00";
+ message = ''
+ A new module is available: 'programs.pls'.
+ '';
+ }
+
+ {
+ time = "2022-10-06T23:06:08+00:00";
+ message = ''
+ A new module is available: 'programs.ledger'.
+ '';
+ }
+
+ {
+ time = "2022-10-06T23:19:10+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'programs.havoc'.
+ '';
+ }
+
+ {
+ time = "2022-10-12T23:10:48+00:00";
+ message = ''
+ A new module is available: 'programs.discocss'.
+ '';
+ }
+
+ {
+ time = "2022-10-16T19:49:46+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ Two new modules are available:
+
+ - 'programs.borgmatic' and
+ - 'services.borgmatic'.
+
+ use the first to configure the borgmatic tool and the second if you
+ want to automatically run scheduled backups.
+ '';
+ }
+
+ {
+ time = "2022-10-18T08:07:43+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'programs.looking-glass-client'.
+ '';
+ }
+
+ {
+ time = "2022-10-22T17:52:30+00:00";
+ condition = config.programs.firefox.enable;
+ message = ''
+ It is now possible to configure the default search engine in Firefox
+ with
+
+ programs.firefox.profiles..search.default
+
+ and add custom engines with
+
+ programs.firefox.profiles..search.engines.
+
+ It is also recommended to set
+
+ programs.firefox.profiles..search.force = true
+
+ since Firefox will replace the symlink for the search configuration on
+ every launch, but note that you'll lose any existing configuration by
+ enabling this.
+ '';
+ }
+
+ {
+ time = "2022-10-24T22:05:27+00:00";
+ message = ''
+ A new module is available: 'programs.k9s'.
+ '';
+ }
+
+ {
+ time = "2022-11-01T23:57:50+00:00";
+ message = ''
+ A new module is available: 'programs.oh-my-posh'.
+ '';
+ }
+
+ {
+ time = "2022-11-02T10:56:14+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'xfconf'.
+ '';
+ }
+
+ {
+ time = "2022-11-04T14:56:46+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'programs.thunderbird'.
+ '';
+ }
+
+ {
+ time = "2022-11-13T09:05:51+00:00";
+ condition = hostPlatform.isDarwin;
+ message = ''
+ A new module is available: 'programs.thunderbird'.
+
+ Please note that the Thunderbird packages provided by Nix are
+ currently not working on macOS. The module can still be used to manage
+ configuration files by installing Thunderbird manually and setting the
+ 'programs.thunderbird.package' option to a dummy package, for example
+ using 'pkgs.runCommand'.
+
+ This module requires you to set the following environment variables
+ when using an installation of Thunderbird that is not provided by Nix:
+
+ export MOZ_LEGACY_PROFILES=1
+ export MOZ_ALLOW_DOWNGRADE=1
+ '';
+ }
+
+ {
+ time = "2022-11-27T13:14:01+00:00";
+ condition = config.programs.ssh.enable;
+ message = ''
+ 'programs.ssh.matchBlocks.*' now supports literal 'Match' blocks via
+ 'programs.ssh.matchBlocks.*.match' option as an alternative to plain
+ 'Host' blocks
+ '';
+ }
+
+ {
+ time = "2022-12-16T15:01:20+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.megasync'.
+ '';
+ }
+
+ {
+ time = "2022-12-25T08:41:32+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.cachix-agent'.
+ '';
+ }
+
+ {
+ time = "2022-12-28T21:48:22+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ A new module is available: 'services.clipman'.
+ '';
+ }
+
+ {
+ time = "2023-01-07T10:47:03+00:00";
+ condition = hostPlatform.isLinux;
+ message = ''
+ 'xsession.windowManager.i3.config.[window|floating].titlebar' and
+ 'wayland.windowManager.sway.config.[window|floating].titlebar' now default to 'true'.
+ '';
+ }
];
};
}
diff --git a/third_party/home-manager/modules/misc/nix.nix b/third_party/home-manager/modules/misc/nix.nix
new file mode 100644
index 0000000000..6ae28157a3
--- /dev/null
+++ b/third_party/home-manager/modules/misc/nix.nix
@@ -0,0 +1,240 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+
+ cfg = config.nix;
+
+ nixPackage = cfg.package;
+
+ isNixAtLeast = versionAtLeast (getVersion nixPackage);
+
+ nixConf = assert isNixAtLeast "2.2";
+ let
+
+ mkValueString = v:
+ if v == null then
+ ""
+ else if isInt v then
+ toString v
+ else if isBool v then
+ boolToString v
+ else if isFloat v then
+ floatToString v
+ else if isList v then
+ toString v
+ else if isDerivation v then
+ toString v
+ else if builtins.isPath v then
+ toString v
+ else if isString v then
+ v
+ else if isCoercibleToString v then
+ toString v
+ else
+ abort "The nix conf value: ${toPretty { } v} can not be encoded";
+
+ mkKeyValue = k: v: "${escape [ "=" ] k} = ${mkValueString v}";
+
+ mkKeyValuePairs = attrs:
+ concatStringsSep "\n" (mapAttrsToList mkKeyValue attrs);
+
+ in pkgs.writeTextFile {
+ name = "nix.conf";
+ text = ''
+ # WARNING: this file is generated from the nix.settings option in
+ # your Home Manager configuration at $XDG_CONFIG_HOME/nix/nix.conf.
+ # Do not edit it!
+ ${mkKeyValuePairs cfg.settings}
+ ${cfg.extraOptions}
+ '';
+ checkPhase =
+ if pkgs.stdenv.hostPlatform != pkgs.stdenv.buildPlatform then ''
+ echo "Ignoring validation for cross-compilation"
+ '' else ''
+ echo "Validating generated nix.conf"
+ ln -s $out ./nix.conf
+ set -e
+ set +o pipefail
+ NIX_CONF_DIR=$PWD \
+ ${cfg.package}/bin/nix show-config ${
+ optionalString (isNixAtLeast "2.3pre")
+ "--no-net --option experimental-features nix-command"
+ } \
+ |& sed -e 's/^warning:/error:/' \
+ | (! grep '${
+ if cfg.checkConfig then "^error:" else "^error: unknown setting"
+ }')
+ set -o pipefail
+ '';
+ };
+
+ semanticConfType = with types;
+ let
+ confAtom = nullOr (oneOf [ bool int float str path package ]) // {
+ description =
+ "Nix config atom (null, bool, int, float, str, path or package)";
+ };
+ in attrsOf (either confAtom (listOf confAtom));
+
+ jsonFormat = pkgs.formats.json { };
+
+in {
+ options.nix = {
+ enable = mkEnableOption ''
+ the Nix configuration module
+ '' // {
+ default = true;
+ visible = false;
+ };
+
+ package = mkOption {
+ type = types.nullOr types.package;
+ default = null;
+ example = literalExpression "pkgs.nix";
+ description = ''
+ The Nix package that the configuration should be generated for.
+ '';
+ };
+
+ registry = mkOption {
+ type = types.attrsOf (types.submodule (let
+ inputAttrs = types.attrsOf
+ (types.oneOf [ types.str types.int types.bool types.package ]);
+ in { config, name, ... }: {
+ options = {
+ from = mkOption {
+ type = inputAttrs;
+ example = {
+ type = "indirect";
+ id = "nixpkgs";
+ };
+ description = "The flake reference to be rewritten.";
+ };
+ to = mkOption {
+ type = inputAttrs;
+ example = {
+ type = "github";
+ owner = "my-org";
+ repo = "my-nixpkgs";
+ };
+ description =
+ "The flake reference to which is to be rewritten.";
+ };
+ flake = mkOption {
+ type = types.nullOr types.attrs;
+ default = null;
+ example = literalExpression "nixpkgs";
+ description = ''
+ The flake input to which is to be rewritten.
+ '';
+ };
+ exact = mkOption {
+ type = types.bool;
+ default = true;
+ description = ''
+ Whether the reference needs to match exactly. If set,
+ a reference like nixpkgs does not
+ match with a reference like nixpkgs/nixos-20.03.
+ '';
+ };
+ };
+ config = {
+ from = mkDefault {
+ type = "indirect";
+ id = name;
+ };
+ to = mkIf (config.flake != null) ({
+ type = "path";
+ path = config.flake.outPath;
+ } // lib.filterAttrs (n: v:
+ n == "lastModified" || n == "rev" || n == "revCount" || n
+ == "narHash") config.flake);
+ };
+ }));
+ default = { };
+ description = ''
+ User level flake registry.
+ '';
+ };
+
+ registryVersion = mkOption {
+ type = types.int;
+ default = 2;
+ internal = true;
+ description = "The flake registry format version.";
+ };
+
+ checkConfig = mkOption {
+ type = types.bool;
+ default = true;
+ description = ''
+ If enabled (the default), checks for data type mismatches and that Nix
+ can parse the generated nix.conf.
+ '';
+ };
+
+ extraOptions = mkOption {
+ type = types.lines;
+ default = "";
+ example = ''
+ keep-outputs = true
+ keep-derivations = true
+ '';
+ description =
+ "Additional text appended to nix.conf.";
+ };
+
+ settings = mkOption {
+ type = types.submodule { freeformType = semanticConfType; };
+ default = { };
+ example = literalExpression ''
+ {
+ use-sandbox = true;
+ show-trace = true;
+ system-features = [ "big-parallel" "kvm" "recursive-nix" ];
+ }
+ '';
+ description = ''
+ Configuration for Nix, see
+ or
+
+ nix.conf
+ 5
+ for available options.
+ The value declared here will be translated directly to the key-value pairs Nix expects.
+
+
+ Configuration specified in which will be appended
+ verbatim to the resulting config file.
+ '';
+ };
+ };
+
+ config = mkIf cfg.enable {
+ assertions = [{
+ assertion = cfg.settings == { } || cfg.package != null;
+ message = ''
+ A corresponding Nix package must be specified via `nix.package` for generating
+ nix.conf.
+ '';
+ }];
+
+ xdg.configFile = {
+ "nix/registry.json" = mkIf (cfg.registry != { }) {
+ source = jsonFormat.generate "registry.json" {
+ version = cfg.registryVersion;
+ flakes =
+ mapAttrsToList (n: v: { inherit (v) from to exact; }) cfg.registry;
+ };
+ };
+
+ "nix/nix.conf" = mkIf (cfg.settings != { } || cfg.extraOptions != "") {
+ source = nixConf;
+ };
+ };
+ };
+
+ meta.maintainers = [ maintainers.polykernel ];
+}
diff --git a/third_party/home-manager/modules/misc/pam.nix b/third_party/home-manager/modules/misc/pam.nix
index c94efb5067..cf3321ffba 100644
--- a/third_party/home-manager/modules/misc/pam.nix
+++ b/third_party/home-manager/modules/misc/pam.nix
@@ -4,10 +4,10 @@ with lib;
let
- vars = config.pam.sessionVariables;
+ cfg = config.pam;
in {
- meta.maintainers = [ maintainers.rycee ];
+ meta.maintainers = with maintainers; [ rycee veehaitch ];
options = {
pam.sessionVariables = mkOption {
@@ -26,10 +26,46 @@ in {
therefore discouraged.
'';
};
+
+ pam.yubico.authorizedYubiKeys = {
+ ids = mkOption {
+ type = with types;
+ let
+ yubiKeyId = addCheck str (s: stringLength s == 12) // {
+ name = "yubiKeyId";
+ description = "string of length 12";
+ };
+ in listOf yubiKeyId;
+ default = [ ];
+ description = ''
+ List of authorized YubiKey token IDs. Refer to
+
+ for details on how to obtain the token ID of a YubiKey.
+ '';
+ };
+
+ path = mkOption {
+ type = types.str;
+ default = ".yubico/authorized_yubikeys";
+ description = ''
+ File path to write the authorized YubiKeys,
+ relative to HOME.
+ '';
+ };
+ };
};
- config = mkIf (vars != { }) {
- home.file.".pam_environment".text = concatStringsSep "\n"
- (mapAttrsToList (n: v: ''${n} OVERRIDE="${toString v}"'') vars) + "\n";
- };
+ config = mkMerge [
+ (mkIf (cfg.sessionVariables != { }) {
+ home.file.".pam_environment".text = concatStringsSep "\n"
+ (mapAttrsToList (n: v: ''${n} OVERRIDE="${toString v}"'')
+ cfg.sessionVariables) + "\n";
+ })
+
+ (mkIf (cfg.yubico.authorizedYubiKeys.ids != [ ]) {
+ home.file.${cfg.yubico.authorizedYubiKeys.path}.text =
+ concatStringsSep ":"
+ ([ config.home.username ] ++ cfg.yubico.authorizedYubiKeys.ids);
+ })
+ ];
}
diff --git a/third_party/home-manager/modules/misc/specialization.nix b/third_party/home-manager/modules/misc/specialization.nix
new file mode 100644
index 0000000000..67e593e2c4
--- /dev/null
+++ b/third_party/home-manager/modules/misc/specialization.nix
@@ -0,0 +1,71 @@
+{ config, extendModules, lib, ... }:
+
+with lib;
+
+{
+ options.specialization = mkOption {
+ type = types.attrsOf (types.submodule {
+ options = {
+ configuration = mkOption {
+ type = let
+ stopRecursion = { specialization = mkOverride 0 { }; };
+ extended = extendModules { modules = [ stopRecursion ]; };
+ in extended.type;
+ default = { };
+ visible = "shallow";
+ description = ''
+ Arbitrary Home Manager configuration settings.
+ '';
+ };
+ };
+ });
+ default = { };
+ description = ''
+ A set of named specialized configurations. These can be used to extend
+ your base configuration with additional settings. For example, you can
+ have specializations named light and dark
+ that applies light and dark color theme configurations.
+
+
+
+ Note, this is an experimental option for now and you therefore have to
+ activate the specialization by looking up and running the activation
+ script yourself. Note, running the activation script will create a new
+ Home Manager generation.
+
+
+
+ For example, to activate the dark specialization. You can
+ first look up your current Home Manager generation by running
+
+
+ $ home-manager generations | head -1
+ 2022-05-02 22:49 : id 1758 -> /nix/store/jy…ac-home-manager-generation
+
+
+ then run
+
+
+ $ /nix/store/jy…ac-home-manager-generation/specialization/dark/activate
+ Starting Home Manager activation
+ …
+
+
+
+
+ WARNING! Since this option is experimental, the activation process may
+ change in backwards incompatible ways.
+ '';
+ };
+
+ config = mkIf (config.specialization != { }) {
+ home.extraBuilderCommands = let
+ link = n: v:
+ let pkg = v.configuration.home.activationPackage;
+ in "ln -s ${pkg} $out/specialization/${n}";
+ in ''
+ mkdir $out/specialization
+ ${concatStringsSep "\n" (mapAttrsToList link config.specialization)}
+ '';
+ };
+}
diff --git a/third_party/home-manager/modules/misc/version.nix b/third_party/home-manager/modules/misc/version.nix
index 9673c0ffa5..0c590372a0 100644
--- a/third_party/home-manager/modules/misc/version.nix
+++ b/third_party/home-manager/modules/misc/version.nix
@@ -15,8 +15,9 @@ with lib;
"21.05"
"21.11"
"22.05"
+ "22.11"
+ "23.05"
];
- default = "18.09";
description = ''
It is occasionally necessary for Home Manager to change
configuration defaults in a way that is incompatible with
@@ -30,5 +31,39 @@ with lib;
conversion or moving files.
'';
};
+
+ home.version = {
+ full = mkOption {
+ internal = true;
+ readOnly = true;
+ type = types.str;
+ default = let
+ inherit (config.home.version) release revision;
+ suffix =
+ optionalString (revision != null) "+${substring 0 8 revision}";
+ in "${release}${suffix}";
+ example = "22.11+213a0629";
+ description = "The full Home Manager version.";
+ };
+
+ release = mkOption {
+ internal = true;
+ readOnly = true;
+ type = types.str;
+ default = fileContents ../../.release;
+ example = "22.11";
+ description = "The Home Manager release.";
+ };
+
+ revision = mkOption {
+ internal = true;
+ type = types.nullOr types.str;
+ default = let gitRepo = "${toString ./../..}/.git";
+ in if pathIsGitRepo gitRepo then commitIdFromGitRepo gitRepo else null;
+ description = ''
+ The Git revision from which this Home Manager configuration was built.
+ '';
+ };
+ };
};
}
diff --git a/third_party/home-manager/modules/misc/xdg-desktop-entries.nix b/third_party/home-manager/modules/misc/xdg-desktop-entries.nix
index 6e8393c2a6..3274f6ec94 100644
--- a/third_party/home-manager/modules/misc/xdg-desktop-entries.nix
+++ b/third_party/home-manager/modules/misc/xdg-desktop-entries.nix
@@ -4,8 +4,14 @@ with lib;
let
desktopEntry = {
+ imports = [
+ (mkRemovedOptionModule [ "extraConfig" ]
+ "The `extraConfig` option of `xdg.desktopEntries` has been removed following a change in Nixpkgs.")
+ (mkRemovedOptionModule [ "fileValidation" ]
+ "Validation of the desktop file is always enabled.")
+ ];
options = {
- # Since this module uses the nixpkgs/pkgs/build-support/make-desktopitem function,
+ # Since this module uses the nixpkgs/pkgs/build-support/make-desktopitem function,
# our options and defaults follow its parameters, with the following exceptions:
# `desktopName` on makeDesktopItem is controlled by `name`.
@@ -13,17 +19,10 @@ let
# `name` on makeDesktopItem is controlled by this module's key in the attrset.
# This is the file's filename excluding ".desktop".
- # `extraEntries` on makeDesktopItem is controlled by `extraConfig`,
- # and `extraDesktopEntries` by `settings`,
+ # `extraConfig` on makeDesktopItem is controlled by `settings`,
# to match what's commonly used by other home manager modules.
- # `startupNotify` on makeDesktopItem asks for "true" or "false" strings,
- # for usability's sake we ask for a boolean.
-
- # `mimeType` and `categories` on makeDesktopItem ask for a string in the format "one;two;three;",
- # for the same reason we ask for a list of strings.
-
- # Descriptions are taken from the desktop entry spec:
+ # Descriptions are taken from the desktop entry spec:
# https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#recognized-keys
type = mkOption {
@@ -34,12 +33,12 @@ let
exec = mkOption {
description = "Program to execute, possibly with arguments.";
- type = types.str;
+ type = types.nullOr types.str;
};
icon = mkOption {
description = "Icon to display in file manager, menus, etc.";
- type = types.nullOr types.str;
+ type = with types; nullOr (either str path);
default = null;
};
@@ -81,27 +80,35 @@ let
startupNotify = mkOption {
description = ''
- If true, it is KNOWN that the application will send a "remove"
- message when started with the DESKTOP_STARTUP_ID
- environment variable set. If false, it is KNOWN that the application
+ If true, it is KNOWN that the application will send a "remove"
+ message when started with the DESKTOP_STARTUP_ID
+ environment variable set. If false, it is KNOWN that the application
does not work with startup notification at all.'';
type = types.nullOr types.bool;
default = null;
};
- extraConfig = mkOption {
+ noDisplay = mkOption {
description = ''
- Extra configuration. Will be appended to the end of the file and
- may thus contain extra sections.
+ Means "this application exists, but don't display it in the menus".
+ This can be useful to e.g. associate this application with MIME types.
'';
- type = types.lines;
- default = "";
+ type = types.nullOr types.bool;
+ default = null;
+ };
+
+ prefersNonDefaultGPU = mkOption {
+ description = ''
+ If true, the application prefers to be run on a more powerful discrete GPU if available.
+ '';
+ type = types.nullOr types.bool;
+ default = null;
};
settings = mkOption {
type = types.attrsOf types.string;
description = ''
- Extra key-value pairs to add to the [Desktop Entry] section.
+ Extra key-value pairs to add to the [Desktop Entry] section.
This may override other values.
'';
default = { };
@@ -113,41 +120,66 @@ let
'';
};
- fileValidation = mkOption {
- type = types.bool;
- description = "Whether to validate the generated desktop file.";
- default = true;
+ actions = mkOption {
+ type = types.attrsOf (types.submodule ({ name, ... }: {
+ options.name = mkOption {
+ type = types.str;
+ default = name;
+ defaultText = literalExpression "";
+ description = "Name of the action.";
+ };
+ options.exec = mkOption {
+ type = types.nullOr types.str;
+ description = "Program to execute, possibly with arguments.";
+ };
+ options.icon = mkOption {
+ type = with types; nullOr (either str path);
+ default = null;
+ description = "Icon to display in file manager, menus, etc.";
+ };
+ }));
+ default = { };
+ defaultText = literalExpression "{ }";
+ example = literalExpression ''
+ {
+ "New Window" = {
+ exec = "''${pkgs.firefox}/bin/firefox --new-window %u";
+ };
+ }
+ '';
+ description =
+ "The set of actions made available to application launchers.";
+ };
+
+ # Required for the assertions
+ # TODO: Remove me once https://github.com/NixOS/nixpkgs/issues/96006 is fixed
+ assertions = mkOption {
+ type = types.listOf types.unspecified;
+ default = [ ];
+ visible = false;
+ internal = true;
};
};
};
#formatting helpers
- ifNotNull = a: a': if a == null then null else a';
- stringBool = bool: if bool then "true" else "false";
semicolonList = list:
(concatStringsSep ";" list) + ";"; # requires trailing semicolon
#passes config options to makeDesktopItem in expected format
makeFile = name: config:
pkgs.makeDesktopItem {
- name = name;
- type = config.type;
- exec = config.exec;
- icon = config.icon;
- comment = config.comment;
- terminal = config.terminal;
+ inherit name;
+ inherit (config)
+ type exec icon comment terminal genericName startupNotify noDisplay
+ prefersNonDefaultGPU actions;
desktopName = config.name;
- genericName = config.genericName;
- mimeType = ifNotNull config.mimeType (semicolonList config.mimeType);
- categories =
- ifNotNull config.categories (semicolonList config.categories);
- startupNotify =
- ifNotNull config.startupNotify (stringBool config.startupNotify);
- extraEntries = config.extraConfig;
- extraDesktopEntries = config.settings;
+ mimeTypes = optionals (config.mimeType != null) config.mimeType;
+ categories = optionals (config.categories != null) config.categories;
+ extraConfig = config.settings;
};
in {
- meta.maintainers = with maintainers; [ cwyc ];
+ meta.maintainers = [ hm.maintainers.cwyc ];
options.xdg.desktopEntries = mkOption {
description = ''
@@ -174,7 +206,7 @@ in {
config = mkIf (config.xdg.desktopEntries != { }) {
assertions = [
(hm.assertions.assertPlatform "xdg.desktopEntries" pkgs platforms.linux)
- ];
+ ] ++ flatten (catAttrs "assertions" (attrValues config.xdg.desktopEntries));
home.packages = (map hiPrio # we need hiPrio to override existing entries
(attrsets.mapAttrsToList makeFile config.xdg.desktopEntries));
diff --git a/third_party/home-manager/modules/misc/xdg-mime-apps.nix b/third_party/home-manager/modules/misc/xdg-mime-apps.nix
index 5372c6259f..2093caa2da 100644
--- a/third_party/home-manager/modules/misc/xdg-mime-apps.nix
+++ b/third_party/home-manager/modules/misc/xdg-mime-apps.nix
@@ -72,20 +72,50 @@ in {
};
};
- config = mkIf cfg.enable {
- assertions =
- [ (hm.assertions.assertPlatform "xdg.mimeApps" pkgs platforms.linux) ];
+ config = mkMerge [
+ {
+ # Given a package that installs .desktop files in the usual location,
+ # return a mapping from mime types to lists of desktop file names. This is
+ # suitable for use with `xdg.mimeApps.defaultApplications`.
+ lib.xdg.mimeAssociations = let
+ processLines = str:
+ zipAttrs
+ (filter (e: e != null) (map processLine (splitString "\n" str)));
- # Deprecated but still used by some applications.
- xdg.dataFile."applications/mimeapps.list".source =
- config.xdg.configFile."mimeapps.list".source;
+ processLine = str:
+ let
+ entry = splitString ";" str;
+ k = elemAt entry 0;
+ v = elemAt entry 1;
+ in if length entry == 2 then { ${k} = v; } else null;
- xdg.configFile."mimeapps.list".text =
- let joinValues = mapAttrs (n: concatStringsSep ";");
- in generators.toINI { } {
- "Added Associations" = joinValues cfg.associations.added;
- "Removed Associations" = joinValues cfg.associations.removed;
- "Default Applications" = joinValues cfg.defaultApplications;
- };
- };
+ associations = ps:
+ pkgs.runCommand "mime-assoc" { inherit ps; } ''
+ for p in $ps ; do
+ for path in "$p"/share/applications/*.desktop ; do
+ name="''${path##*/}"
+ sed -n -E "/^MimeType=/ { s/.*=//; s/;?$|;/;$name\n/g; p; }" "$path"
+ done
+ done > "$out"
+ '';
+ in p: processLines (builtins.readFile (associations p));
+ }
+
+ (mkIf cfg.enable {
+ assertions =
+ [ (hm.assertions.assertPlatform "xdg.mimeApps" pkgs platforms.linux) ];
+
+ # Deprecated but still used by some applications.
+ xdg.dataFile."applications/mimeapps.list".source =
+ config.xdg.configFile."mimeapps.list".source;
+
+ xdg.configFile."mimeapps.list".text =
+ let joinValues = mapAttrs (n: concatStringsSep ";");
+ in generators.toINI { } {
+ "Added Associations" = joinValues cfg.associations.added;
+ "Removed Associations" = joinValues cfg.associations.removed;
+ "Default Applications" = joinValues cfg.defaultApplications;
+ };
+ })
+ ];
}
diff --git a/third_party/home-manager/modules/misc/xdg-user-dirs.nix b/third_party/home-manager/modules/misc/xdg-user-dirs.nix
index 78d350cdec..2ea07709aa 100644
--- a/third_party/home-manager/modules/misc/xdg-user-dirs.nix
+++ b/third_party/home-manager/modules/misc/xdg-user-dirs.nix
@@ -33,57 +33,78 @@ in {
# https://gitlab.freedesktop.org/xdg/xdg-user-dirs/blob/master/man/user-dirs.dirs.xml
desktop = mkOption {
- type = types.str;
- default = "$HOME/Desktop";
+ type = with types; nullOr (coercedTo path toString str);
+ default = "${config.home.homeDirectory}/Desktop";
+ defaultText =
+ literalExpression ''"''${config.home.homeDirectory}/Desktop"'';
description = "The Desktop directory.";
};
documents = mkOption {
- type = types.str;
- default = "$HOME/Documents";
+ type = with types; nullOr (coercedTo path toString str);
+ default = "${config.home.homeDirectory}/Documents";
+ defaultText =
+ literalExpression ''"''${config.home.homeDirectory}/Documents"'';
description = "The Documents directory.";
};
download = mkOption {
- type = types.str;
- default = "$HOME/Downloads";
+ type = with types; nullOr (coercedTo path toString str);
+ default = "${config.home.homeDirectory}/Downloads";
+ defaultText =
+ literalExpression ''"''${config.home.homeDirectory}/Downloads"'';
description = "The Downloads directory.";
};
music = mkOption {
- type = types.str;
- default = "$HOME/Music";
+ type = with types; nullOr (coercedTo path toString str);
+ default = "${config.home.homeDirectory}/Music";
+ defaultText =
+ literalExpression ''"''${config.home.homeDirectory}/Music"'';
description = "The Music directory.";
};
pictures = mkOption {
- type = types.str;
- default = "$HOME/Pictures";
+ type = with types; nullOr (coercedTo path toString str);
+ default = "${config.home.homeDirectory}/Pictures";
+ defaultText =
+ literalExpression ''"''${config.home.homeDirectory}/Pictures"'';
description = "The Pictures directory.";
};
publicShare = mkOption {
- type = types.str;
- default = "$HOME/Public";
+ type = with types; nullOr (coercedTo path toString str);
+ default = "${config.home.homeDirectory}/Public";
+ defaultText =
+ literalExpression ''"''${config.home.homeDirectory}/Public"'';
description = "The Public share directory.";
};
templates = mkOption {
- type = types.str;
- default = "$HOME/Templates";
+ type = with types; nullOr (coercedTo path toString str);
+ default = "${config.home.homeDirectory}/Templates";
+ defaultText =
+ literalExpression ''"''${config.home.homeDirectory}/Templates"'';
description = "The Templates directory.";
};
videos = mkOption {
- type = types.str;
- default = "$HOME/Videos";
+ type = with types; nullOr (coercedTo path toString str);
+ default = "${config.home.homeDirectory}/Videos";
+ defaultText =
+ literalExpression ''"''${config.home.homeDirectory}/Videos"'';
description = "The Videos directory.";
};
extraConfig = mkOption {
- type = with types; attrsOf str;
+ type = with types; attrsOf (coercedTo path toString str);
default = { };
- example = { XDG_MISC_DIR = "$HOME/Misc"; };
+ defaultText = literalExpression "{ }";
+ example = literalExpression ''
+ {
+ XDG_MISC_DIR = "''${config.home.homeDirectory}/Misc";
+ }
+ '';
description = "Other user directories.";
};
@@ -92,7 +113,7 @@ in {
};
config = let
- directories = {
+ directories = (filterAttrs (n: v: !isNull v) {
XDG_DESKTOP_DIR = cfg.desktop;
XDG_DOCUMENTS_DIR = cfg.documents;
XDG_DOWNLOAD_DIR = cfg.download;
@@ -101,7 +122,7 @@ in {
XDG_PUBLICSHARE_DIR = cfg.publicShare;
XDG_TEMPLATES_DIR = cfg.templates;
XDG_VIDEOS_DIR = cfg.videos;
- } // cfg.extraConfig;
+ }) // cfg.extraConfig;
in mkIf cfg.enable {
assertions =
[ (hm.assertions.assertPlatform "xdg.userDirs" pkgs platforms.linux) ];
@@ -113,12 +134,12 @@ in {
xdg.configFile."user-dirs.conf".text = "enabled=False";
- home.activation = mkIf cfg.createDirectories {
- createXdgUserDirectories = let
- directoriesList = attrValues directories;
- mkdir = (dir: ''$DRY_RUN_CMD mkdir -p $VERBOSE_ARG "${dir}"'');
- in lib.hm.dag.entryAfter [ "writeBoundary" ]
- (strings.concatMapStringsSep "\n" mkdir directoriesList);
- };
+ home.sessionVariables = directories;
+
+ home.activation.createXdgUserDirectories = mkIf cfg.createDirectories (let
+ directoriesList = attrValues directories;
+ mkdir = (dir: ''$DRY_RUN_CMD mkdir -p $VERBOSE_ARG "${dir}"'');
+ in lib.hm.dag.entryAfter [ "linkGeneration" ]
+ (strings.concatMapStringsSep "\n" mkdir directoriesList));
};
}
diff --git a/third_party/home-manager/modules/misc/xdg.nix b/third_party/home-manager/modules/misc/xdg.nix
index 5961cac398..247e731921 100644
--- a/third_party/home-manager/modules/misc/xdg.nix
+++ b/third_party/home-manager/modules/misc/xdg.nix
@@ -80,18 +80,22 @@ in {
};
config = mkMerge [
- (mkIf cfg.enable {
- xdg.cacheHome = mkDefault defaultCacheHome;
- xdg.configHome = mkDefault defaultConfigHome;
- xdg.dataHome = mkDefault defaultDataHome;
- xdg.stateHome = mkDefault defaultStateHome;
-
- home.sessionVariables = {
+ (let
+ variables = {
XDG_CACHE_HOME = cfg.cacheHome;
XDG_CONFIG_HOME = cfg.configHome;
XDG_DATA_HOME = cfg.dataHome;
XDG_STATE_HOME = cfg.stateHome;
};
+ in mkIf cfg.enable {
+ xdg.cacheHome = mkDefault defaultCacheHome;
+ xdg.configHome = mkDefault defaultConfigHome;
+ xdg.dataHome = mkDefault defaultDataHome;
+ xdg.stateHome = mkDefault defaultStateHome;
+
+ home.sessionVariables = variables;
+ systemd.user.sessionVariables =
+ mkIf pkgs.stdenv.hostPlatform.isLinux variables;
})
# Legacy non-deterministic setup.
diff --git a/third_party/home-manager/modules/misc/xfconf.nix b/third_party/home-manager/modules/misc/xfconf.nix
new file mode 100644
index 0000000000..b4141bf53b
--- /dev/null
+++ b/third_party/home-manager/modules/misc/xfconf.nix
@@ -0,0 +1,102 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+
+ cfg = config.xfconf;
+
+ withType = v:
+ if builtins.isBool v then [
+ "-t"
+ "bool"
+ "-s"
+ (if v then "true" else "false")
+ ] else if builtins.isInt v then [
+ "-t"
+ "int"
+ "-s"
+ (toString v)
+ ] else if builtins.isFloat v then [
+ "-t"
+ "double"
+ "-s"
+ (toString v)
+ ] else if builtins.isString v then [
+ "-t"
+ "string"
+ "-s"
+ v
+ ] else if builtins.isList v then
+ [ "-a" ] ++ concatMap withType v
+ else
+ throw "unexpected xfconf type: ${builtins.typeOf v}";
+
+in {
+ meta.maintainers = [ maintainers.chuangzhu ];
+
+ options.xfconf = {
+ enable = mkOption {
+ type = types.bool;
+ default = true;
+ visible = false;
+ description = ''
+ Whether to enable Xfconf settings.
+
+ Note, if you use NixOS then you must add
+ programs.xfconf.enable = true
+ to your system configuration. Otherwise you will see a systemd error
+ message when your configuration is activated.
+ '';
+ };
+
+ settings = mkOption {
+ type = with types;
+ attrsOf (attrsOf (oneOf [
+ bool
+ int
+ float
+ str
+ (listOf (oneOf [ bool int float str ]))
+ ])) // {
+ description = "xfconf settings";
+ };
+ default = { };
+ example = literalExpression ''
+ {
+ xfce4-session = {
+ "startup/ssh-agent/enabled" = false;
+ "general/LockCommand" = "''${pkgs.lightdm}/bin/dm-tool lock";
+ };
+ xfce4-desktop = {
+ "backdrop/screen0/monitorLVDS-1/workspace0/last-image" =
+ "''${pkgs.nixos-artwork.wallpapers.stripes-logo.gnomeFilePath}";
+ };
+ }
+ '';
+ description = ''
+ Settings to write to the Xfconf configuration system.
+ '';
+ };
+ };
+
+ config = mkIf (cfg.enable && cfg.settings != { }) {
+ assertions =
+ [ (hm.assertions.assertPlatform "xfconf" pkgs platforms.linux) ];
+
+ home.activation.xfconfSettings = hm.dag.entryAfter [ "installPackages" ]
+ (let
+ mkCommand = channel: property: value: ''
+ $DRY_RUN_CMD ${pkgs.xfce.xfconf}/bin/xfconf-query \
+ ${
+ escapeShellArgs
+ ([ "-n" "-c" channel "-p" "/${property}" ] ++ withType value)
+ }
+ '';
+
+ commands = mapAttrsToList
+ (channel: properties: mapAttrsToList (mkCommand channel) properties)
+ cfg.settings;
+ in concatMapStrings concatStrings commands);
+ };
+}
diff --git a/third_party/home-manager/modules/modules.nix b/third_party/home-manager/modules/modules.nix
index b62d6f4aa6..7e6d2e71d1 100644
--- a/third_party/home-manager/modules/modules.nix
+++ b/third_party/home-manager/modules/modules.nix
@@ -15,13 +15,16 @@ let
modules = [
./accounts/email.nix
+ ./config/home-cursor.nix
./config/i18n.nix
./files.nix
./home-environment.nix
./i18n/input-method/default.nix
+ ./launchd/default.nix
./manual.nix
./misc/dconf.nix
./misc/debug.nix
+ ./misc/editorconfig.nix
./misc/fontconfig.nix
./misc/gtk.nix
./misc/lib.nix
@@ -29,6 +32,7 @@ let
./misc/numlock.nix
./misc/pam.nix
./misc/qt.nix
+ ./misc/specialization.nix
./misc/submodule-support.nix
./misc/tmpfiles.nix
./misc/version.nix
@@ -39,7 +43,9 @@ let
./misc/xdg-system-dirs.nix
./misc/xdg-user-dirs.nix
./misc/xdg.nix
+ ./misc/xfconf.nix
./programs/abook.nix
+ ./programs/aerc.nix
./programs/afew.nix
./programs/alacritty.nix
./programs/alot.nix
@@ -49,47 +55,64 @@ let
./programs/autojump.nix
./programs/autorandr.nix
./programs/bash.nix
+ ./programs/bashmount.nix
./programs/bat.nix
./programs/beets.nix
+ ./programs/borgmatic.nix
./programs/bottom.nix
./programs/broot.nix
./programs/browserpass.nix
+ ./programs/btop.nix
./programs/chromium.nix
./programs/command-not-found/command-not-found.nix
./programs/dircolors.nix
./programs/direnv.nix
+ ./programs/discocss.nix
./programs/eclipse.nix
./programs/emacs.nix
+ ./programs/eww.nix
./programs/exa.nix
./programs/feh.nix
./programs/firefox.nix
./programs/fish.nix
./programs/foot.nix
./programs/fzf.nix
+ ./programs/gallery-dl.nix
./programs/getmail.nix
./programs/gh.nix
./programs/git.nix
+ ./programs/gitui.nix
./programs/gnome-terminal.nix
./programs/go.nix
./programs/gpg.nix
+ ./programs/havoc.nix
+ ./programs/helix.nix
./programs/hexchat.nix
./programs/himalaya.nix
./programs/home-manager.nix
./programs/htop.nix
+ ./programs/hyfetch.nix
./programs/i3status-rust.nix
./programs/i3status.nix
./programs/info.nix
+ ./programs/ion.nix
./programs/irssi.nix
./programs/java.nix
./programs/jq.nix
+ ./programs/just.nix
+ ./programs/k9s.nix
./programs/kakoune.nix
./programs/keychain.nix
./programs/kitty.nix
+ ./programs/kodi.nix
./programs/lazygit.nix
+ ./programs/ledger.nix
./programs/less.nix
./programs/lesspipe.nix
./programs/lf.nix
+ ./programs/librewolf.nix
./programs/lieer.nix
+ ./programs/looking-glass-client.nix
./programs/lsd.nix
./programs/man.nix
./programs/mangohud.nix
@@ -97,15 +120,19 @@ let
./programs/mbsync.nix
./programs/mcfly.nix
./programs/mercurial.nix
+ ./programs/micro.nix
./programs/mpv.nix
./programs/msmtp.nix
./programs/mu.nix
+ ./programs/mujmap.nix
+ ./programs/navi.nix
./programs/ncmpcpp.nix
./programs/ncspot.nix
./programs/ne.nix
./programs/neomutt.nix
./programs/neovim.nix
./programs/newsboat.nix
+ ./programs/nheko.nix
./programs/nix-index.nix
./programs/nnn.nix
./programs/noti.nix
@@ -114,40 +141,61 @@ let
./programs/obs-studio.nix
./programs/octant.nix
./programs/offlineimap.nix
+ ./programs/oh-my-posh.nix
./programs/opam.nix
+ ./programs/pandoc.nix
./programs/password-store.nix
./programs/pazi.nix
./programs/pet.nix
./programs/pidgin.nix
+ ./programs/pistol.nix
./programs/piston-cli.nix
+ ./programs/pls.nix
./programs/powerline-go.nix
+ ./programs/pubs.nix
+ ./programs/pylint.nix
./programs/qutebrowser.nix
./programs/rbw.nix
./programs/readline.nix
./programs/rofi-pass.nix
./programs/rofi.nix
./programs/rtorrent.nix
+ ./programs/sagemath.nix
./programs/sbt.nix
./programs/scmpuff.nix
./programs/senpai.nix
+ ./programs/sioyek.nix
./programs/skim.nix
./programs/sm64ex.nix
+ ./programs/sqls.nix
./programs/ssh.nix
./programs/starship.nix
+ ./programs/swaylock.nix
./programs/taskwarrior.nix
+ ./programs/tealdeer.nix
./programs/terminator.nix
./programs/termite.nix
./programs/texlive.nix
+ ./programs/thunderbird.nix
+ ./programs/timidity.nix
+ ./programs/tint2.nix
+ ./programs/tiny.nix
+ ./programs/tmate.nix
./programs/tmux.nix
./programs/topgrade.nix
./programs/urxvt.nix
./programs/vim.nix
./programs/vscode.nix
./programs/vscode/haskell.nix
+ ./programs/pywal.nix
+ ./programs/watson.nix
./programs/waybar.nix
+ ./programs/wezterm.nix
./programs/xmobar.nix
+ ./programs/yt-dlp.nix
./programs/z-lua.nix
./programs/zathura.nix
+ ./programs/zellij.nix
./programs/zoxide.nix
./programs/zplug.nix
./programs/zsh.nix
@@ -155,10 +203,12 @@ let
./services/barrier.nix
./services/betterlockscreen.nix
./services/blueman-applet.nix
+ ./services/borgmatic.nix
+ ./services/cachix-agent.nix
./services/caffeine.nix
./services/cbatticon.nix
+ ./services/clipman.nix
./services/clipmenu.nix
- ./services/compton.nix
./services/devilspie2.nix
./services/dropbox.nix
./services/dunst.nix
@@ -166,14 +216,18 @@ let
./services/easyeffects.nix
./services/emacs.nix
./services/etesync-dav.nix
+ ./services/espanso.nix
./services/flameshot.nix
./services/fluidsynth.nix
./services/fnott.nix
+ ./services/fusuma.nix
./services/getmail.nix
./services/git-sync.nix
./services/gnome-keyring.nix
./services/gpg-agent.nix
./services/grobi.nix
+ ./services/gromit-mpx.nix
+ ./services/home-manager-auto-upgrade.nix
./services/hound.nix
./services/imapnotify.nix
./services/kanshi.nix
@@ -186,13 +240,17 @@ let
./services/lorri.nix
./services/mako.nix
./services/mbsync.nix
+ ./services/megasync.nix
+ ./services/mopidy.nix
./services/mpd.nix
./services/mpdris2.nix
+ ./services/mpd-discord-rpc.nix
./services/mpris-proxy.nix
./services/muchsync.nix
./services/network-manager-applet.nix
./services/nextcloud-client.nix
./services/notify-osd.nix
+ ./services/opensnitch-ui.nix
./services/owncloud-client.nix
./services/pantalaimon.nix
./services/parcellite.nix
@@ -203,32 +261,43 @@ let
./services/picom.nix
./services/plan9port.nix
./services/playerctld.nix
+ ./services/plex-mpv-shim.nix
./services/polybar.nix
./services/poweralertd.nix
+ ./services/pueue.nix
./services/pulseeffects.nix
./services/random-background.nix
+ ./services/recoll.nix
./services/redshift-gammastep/gammastep.nix
./services/redshift-gammastep/redshift.nix
./services/rsibreak.nix
+ ./services/safeeyes.nix
./services/screen-locker.nix
+ ./services/sctd.nix
./services/spotifyd.nix
./services/stalonetray.nix
./services/status-notifier-watcher.nix
+ ./services/swayidle.nix
./services/sxhkd.nix
./services/syncthing.nix
+ ./services/systembus-notify.nix
./services/taffybar.nix
./services/tahoe-lafs.nix
./services/taskwarrior-sync.nix
./services/trayer.nix
+ ./services/twmn.nix
./services/udiskie.nix
./services/unclutter.nix
./services/unison.nix
./services/volnoti.nix
./services/window-managers/awesome.nix
./services/window-managers/bspwm/default.nix
+ ./services/window-managers/fluxbox.nix
+ ./services/window-managers/herbstluftwm.nix
./services/window-managers/i3-sway/i3.nix
./services/window-managers/i3-sway/sway.nix
./services/window-managers/i3-sway/swaynag.nix
+ ./services/window-managers/spectrwm.nix
./services/window-managers/xmonad.nix
./services/wlsunset.nix
./services/xcape.nix
@@ -240,9 +309,9 @@ let
./systemd.nix
./targets/darwin
./targets/generic-linux.nix
- ./xcursor.nix
./xresources.nix
./xsession.nix
+ ./misc/nix.nix
(pkgs.path + "/nixos/modules/misc/assertions.nix")
(pkgs.path + "/nixos/modules/misc/meta.nix")
] ++ optional useNixpkgsModule ./misc/nixpkgs.nix
diff --git a/third_party/home-manager/modules/po/ca.po b/third_party/home-manager/modules/po/ca.po
new file mode 100644
index 0000000000..031f19f5fb
--- /dev/null
+++ b/third_party/home-manager/modules/po/ca.po
@@ -0,0 +1,124 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-06-08 10:18+0000\n"
+"Last-Translator: Leix b \n"
+"Language-Team: Catalan \n"
+"Language: ca\n"
+"MIME-Version: 1.0\n"
+"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.13-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "Creant enllaços dels fitxers personals a %s"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "Netejant enllaços orfes de %s"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "Creant generació de perfil %s"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "No hi ha canvis, reutilitzant últim perfil generat %s"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"Oops, Nix no ha pogut instal·lar el teu nou perfil de Home Manager.\n"
+"\n"
+"Potser hi ha un conflicte amb un paquet instal·lat mitjançant\n"
+"\"%s\"? Prova d'executar\n"
+"\n"
+" %s\n"
+"\n"
+"i si hi ha un paquet conflictiu el pots eliminar amb\n"
+"\n"
+" %s\n"
+"\n"
+"i després provar d'activar la teva configuració de Home Manager de nou."
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "Activant %s"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "Comprovant oldGenNum i oldGenPath"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"Conflicte entre el número de generació prèvia i el camí! Aquests\n"
+"han de ser o bé ambdós buits o definits com a:\n"
+"\n"
+" '%s' i '%s'\n"
+"\n"
+"Si no t'importa perdre les generacions de perfil prèvies,\n"
+"la solució més fàcil probablement és executar:\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"i provar home-manager switch de nou. Bona Sort!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Començant activació de Home Manager"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Comprovant Nix"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "Execució de simulacre"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "Execució en viu"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Utilitzant versió de Nix: %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "Variables d'activació:"
diff --git a/third_party/home-manager/modules/po/da.po b/third_party/home-manager/modules/po/da.po
new file mode 100644
index 0000000000..d2f5467e25
--- /dev/null
+++ b/third_party/home-manager/modules/po/da.po
@@ -0,0 +1,124 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-09-19 18:22+0000\n"
+"Last-Translator: cafkafk \n"
+"Language-Team: Danish \n"
+"Language: da\n"
+"MIME-Version: 1.0\n"
+"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"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "Skaber hjemme fil links i %s"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "Opryder forældreløse links fra %s"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "Kreere profil generation %s"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "Ingen ændring så genbrug den seneste profil generation %s"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"Åh nej, Nix fejlede i at installere din nye Home Manager profil! \n"
+" \n"
+"Måske er der en konflikt med en pakke der blev installeret gennem\n"
+"\"%s\"? Prøv at køre \n"
+"\n"
+" %s\n"
+" \n"
+"og hvis der er en pakke konflikt, kan du fjerne pakken med \n"
+" \n"
+" %s\n"
+" \n"
+"og så prøve at genaktivere din Home Manager konfiguration igen."
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "Aktivere %s"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "Tjekker fornuften af oldGenNum and oldGenPath"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"Den forrige generations nummer og sti er i konflikt! Disse\n"
+"skal enten begge være tomme, eller begge være sat, men er nu sat til \n"
+" \n"
+" '%s' and '%s'\n"
+" \n"
+"Hvis du ikke har noget mod at miste tidligere profil generationer så\n"
+"er den nemmeste løsning nok at køre \n"
+" \n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+" \n"
+"og så prøve at køre home-manager switch igen. Held og lykke!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Starter Home Manager aktivation"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Udføre fornuft check af Nix"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "Dette er en tør kørsel"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "Dette er en direkte kørsel"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Bruger Nix version: %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "Aktivere variable:"
diff --git a/third_party/home-manager/modules/po/de.po b/third_party/home-manager/modules/po/de.po
new file mode 100644
index 0000000000..c4f4c509c3
--- /dev/null
+++ b/third_party/home-manager/modules/po/de.po
@@ -0,0 +1,153 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-03-26 23:57+0000\n"
+"Last-Translator: Robert Helgesson \n"
+"Language-Team: German \n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"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.12-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "Erstelle home Dateiverknpfungen in %s"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "Bereinige verwaiste Links unter %s"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "Erstelle Profilgeneration %s"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "Keine Änderungen. Benutze daher letzte Profilgeneration %s"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"Ups, Nix konnte Ihr neues Home Manager Profil nicht installieren!\n"
+"\n"
+"Vielleicht gibt es einen Konflikt mit einem Paket, welches über\n"
+"\"%s\" installiert wurde? Versuchen Sie\n"
+"\n"
+" %s\n"
+"\n"
+"auszuführen und wenn es ein problematisches Paket gibt, entfernen Sie es\n"
+"mit\n"
+"\n"
+" %s\n"
+"\n"
+"Versuchen Sie dann, Ihre Home Manager Konfiguration erneut zu aktivieren."
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "Aktiviere %s"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "Überprüfe zur Sicherheit oldGenNum und oldGenPath"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"Die vorherige Generationsnummer und -pfad stehen im Konflikt. Es\n"
+"müssen entweder beide leer sein oder beide haben den Wert\n"
+"\n"
+" '%s' und '%s'\n"
+"\n"
+"Wenn es Ihnen nichts ausmacht frühere Generationen zu verlieren,\n"
+"dann ist die einfachste Lösung folgendes auszuführen:\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"Führen Sie danach 'home-manager switch' aus. Viel Glück!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Starte Home Manager Aktivierung"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Überprüfe zur Sicherheit Nix"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "Dies ist ein Probelauf"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "Dies ist eine Live-Ausführung"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Nutze Nix Version: %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "Aktivierungsvariablen:"
+
+#~ msgid ""
+#~ "Oops, nix-env failed to install your new Home Manager profile!\n"
+#~ "\n"
+#~ "Perhaps there is a conflict with a package that was installed using\n"
+#~ "\"nix-env -i\"? Try running\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "and if there is a conflicting package you can remove it with\n"
+#~ "\n"
+#~ " nix-env -e {package name}\n"
+#~ "\n"
+#~ "Then try activating your Home Manager configuration again."
+#~ msgstr ""
+#~ "Ups, nix-env konnte Ihr neues Home Manager Profil nicht installieren!\n"
+#~ "\n"
+#~ "Vielleicht gibt es einen Konflikt mit einem Paket, welches über \"nix-env "
+#~ "-i\" installiert wurde? Versuchen Sie\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "auszuführen und wenn es ein problematisches Paket gibt, entfernen Sie es "
+#~ "mit\n"
+#~ "\n"
+#~ " nix-env -e {package name}\n"
+#~ "\n"
+#~ "Versuchen Sie dann, Ihre Home Manager Konfiguration erneut zu aktivieren."
diff --git a/third_party/home-manager/modules/po/es.po b/third_party/home-manager/modules/po/es.po
new file mode 100644
index 0000000000..b5c0ee58a3
--- /dev/null
+++ b/third_party/home-manager/modules/po/es.po
@@ -0,0 +1,151 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-03-26 23:57+0000\n"
+"Last-Translator: Robert Helgesson \n"
+"Language-Team: Spanish \n"
+"Language: es\n"
+"MIME-Version: 1.0\n"
+"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.12-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "Creando vínculos del directorio de inicio en %s"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "Limpiando vínculos huérfanos de %s"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "Creando generación de perfil %s"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "No hay cambios, reutilizando la generación más reciente del perfil: %s"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"Nix no pudo instalar el nuevo perfil de Home Manager!\n"
+"\n"
+"Tal vez haya un conflicto con algún paquete instalado con \"%s\"?\n"
+"Intente ejecutar\n"
+"\n"
+" %s\n"
+"\n"
+"y si hay algún paquete en conflicto bórrelo con:\n"
+"\n"
+" %s\n"
+"\n"
+"Y después reintente activar su configuración de Home Manager."
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "Activando %s"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "Chequeando oldGenNum y oldGenPath"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"Conflicto entre ruta y número de la generación previa. Ambos deben o estar "
+"vacíos o definidos como\n"
+"\n"
+" '%s' y '%s'\n"
+"\n"
+"Si no le importa perder las generaciones de perfil anteriores, la solución "
+"más sencilla es ejecutar:\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"y luego reintente ejectuar \"home-manager switch\". Suerte!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Comenzando activación de Home Manager"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Chequeando Nix"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "Ejecución de simulacro"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "Ejecución en vivo"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Usando Nix versión %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "Variables de activación:"
+
+#~ msgid ""
+#~ "Oops, nix-env failed to install your new Home Manager profile!\n"
+#~ "\n"
+#~ "Perhaps there is a conflict with a package that was installed using\n"
+#~ "\"nix-env -i\"? Try running\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "and if there is a conflicting package you can remove it with\n"
+#~ "\n"
+#~ " nix-env -e {package name}\n"
+#~ "\n"
+#~ "Then try activating your Home Manager configuration again."
+#~ msgstr ""
+#~ "nix-env no pudo instalar el nuevo perfil de Home Manager!\n"
+#~ "\n"
+#~ "Tal vez haya un conflicto con algún paquete instalado con \"nix-env -i\"? "
+#~ "Intente ejecutar\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "y si hay algún paquete en conflicto bórrelo con:\n"
+#~ "\n"
+#~ " nix-env -e {paquete}\n"
+#~ "\n"
+#~ "Y después reintente activar su configuración de Home Manager."
diff --git a/third_party/home-manager/modules/po/fa.po b/third_party/home-manager/modules/po/fa.po
new file mode 100644
index 0000000000..fe1713272a
--- /dev/null
+++ b/third_party/home-manager/modules/po/fa.po
@@ -0,0 +1,97 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: none\n"
+"Language: fa\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr ""
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr ""
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr ""
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr ""
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr ""
diff --git a/third_party/home-manager/modules/po/fi.po b/third_party/home-manager/modules/po/fi.po
new file mode 100644
index 0000000000..4c3b6195e1
--- /dev/null
+++ b/third_party/home-manager/modules/po/fi.po
@@ -0,0 +1,97 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: none\n"
+"Language: fi\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr ""
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr ""
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr ""
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr ""
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr ""
diff --git a/third_party/home-manager/modules/po/fr.po b/third_party/home-manager/modules/po/fr.po
new file mode 100644
index 0000000000..c538ddc5dd
--- /dev/null
+++ b/third_party/home-manager/modules/po/fr.po
@@ -0,0 +1,154 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-05-18 23:12+0000\n"
+"Last-Translator: Naïm Camille Favier \n"
+"Language-Team: French \n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"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.13-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "Création des liens de fichiers personnels dans %s"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "Nettoyage des liens orphelins de %s"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "Création de la génération de profil %s"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "Pas de changement, réutilisation du dernier profil génération %s"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"Oups, Nix n'a pas réussi à installer votre nouveau profil de Home Manager !\n"
+"\n"
+"Il y a peut-être un conflit avec un autre paquet qui a été installé avec\n"
+"« %s » ? Essayez d'exécuter\n"
+"\n"
+" %s\n"
+"\n"
+"et s'il y a un paquet en conflit, vous pourrez le supprimer avec\n"
+"\n"
+" %s\n"
+"\n"
+"Après, essayez encore d'activer votre configuration de Home Manager."
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "Activation de %s"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "Vérification de oldGenNum et oldGenPath"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"Le numéro et le chemin de la génération précédente sont en conflit ! Ils "
+"doivent\n"
+"être vides ou les deux mis à\n"
+"\n"
+" '%s' et '%s'\n"
+"\n"
+"Si ça ne vous dérange pas de perdre les générations précédentes, la solution "
+"la plus\n"
+"simple est probablement d'exécuter\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"et de réessayer home-manager switch. Bonne chance !"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Démarrage de l'activation de Home Manager"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Vérification de Nix"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "Ceci est une fausse activation (essai à blanc)"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "Ceci est une vraie activation"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Version de Nix : %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "Variables d'activation :"
+
+#~ msgid ""
+#~ "Oops, nix-env failed to install your new Home Manager profile!\n"
+#~ "\n"
+#~ "Perhaps there is a conflict with a package that was installed using\n"
+#~ "\"nix-env -i\"? Try running\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "and if there is a conflicting package you can remove it with\n"
+#~ "\n"
+#~ " nix-env -e {package name}\n"
+#~ "\n"
+#~ "Then try activating your Home Manager configuration again."
+#~ msgstr ""
+#~ "Oups, nix-env n'a pas réussi à installer votre nouveau profil de Home "
+#~ "Manager\n"
+#~ "\n"
+#~ "Il y a peut-être un conflit avec un autre paquet qui a été installé avec\n"
+#~ "« nix-env -i » ? Essayez d'éxecuter\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "et s'il y a un paquet en conflict, vous pourrez le supprimer avec\n"
+#~ "\n"
+#~ " nix-env -e {package name}\n"
+#~ "\n"
+#~ "Après, essayez encore d'activer votre configuration de Home Manager."
diff --git a/third_party/home-manager/modules/po/hm-modules.pot b/third_party/home-manager/modules/po/hm-modules.pot
new file mode 100644
index 0000000000..7bff64af49
--- /dev/null
+++ b/third_party/home-manager/modules/po/hm-modules.pot
@@ -0,0 +1,98 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr ""
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr ""
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr ""
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr ""
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr ""
diff --git a/third_party/home-manager/modules/po/it.po b/third_party/home-manager/modules/po/it.po
new file mode 100644
index 0000000000..b4c475c5b5
--- /dev/null
+++ b/third_party/home-manager/modules/po/it.po
@@ -0,0 +1,112 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-12-15 08:50+0000\n"
+"Last-Translator: Walter Franzini \n"
+"Language-Team: Italian \n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"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.15-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "Creo i collegamenti della home in %s"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "Pulisco i collegamenti rimasti orfani da %s"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "Creando profilo di generazione %s"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "Nessuna modifica, verrà riutilizzata l'ultimo generazione di profilo %s"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "Attivando %s"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "Controllando oldGenNum e oldGenPath"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"I precedenti numero di generazione e il percorso sono in conflitto!\n"
+"Devono essere entrambi vuoti o entrambi popolati ma ora sono impostati su\n"
+"\n"
+"'%s' e '%s'\n"
+"\n"
+"Se non ti dispiace perdere le generazioni di profili precedenti,\n"
+"allora la soluzione più semplice è probabilmente eseguire i comandi\n"
+"\n"
+"rm %s/home-manager*\n"
+"rm %s/current-home\n"
+"\n"
+"e provare a cambiare home-manager di nuovo. Buona fortuna!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Iniziando attivazione Home Manager"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Controllando Nix"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "Questo è un avvio secco"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "Questa è una esecuzione live"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Versione di Nix in uso: %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "Variabili di attivazione:"
diff --git a/third_party/home-manager/modules/po/ja.po b/third_party/home-manager/modules/po/ja.po
new file mode 100644
index 0000000000..f5cec7ba21
--- /dev/null
+++ b/third_party/home-manager/modules/po/ja.po
@@ -0,0 +1,153 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-03-26 23:57+0000\n"
+"Last-Translator: Robert Helgesson \n"
+"Language-Team: Japanese \n"
+"Language: ja\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.12-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "ホームファイルのリンクを %s に作ります"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "%s から無効なリンクを消去しています"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "世代 %s のプロファイルを生成しています"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "変更されていないので最新の世代 %s のプロファイルを再利用します"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"NixはHome Managerの新しいプロファイルをインストールできませんでした!\n"
+"\n"
+"おそらく\"%s\"を使ってインストールしたパッケージが矛盾しているのでは?\n"
+"以下のコマンド\n"
+"\n"
+" %s\n"
+"\n"
+"を試してみて、もし衝突しているパッケージがあれば、\n"
+"\n"
+" %s\n"
+"\n"
+"で削除し、再度Home Managerの設定の有効化を試してみてください。"
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "%s を有効化しています"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "oldGenNum と oldGenPath の健全性検査をしています"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"先行する世代番号とパスが矛盾しています!\n"
+"それらはどちらも空かどちらもセットされていなければいけません。しかし\n"
+"\n"
+" '%s' と '%s'\n"
+"\n"
+"となっています。もしプロファイルの以前の世代を失っても構わないなら\n"
+"おそらくもっとも簡単な解決法は\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"を実行して、home-manager switch を再び実行してみることでしょう。幸運を!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Home Managerの有効化を開始しました"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Nixの健全性検査中です"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "これは予行練習(dry run)です"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "これは実際に実行します"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Nix バージョン %s を使用しています"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "有効化変数:"
+
+#~ msgid ""
+#~ "Oops, nix-env failed to install your new Home Manager profile!\n"
+#~ "\n"
+#~ "Perhaps there is a conflict with a package that was installed using\n"
+#~ "\"nix-env -i\"? Try running\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "and if there is a conflicting package you can remove it with\n"
+#~ "\n"
+#~ " nix-env -e {package name}\n"
+#~ "\n"
+#~ "Then try activating your Home Manager configuration again."
+#~ msgstr ""
+#~ "nix-envはHome managerの新しいプロファイルをインストールできませんでし"
+#~ "た!\n"
+#~ "\n"
+#~ "おそらく\"nix-env -i\"を使ってインストールしたパッケージが矛盾しているので"
+#~ "は?\n"
+#~ "以下のコマンド\n"
+#~ "\n"
+#~ "nix-env -q\n"
+#~ "\n"
+#~ "を試してみて、もし衝突しているパッケージがあれば、\n"
+#~ "\n"
+#~ "nix-env -e {パッケージ名前}\n"
+#~ "\n"
+#~ "で削除し、再度Home Managerの設定の有効化を試してみてください。"
diff --git a/third_party/home-manager/modules/po/ko.po b/third_party/home-manager/modules/po/ko.po
new file mode 100644
index 0000000000..7c97f64a3f
--- /dev/null
+++ b/third_party/home-manager/modules/po/ko.po
@@ -0,0 +1,154 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-03-26 23:57+0000\n"
+"Last-Translator: Robert Helgesson \n"
+"Language-Team: Korean \n"
+"Language: ko\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.12-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "home 파일 링크를 %s에 생성하는 중"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "%s에서 연결이 끊어진 링크 파일들을 지우는 중"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "profile 세대 %s를 생성하는 중"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr ""
+"바뀐 것이 없어서 가장 최근의 profile 세대 %s를 다시 사용하는 것으로 설정하는 "
+"중"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"아이고, Nix가 새로운 홈 매니저 profile을 설치하는데 실패했네요!\n"
+"\n"
+"혹시나 \"%s\"를 이용해서 설치된 패키지와 충돌이 일어난 것 일까요?\n"
+"다음의 명령어를 시도해보세요.\n"
+"\n"
+" %s\n"
+"\n"
+"만약 충돌하는 패키지가 있다면 다음의 명령어로 제거할 수 있습니다.\n"
+"\n"
+" %s\n"
+"\n"
+"그런 후, 다시 홈 매니저 설정을 활성화 해보세요."
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "%s를 활성화 하는 중"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "oldGenNum과 oldGenPath가 정상인지 확인 중"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"이전 세대 번호와 경로가 서로 충돌하고 있습니다! 이들은 둘 다 비어있든지\n"
+"아니면 둘 다 설정돼있어야 하는데 지금 이들은 다음으로 설정되어있습니다.\n"
+"\n"
+" '%s' 와 '%s'\n"
+"\n"
+"만약 이전 profile 세대들을 잃는 것이 상관없다면\n"
+"가장 쉬운 해결 방법은 아마 다음의 명령어를 실행하는 것일 겁니다.\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"그런 후 'home-manager switch'를 다시 시도해 보십시오. 행운을 빕니다!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "홈 매니저 활성화를 시작하는 중"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Nix가 정상인지 확인 중"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "모의 실행 중 입니다"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "모의 실행이 아닌 실제 실행 중 입니다"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "사용 중인 Nix 버전: %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "활성화 변수들:"
+
+#~ msgid ""
+#~ "Oops, nix-env failed to install your new Home Manager profile!\n"
+#~ "\n"
+#~ "Perhaps there is a conflict with a package that was installed using\n"
+#~ "\"nix-env -i\"? Try running\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "and if there is a conflicting package you can remove it with\n"
+#~ "\n"
+#~ " nix-env -e {package name}\n"
+#~ "\n"
+#~ "Then try activating your Home Manager configuration again."
+#~ msgstr ""
+#~ "아이고, nix-env가 새로운 홈 매니저 profile을 설치하는데 실패했네요!\n"
+#~ "\n"
+#~ "혹시나 \"nix-env -i\"를 이용해서 설치된 패키지와 충돌이 일어난 것 일까"
+#~ "요?\n"
+#~ "다음의 명령어를 시도해보세요.\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "만약 충돌하는 패키지가 있다면 다음의 명령어로 제거할 수 있습니다.\n"
+#~ "\n"
+#~ " nix-env -e {패키지 이름}\n"
+#~ "\n"
+#~ "그런 후, 다시 홈 매니저 설정을 활성화 해보세요."
diff --git a/third_party/home-manager/modules/po/lt.po b/third_party/home-manager/modules/po/lt.po
new file mode 100644
index 0000000000..166bf80854
--- /dev/null
+++ b/third_party/home-manager/modules/po/lt.po
@@ -0,0 +1,97 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: Automatically generated\n"
+"Language-Team: none\n"
+"Language: lt\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr ""
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr ""
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr ""
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr ""
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr ""
diff --git a/third_party/home-manager/modules/po/nb_NO.po b/third_party/home-manager/modules/po/nb_NO.po
new file mode 100644
index 0000000000..11bc04d943
--- /dev/null
+++ b/third_party/home-manager/modules/po/nb_NO.po
@@ -0,0 +1,153 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-03-26 23:57+0000\n"
+"Last-Translator: Robert Helgesson \n"
+"Language-Team: Norwegian Bokmål \n"
+"Language: nb_NO\n"
+"MIME-Version: 1.0\n"
+"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.12-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "Lager hjemmefillenker i %s …"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "Tømmer overflødige lenker fra %s …"
+
+#: modules/files.nix:262
+#, fuzzy
+msgid "Creating profile generation %s"
+msgstr "Oppretter profil for generering %s …"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "Ingen endring. Gjenbruker siste profilgenerering %s …"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"Nix kunne ikke installere din nye Home Manager-profil!\n"
+"\n"
+"Kanskje det er en konflikt med en pakke som ble installert ved bruk av\n"
+"«%s«? Prøv å kjøre\n"
+"\n"
+" %s\n"
+"\n"
+"og hvis det er en pakke i konflikt kan du fjerne den med\n"
+"\n"
+" %s\n"
+"\n"
+"for så å aktivere ditt Home Manager-oppsett igjen."
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "Aktiverer %s …"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "Kontrollerer verdiene av oldGenNum og oldGenPath"
+
+#: modules/lib-bash/activation-init.sh:34
+#, fuzzy
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"Forrige generasjonstall og sti er i konflikt. Disse\n"
+"må enten begge være tomme, eller så må begge settes, men er nå\n"
+"\n"
+" «%s« og «%s«\n"
+"\n"
+"Hvis du ikke bryr deg om å miste tidligere profilgenereringer\n"
+"er det enkleste å kjøre\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"for så å prøve «home-manager»-bryteren igjen. Lykke til!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Starter aktivering av hjemmebehandler …"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Kontrollerer at Nix fungerer"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "Dette er en simulert kjøring"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "Dette er en virkelig kjøring"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Bruker Nix-versjon: %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "Aktiveringsvariabler:"
+
+#~ msgid ""
+#~ "Oops, nix-env failed to install your new Home Manager profile!\n"
+#~ "\n"
+#~ "Perhaps there is a conflict with a package that was installed using\n"
+#~ "\"nix-env -i\"? Try running\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "and if there is a conflicting package you can remove it with\n"
+#~ "\n"
+#~ " nix-env -e {package name}\n"
+#~ "\n"
+#~ "Then try activating your Home Manager configuration again."
+#~ msgstr ""
+#~ "nix-env kunne ikke installere din nye Home Manager-profil!\n"
+#~ "\n"
+#~ "Kanskje det er en konflikt med en pakke som ble installert ved bruk av\n"
+#~ "«nix-env -i«? Prøv å kjøre\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "og hvis det er en pakke i konflikt kan du fjerne den med\n"
+#~ "\n"
+#~ " nix-env -e {package name}\n"
+#~ "\n"
+#~ "for så å aktivere ditt Home Manager-oppsett igjen."
diff --git a/third_party/home-manager/modules/po/nl.po b/third_party/home-manager/modules/po/nl.po
new file mode 100644
index 0000000000..de46344b16
--- /dev/null
+++ b/third_party/home-manager/modules/po/nl.po
@@ -0,0 +1,126 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-11-16 13:47+0000\n"
+"Last-Translator: Pablo Bollansee \n"
+"Language-Team: Dutch \n"
+"Language: nl\n"
+"MIME-Version: 1.0\n"
+"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.15-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "Home-bestandskoppelingen aan het maken in %s"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "Wees links van %s aan het opkuisen"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "Profiel generatie %s aan het maken"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr ""
+"Geen veranderingen dus de laatste profiel generatie %s wordt hergebruikt"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"Oei, het is Nix niet gelukt om je nieuwe Home Manager profiel te installeren!"
+"\n"
+"\n"
+"Misschien is er een conflict met het pakket dat geïnstalleerd was met\n"
+"\"%s\"? Probeer het volgende te draaien\n"
+"\n"
+" %s\n"
+"\n"
+"en als er een pakket is dat een conflict geeft kan je dat verwijderen met\n"
+"\n"
+" %s\n"
+"\n"
+"Probeer daarna je Home Manager configuratie opnieuw te activeren."
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "%s aan het activeren"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "oldGenNum en oldGenPath aan het sanity checken"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"Er is een conflict met de generatie nummer en pad! Deze\n"
+"moeten beide leeg of beide ingevuld zijn, maar zijn nu\n"
+"\n"
+" '%s' en '%s'\n"
+"\n"
+"Als je het niet erg vindt je vorige profiel generaties te verliezen dan\n"
+"is waarschijnlijk de eenvoudigste oplossing om het volgende te draaien\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"en dan opnieuw 'home-manager switch' te proberen. Veel succes!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Home manager activatie aan het starten"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Nix aan het sanity checken"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "Dit is een oefening"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "Dit is voor echt"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Nix versie %s wordt gebruikt"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "Activatie variabelen:"
diff --git a/third_party/home-manager/modules/po/pl.po b/third_party/home-manager/modules/po/pl.po
new file mode 100644
index 0000000000..307ffc0115
--- /dev/null
+++ b/third_party/home-manager/modules/po/pl.po
@@ -0,0 +1,125 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-11-16 13:47+0000\n"
+"Last-Translator: Jakub Janczak \n"
+"Language-Team: Polish \n"
+"Language: pl\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%10>=2 && n%10<=4 && (n%100<10 "
+"|| n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.15-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "Tworzenie dowiązań plików w %s"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "Czyszczenie osieroconych linków z %s"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "Tworzenie profilu generacji %s"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "Brak zmian więc używam ostatniej generacji profilu %s"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"Oops, Nix nie zdołał zainstalować twojego profilu Home Manager'a!\n"
+"\n"
+"Być może zaistniał konflikt z pakietem zainstalowanym przez\n"
+"\"%s\"? Spróbuj uruchomić\n"
+"\n"
+" %s\n"
+"\n"
+"i jeśli istnieje konflikt możesz spróbować go rozwiązać uruchamiając\n"
+"\n"
+" %s\n"
+"\n"
+"Następnie spróbuj aktywować konfigurację Home Manager'a ponownie."
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "Aktywowanie %s"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "Sprawdzanie poprawności oldGenNum i oldGenPath"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"Istnieje konflikt pomiędzy poprzednią generacją i ścieżką! Powinny\n"
+"być obie puste lub ustawione, a efektywnie są ustawione na:\n"
+"\n"
+" '%s' i '%s'\n"
+"\n"
+"Jeśli możesz sobie pozwolić na utratę poprzednich generacji,\n"
+"możesz uruchomić\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"i spróbować uruchomić home-manager switch raz jeszcze. Powodzenia!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Rozpoczynam aktywację Home Managera"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Sprawdzanie poprawności Nix"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "To jest wykonanie testowe"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "To jest wykonanie właściwe"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Używając wersji Nix: %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "Zmienne aktywacyjne:"
diff --git a/third_party/home-manager/modules/po/pt_BR.po b/third_party/home-manager/modules/po/pt_BR.po
new file mode 100644
index 0000000000..3ca9977ce7
--- /dev/null
+++ b/third_party/home-manager/modules/po/pt_BR.po
@@ -0,0 +1,124 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-04-04 11:11+0000\n"
+"Last-Translator: Alex Miranda \n"
+"Language-Team: Portuguese (Brazil) \n"
+"Language: pt_BR\n"
+"MIME-Version: 1.0\n"
+"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.12-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "Criando links simbólicos em %s"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "Limpando links órfãos do directório %s"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "Criando geração %s para o perfil"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "Nenhuma mudança, portanto reusando a última geração %s para o perfil"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"Opa! O nix não conseguiu instalar seu novo perfil do Home Manager.\n"
+"\n"
+"Talvez haja um conflito com um pacote que foi instalado usando\n"
+"\"%s\"? Tente executar\n"
+"\n"
+" %s\n"
+"\n"
+"e se houver algum pacote com conflito, remova-o com\n"
+"\n"
+" %s\n"
+"\n"
+"E então tente novamente ativar a sua configuração do Home Manager."
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "Ativando %s"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "Revalidando oldGenNum e oldGenPath"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"O número da geração anterior e o caminho não batem! Ambos\n"
+"precisam estar ou vazios ou definidos, mas estão definidos como\n"
+"\n"
+" '%s' e '%s'\n"
+"\n"
+"Se você não se importa de perder gerações de perfis anteriores, então\n"
+"a solução mais rápida é provavelmente rodar\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"e tentar rodar \"home-manager switch\" de novo. Boa sorte!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Iniciando ativação do Home Manager"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Revalidando Nix"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "Essa é uma execução de teste"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "Essa é uma execução de fato"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Usando versão do Nix: %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "Variáveis durante ativação:"
diff --git a/third_party/home-manager/modules/po/ru.po b/third_party/home-manager/modules/po/ru.po
new file mode 100644
index 0000000000..feba1b94ab
--- /dev/null
+++ b/third_party/home-manager/modules/po/ru.po
@@ -0,0 +1,152 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-03-26 23:57+0000\n"
+"Last-Translator: Robert Helgesson \n"
+"Language-Team: Russian \n"
+"Language: ru\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%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"X-Generator: Weblate 4.12-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "Создаю ссылки в домашней директории %s"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "Удаляю устаревшие ссылки из %s"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "Создаю профиль в поколении %s"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "Изменений нет, переиспользую профиль в последнем поколении %s"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"Ой, Nix не смог установить новый профиль Home Manager!\n"
+"\n"
+"Возможно, возник конфликт с пакетом, ранее установленным\n"
+"с помощью \"%s\". Попробуйте выполнить\n"
+"\n"
+" %s\n"
+"\n"
+"и если найдётся конфликтующий пакет, удалите его командой\n"
+"\n"
+" %s\n"
+"\n"
+"После попробуйте активировать конфигурацию снова."
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "Активирую %s"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "Сравниваю oldGenNum и oldGenPath на всякий"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"Номер и путь прошлого поколения конфликтуют! Они должны быть\n"
+"одинаково пустыми или заполненными, но сейчас имеют значения\n"
+"\n"
+" '%s' и '%s'\n"
+"\n"
+"Если вы не против потерять предыдущие профили, тогда,\n"
+"вероятно, простейшим решением будет запустить\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"и выполнить home-manager switch ещё раз. Удачи!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Начинаю активацию Home Manager"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Проверяю Nix на всякий случай"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "Это пробный запуск"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "Это реальный запуск"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Использую Nix версии: %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "Переменные для активации:"
+
+#~ msgid ""
+#~ "Oops, nix-env failed to install your new Home Manager profile!\n"
+#~ "\n"
+#~ "Perhaps there is a conflict with a package that was installed using\n"
+#~ "\"nix-env -i\"? Try running\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "and if there is a conflicting package you can remove it with\n"
+#~ "\n"
+#~ " nix-env -e {package name}\n"
+#~ "\n"
+#~ "Then try activating your Home Manager configuration again."
+#~ msgstr ""
+#~ "Ой, nix-env не смог установить новый профиль Home Manager!\n"
+#~ "\n"
+#~ "Возможно, возник конфликт с пакетом, ранее установленным\n"
+#~ "с помощью \"nix-env -i\". Попробуйте выполнить\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "и если найдётся конфликтующий пакет, удалите его командой\n"
+#~ "\n"
+#~ " nix-env -e {имя пакета}\n"
+#~ "\n"
+#~ "После попробуйте активировать конфигурацию снова."
diff --git a/third_party/home-manager/modules/po/sv.po b/third_party/home-manager/modules/po/sv.po
new file mode 100644
index 0000000000..09e8a9e99a
--- /dev/null
+++ b/third_party/home-manager/modules/po/sv.po
@@ -0,0 +1,151 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-03-26 23:56+0000\n"
+"Last-Translator: Robert Helgesson \n"
+"Language-Team: Swedish \n"
+"Language: sv\n"
+"MIME-Version: 1.0\n"
+"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.12-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "Skapar hemfil-länkar i %s"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "Rensar bort överflödiga länkar från %s"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "Skapar profil för generation %s"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "Ingen förändring, återanvänder därför profil-generation %s"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"Ajdå, Nix lyckades inte installera din nya Home Manager-profil!\n"
+"\n"
+"Kanske det finns en konflikt med ett paket som installerades genom\n"
+"\"%s\"? Prova att köra\n"
+"\n"
+" %s\n"
+"\n"
+"och om det finns ett paket som är i vägen så kan du ta bort det med\n"
+"\n"
+" %s\n"
+"\n"
+"Prova sedan att aktivera din Home Manager-konfiguration igen."
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "Aktiverar %s"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "Kontrollerar värdena på oldGenNum och oldGenPath"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"Föregående generationsnummer och sökväg motsäger varandra! Dessa måste\n"
+"antingen båda vara tomma eller båda vara satta men de har nu värdena\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"Om du inte har något emot att förlora tidigare profilgenerationer så\n"
+"är den enklaste lösningen antagligen att köra\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"och prova 'home-manager switch' igen. Lycka till!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Startar Home Manager-aktivering"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Kontrollerar att Nix funkar"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "Detta är en simulerad körning"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "Detta är en verklig körning"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Använder Nix-version: %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "Aktiveringsvariabler:"
+
+#~ msgid ""
+#~ "Oops, nix-env failed to install your new Home Manager profile!\n"
+#~ "\n"
+#~ "Perhaps there is a conflict with a package that was installed using\n"
+#~ "\"nix-env -i\"? Try running\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "and if there is a conflicting package you can remove it with\n"
+#~ "\n"
+#~ " nix-env -e {package name}\n"
+#~ "\n"
+#~ "Then try activating your Home Manager configuration again."
+#~ msgstr ""
+#~ "Ajdå, nix-env lyckades inte installera din nya Home Manager-profil!\n"
+#~ "\n"
+#~ "Kanske det finns en konflikt med ett paket som installerades genom\n"
+#~ "\"nix-env -i\"? Prova att köra\n"
+#~ "\n"
+#~ " nix-env -q\n"
+#~ "\n"
+#~ "och om det finns ett paket som är i vägen så kan du ta bort det med\n"
+#~ "\n"
+#~ " nix-env -e {paketnamn}\n"
+#~ "\n"
+#~ "Prova sedan att aktivera din Home Manager-konfiguration igen."
diff --git a/third_party/home-manager/modules/po/tr.po b/third_party/home-manager/modules/po/tr.po
new file mode 100644
index 0000000000..5b7dad7396
--- /dev/null
+++ b/third_party/home-manager/modules/po/tr.po
@@ -0,0 +1,125 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-03-26 23:57+0000\n"
+"Last-Translator: Oğuz Ersen \n"
+"Language-Team: Turkish \n"
+"Language: tr\n"
+"MIME-Version: 1.0\n"
+"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.12-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "%s konumunda ev dosya bağlantıları oluşturuluyor"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "Geçersiz bağlantılar temizleniyor %s"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "%s profil inşası oluşturuluyor"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "Değişiklik yok, bu nedenle en son profil inşası %s yeniden kullanılıyor"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"Eyvah, Nix yeni Home Manager profilinizi kuramadı!\n"
+"\n"
+"Belki de \"%s\" kullanan kurulan paketlerin biriyle bir çakışma vardır?\n"
+"\n"
+" %s\n"
+"\n"
+"komutunu çalıştırın ve eğer çakışan bir paket varsa onu\n"
+"\n"
+" %s\n"
+"\n"
+"ile kaldırabilirsiniz. Sonra Home Manager yapılandırmanızı yeniden\n"
+"etkinleştirmeyi deneyin."
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "%s etkinleştiriliyor"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "oldGenNum ve oldGenPath denetleniyor"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+"Önceki inşa numarası ve yolu çakışıyor! Bunların ikisi de boş olmalı\n"
+"veya ayarlanmalı ama şu anda\n"
+"\n"
+" '%s' ve '%s'\n"
+"\n"
+"olarak ayarlandı. Önceki profil inşalarını kaybetmeyi önemsemiyorsanız\n"
+"en kolay çözüm muhtemelen\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"komutlarını çalıştırmak ve tekrar home-manager switch denemektir. İyi "
+"şanslar!"
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "Home Manager etkinleştirmesi başlatılıyor"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "Nix denetleniyor"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "Bu bir deneme çalıştırmasıdır"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "Bu bir gerçek çalıştırmadır"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "Kullanılan Nix sürümü: %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "Etkinleştirme değişkenleri:"
diff --git a/third_party/home-manager/modules/po/zh_Hans.po b/third_party/home-manager/modules/po/zh_Hans.po
new file mode 100644
index 0000000000..ca62aa8749
--- /dev/null
+++ b/third_party/home-manager/modules/po/zh_Hans.po
@@ -0,0 +1,112 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2022-05-16 13:18+0000\n"
+"Last-Translator: Yubo-Cao \n"
+"Language-Team: Chinese (Simplified) \n"
+"Language: zh_Hans\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.13-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "正在 %s 中创建家目录文件链接"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "正在从 %s 清理孤立链接"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "正在创建配置文件世代 %s"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "未发生变化,正在重新使用最近一次的配置文件世代 %s"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"糟糕,Nix 未能安装您的新 Home Manager 配置文件!\n"
+"\n"
+"也许这里和使用 \"%s\" 安装的包有冲突?\n"
+"尝试运行\n"
+"\n"
+" %s\n"
+"\n"
+"如果有冲突的包,你可以用\n"
+"\n"
+" %s\n"
+"\n"
+"来移除。然后尝试再次激活您的 Home Manager 配置。"
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "正在激活 %s"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "正在进行 oldGenNum 和 oldGenPath 的完整性检查"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "正在启动 Home Manager 初始化程序"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "正在进行 Nix 完整性检查"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "这是试运行"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "这是在实际运行"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "正在使用的 Nix 版本: %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "激活的变量:"
diff --git a/third_party/home-manager/modules/po/zh_Hant.po b/third_party/home-manager/modules/po/zh_Hant.po
new file mode 100644
index 0000000000..0e7fc6f84c
--- /dev/null
+++ b/third_party/home-manager/modules/po/zh_Hant.po
@@ -0,0 +1,112 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Home Manager contributors
+# This file is distributed under the same license as the Home Manager Modules package.
+# FIRST AUTHOR , YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Home Manager Modules\n"
+"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
+"POT-Creation-Date: 2022-03-26 15:08+0100\n"
+"PO-Revision-Date: 2023-01-08 11:50+0000\n"
+"Last-Translator: Eric Ho \n"
+"Language-Team: Chinese (Traditional) \n"
+"Language: zh_Hant\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 4.15.1-dev\n"
+
+#: modules/files.nix:233
+msgid "Creating home file links in %s"
+msgstr "正在 %s 中建立家目錄檔案連結"
+
+#: modules/files.nix:246
+msgid "Cleaning up orphan links from %s"
+msgstr "正在從 %s 清理孤立連結"
+
+#: modules/files.nix:262
+msgid "Creating profile generation %s"
+msgstr "正在建立配置檔案世代 %s"
+
+#: modules/files.nix:276
+msgid "No change so reusing latest profile generation %s"
+msgstr "未發生變化,正在重新使用最近一次的配置檔案世代 %s"
+
+#: modules/home-environment.nix:607
+msgid ""
+"Oops, Nix failed to install your new Home Manager profile!\n"
+"\n"
+"Perhaps there is a conflict with a package that was installed using\n"
+"\"%s\"? Try running\n"
+"\n"
+" %s\n"
+"\n"
+"and if there is a conflicting package you can remove it with\n"
+"\n"
+" %s\n"
+"\n"
+"Then try activating your Home Manager configuration again."
+msgstr ""
+"糟糕,Nix 未能安裝您的新 Home Manager 配置文件!\n"
+"\n"
+"也許這裏和使用 \"%s\" 安裝的包有衝突?\n"
+"嘗試運行\n"
+"\n"
+" %s\n"
+"\n"
+"如果有衝突的包,你可以用\n"
+"\n"
+" %s\n"
+"\n"
+"來移除。然後嘗試再次啟用您的 Home Manager 配置。"
+
+#: modules/home-environment.nix:639
+msgid "Activating %s"
+msgstr "正在啟用 %s"
+
+#: modules/lib-bash/activation-init.sh:31
+msgid "Sanity checking oldGenNum and oldGenPath"
+msgstr "正在進行 oldGenNum 和 oldGenPath 的完整性檢查"
+
+#: modules/lib-bash/activation-init.sh:34
+msgid ""
+"The previous generation number and path are in conflict! These\n"
+"must be either both empty or both set but are now set to\n"
+"\n"
+" '%s' and '%s'\n"
+"\n"
+"If you don't mind losing previous profile generations then\n"
+"the easiest solution is probably to run\n"
+"\n"
+" rm %s/home-manager*\n"
+" rm %s/current-home\n"
+"\n"
+"and trying home-manager switch again. Good luck!"
+msgstr ""
+
+#: modules/lib-bash/activation-init.sh:51
+msgid "Starting Home Manager activation"
+msgstr "正在啟動 Home Manager 初始化程式"
+
+#: modules/lib-bash/activation-init.sh:55
+msgid "Sanity checking Nix"
+msgstr "正在進行 Nix 完整性檢查"
+
+#: modules/lib-bash/activation-init.sh:61
+msgid "This is a dry run"
+msgstr "這是試運行"
+
+#: modules/lib-bash/activation-init.sh:64
+msgid "This is a live run"
+msgstr "這是在實際運行"
+
+#: modules/lib-bash/activation-init.sh:69
+msgid "Using Nix version: %s"
+msgstr "正在使用的 Nix 版本: %s"
+
+#: modules/lib-bash/activation-init.sh:72
+msgid "Activation variables:"
+msgstr "啟用的變數:"
diff --git a/third_party/home-manager/modules/programs/aerc-accounts.nix b/third_party/home-manager/modules/programs/aerc-accounts.nix
new file mode 100644
index 0000000000..ebe1d5413a
--- /dev/null
+++ b/third_party/home-manager/modules/programs/aerc-accounts.nix
@@ -0,0 +1,131 @@
+{ config, lib, pkgs, confSections, confSection, ... }:
+
+with lib;
+
+let
+ mapAttrNames = f: attr:
+ with builtins;
+ listToAttrs (attrValues (mapAttrs (k: v: {
+ name = f k;
+ value = v;
+ }) attr));
+ addAccountName = name: k: "${k}:account=${name}";
+in {
+ type = mkOption {
+ type = types.attrsOf (types.submodule {
+ options.aerc = {
+ enable = mkEnableOption "aerc";
+ extraAccounts = mkOption {
+ type = confSection;
+ default = { };
+ example =
+ literalExpression ''{ source = "maildir://~/Maildir/example"; }'';
+ description = ''
+ Extra config added to the configuration of this account in
+ $HOME/.config/aerc/accounts.conf.
+ See aerc-config(5).
+ '';
+ };
+ extraBinds = mkOption {
+ type = confSections;
+ default = { };
+ example = literalExpression
+ ''{ messages = { d = ":move ''${folder.trash}"; }; }'';
+ description = ''
+ Extra bindings specific to this account, added to
+ $HOME/.config/aerc/accounts.conf.
+ See aerc-config(5).
+ '';
+ };
+ extraConfig = mkOption {
+ type = confSections;
+ default = { };
+ example = literalExpression "{ ui = { sidebar-width = 42; }; }";
+ description = ''
+ Extra config specific to this account, added to
+ $HOME/.config/aerc/aerc.conf.
+ See aerc-config(5).
+ '';
+ };
+ smtpAuth = mkOption {
+ type = with types; nullOr (enum [ "none" "plain" "login" ]);
+ default = "plain";
+ example = "auth";
+ description = ''
+ Sets the authentication mechanism if smtp is used as the outgoing
+ method.
+ See aerc-smtp(5).
+ '';
+ };
+ };
+ });
+ };
+ mkAccount = name: account:
+ let
+ nullOrMap = f: v: if v == null then v else f v;
+ optPort = port: if port != null then ":${toString port}" else "";
+ optAttr = k: v:
+ if v != null && v != [ ] && v != "" then { ${k} = v; } else { };
+ optPwCmd = k: p:
+ optAttr "${k}-cred-cmd" (nullOrMap (builtins.concatStringsSep " ") p);
+ mkConfig = {
+ maildir = cfg: {
+ source =
+ "maildir://${config.accounts.email.maildirBasePath}/${cfg.maildir.path}";
+ };
+ imap = { userName, imap, passwordCommand, aerc, ... }@cfg:
+ let
+ protocol = if imap.tls.enable then
+ if imap.tls.useStartTls then "imap" else "imaps"
+ else
+ "imap+insecure";
+ port' = optPort imap.port;
+ in {
+ source = "${protocol}://${userName}@${imap.host}${port'}";
+ } // optPwCmd "source" passwordCommand;
+ smtp = { userName, smtp, passwordCommand, ... }@cfg:
+ let
+ loginMethod' =
+ if cfg.aerc.smtpAuth != null then "+${cfg.aerc.smtpAuth}" else "";
+ protocol = if smtp.tls.enable && !smtp.tls.useStartTls then
+ "smtps${loginMethod'}"
+ else
+ "smtp${loginMethod'}";
+ port' = optPort smtp.port;
+ smtp-starttls =
+ if smtp.tls.enable && smtp.tls.useStartTls then "yes" else null;
+ in {
+ outgoing = "${protocol}://${userName}@${smtp.host}${port'}";
+ } // optPwCmd "outgoing" passwordCommand
+ // optAttr "smtp-starttls" smtp-starttls;
+ msmtp = cfg: {
+ outgoing = "msmtpq --read-envelope-from --read-recipients";
+ };
+ };
+ basicCfg = account:
+ {
+ from = "${account.realName} <${account.address}>";
+ } // (optAttr "copy-to" account.folders.sent)
+ // (optAttr "default" account.folders.inbox)
+ // (optAttr "postpone" account.folders.drafts)
+ // (optAttr "aliases" account.aliases) // account.aerc.extraAccounts;
+ sourceCfg = account:
+ if account.mbsync.enable || account.offlineimap.enable then
+ mkConfig.maildir account
+ else if account.imap != null then
+ mkConfig.imap account
+ else
+ { };
+ outgoingCfg = account:
+ if account.msmtp.enable then
+ mkConfig.msmtp account
+ else if account.smtp != null then
+ mkConfig.smtp account
+ else
+ { };
+ in (basicCfg account) // (sourceCfg account) // (outgoingCfg account);
+ mkAccountConfig = name: account:
+ mapAttrNames (addAccountName name) account.aerc.extraConfig;
+ mkAccountBinds = name: account:
+ mapAttrNames (addAccountName name) account.aerc.extraBinds;
+}
diff --git a/third_party/home-manager/modules/programs/aerc.nix b/third_party/home-manager/modules/programs/aerc.nix
new file mode 100644
index 0000000000..ad44bf9064
--- /dev/null
+++ b/third_party/home-manager/modules/programs/aerc.nix
@@ -0,0 +1,165 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+let
+ cfg = config.programs.aerc;
+ primitive = with types;
+ ((type: either type (listOf type)) (nullOr (oneOf [ str int bool float ])))
+ // {
+ description =
+ "values (null, bool, int, string of float) or a list of values, that will be joined with a comma";
+ };
+ confSection = types.attrsOf primitive;
+ confSections = types.attrsOf confSection;
+ sectionsOrLines = types.either types.lines confSections;
+ accounts = import ./aerc-accounts.nix {
+ inherit config pkgs lib confSection confSections;
+ };
+ aerc-accounts =
+ attrsets.filterAttrs (_: v: v.aerc.enable) config.accounts.email.accounts;
+in {
+ meta.maintainers = with lib.hm.maintainers; [ lukasngl ];
+
+ options.accounts.email.accounts = accounts.type;
+ options.programs.aerc = {
+
+ enable = mkEnableOption "aerc";
+
+ extraAccounts = mkOption {
+ type = sectionsOrLines;
+ default = { };
+ example = literalExpression
+ ''{ Work = { source = "maildir://~/Maildir/work"; }; }'';
+ description = ''
+ Extra lines added to $HOME/.config/aerc/accounts.conf.
+ See aerc-config(5).
+ '';
+ };
+
+ extraBinds = mkOption {
+ type = sectionsOrLines;
+ default = { };
+ example = literalExpression ''{ messages = { q = ":quit"; }; }'';
+ description = ''
+ Extra lines added to $HOME/.config/aerc/binds.conf.
+ Global keybindings can be set in the `global` section.
+ See aerc-config(5).
+ '';
+ };
+
+ extraConfig = mkOption {
+ type = sectionsOrLines;
+ default = { };
+ example = literalExpression ''{ ui = { sort = "-r date"; }; }'';
+ description = ''
+ Extra lines added to $HOME/.config/aerc/aerc.conf.
+ See aerc-config(5).
+ '';
+ };
+
+ stylesets = mkOption {
+ type = with types; attrsOf (either confSection lines);
+ default = { };
+ example = literalExpression ''
+ { default = { ui = { "tab.selected.reverse" = toggle; }; }; };
+ '';
+ description = ''
+ Stylesets added to $HOME/.config/aerc/stylesets/.
+ See aerc-stylesets(7).
+ '';
+ };
+ templates = mkOption {
+ type = with types; attrsOf lines;
+ default = { };
+ example = literalExpression ''
+ { new_message = "Hello!"; };
+ '';
+ description = ''
+ Templates added to $HOME/.config/aerc/templates/.
+ See aerc-templates(7).
+ '';
+ };
+ };
+
+ config = let
+ joinCfg = cfgs:
+ with builtins;
+ concatStringsSep "\n" (filter (v: v != "") cfgs);
+ toINI = conf: # quirk: global section is prepended w/o section heading
+ let
+ global = conf.global or { };
+ local = removeAttrs conf [ "global" ];
+ optNewLine = if global != { } && local != { } then "\n" else "";
+ mkValueString = v:
+ with builtins;
+ if isList v then # join with comma
+ concatStringsSep "," (map (generators.mkValueStringDefault { }) v)
+ else
+ generators.mkValueStringDefault { } v;
+ mkKeyValue =
+ generators.mkKeyValueDefault { inherit mkValueString; } " = ";
+ in joinCfg [
+ (generators.toKeyValue { inherit mkKeyValue; } global)
+ (generators.toINI { inherit mkKeyValue; } local)
+ ];
+ mkINI = conf: if builtins.isString conf then conf else toINI conf;
+ mkStyleset = attrsets.mapAttrs' (k: v:
+ let value = if builtins.isString v then v else toINI { global = v; };
+ in {
+ name = "aerc/stylesets/${k}";
+ value.text = joinCfg [ header value ];
+ });
+ mkTemplates = attrsets.mapAttrs' (k: v: {
+ name = "aerc/templates/${k}";
+ value.text = v;
+ });
+ accountsExtraAccounts = builtins.mapAttrs accounts.mkAccount aerc-accounts;
+ accountsExtraConfig =
+ builtins.mapAttrs accounts.mkAccountConfig aerc-accounts;
+ accountsExtraBinds =
+ builtins.mapAttrs accounts.mkAccountBinds aerc-accounts;
+ joinContextual = contextual:
+ with builtins;
+ joinCfg (map mkINI (attrValues contextual));
+ header = ''
+ # Generated by Home Manager.
+ '';
+ in mkIf cfg.enable {
+ warnings = if ((cfg.extraAccounts != "" && cfg.extraAccounts != { })
+ || accountsExtraAccounts != { })
+ && (cfg.extraConfig.general.unsafe-accounts-conf or false) == false then [''
+ aerc: An email account was configured, but `extraConfig.general.unsafe-accounts-conf` is set to false or unset.
+ This will prevent aerc from starting, see `unsafe-accounts-conf` in aerc-config(5) for details.
+ Consider setting the option `extraConfig.general.unsafe-accounts-conf` to true.
+ ''] else
+ [ ];
+ home.packages = [ pkgs.aerc ];
+ xdg.configFile = {
+ "aerc/accounts.conf" = mkIf
+ ((cfg.extraAccounts != "" && cfg.extraAccounts != { })
+ || accountsExtraAccounts != { }) {
+ text = joinCfg [
+ header
+ (mkINI cfg.extraAccounts)
+ (mkINI accountsExtraAccounts)
+ ];
+ };
+ "aerc/aerc.conf" =
+ mkIf (cfg.extraConfig != "" && cfg.extraConfig != { }) {
+ text = joinCfg [
+ header
+ (mkINI cfg.extraConfig)
+ (joinContextual accountsExtraConfig)
+ ];
+ };
+ "aerc/binds.conf" = mkIf ((cfg.extraBinds != "" && cfg.extraBinds != { })
+ || accountsExtraBinds != { }) {
+ text = joinCfg [
+ header
+ (mkINI cfg.extraBinds)
+ (joinContextual accountsExtraBinds)
+ ];
+ };
+ } // (mkStyleset cfg.stylesets) // (mkTemplates cfg.templates);
+ };
+}
diff --git a/third_party/home-manager/modules/programs/alacritty.nix b/third_party/home-manager/modules/programs/alacritty.nix
index d34efb7759..eaf304144d 100644
--- a/third_party/home-manager/modules/programs/alacritty.nix
+++ b/third_party/home-manager/modules/programs/alacritty.nix
@@ -37,8 +37,8 @@ in {
'';
description = ''
Configuration written to
- ~/.config/alacritty/alacritty.yml. See
-
+ $XDG_CONFIG_HOME/alacritty/alacritty.yml. See
+
for the default configuration.
'';
};
diff --git a/third_party/home-manager/modules/programs/astroid.nix b/third_party/home-manager/modules/programs/astroid.nix
index 296e8dc5e4..4e79ea4d3c 100644
--- a/third_party/home-manager/modules/programs/astroid.nix
+++ b/third_party/home-manager/modules/programs/astroid.nix
@@ -42,7 +42,8 @@ let
template = fromJSON (readFile ./astroid-config-template.json);
astroidConfig = foldl' recursiveUpdate template [
{
- astroid.notmuch_config = "${config.xdg.configHome}/notmuch/notmuchrc";
+ astroid.notmuch_config =
+ "${config.xdg.configHome}/notmuch/default/config";
accounts = mapAttrs (n: accountAttr) astroidAccounts;
crypto.gpg.path = "${pkgs.gnupg}/bin/gpg";
}
diff --git a/third_party/home-manager/modules/programs/atuin.nix b/third_party/home-manager/modules/programs/atuin.nix
index dcf1232f8f..9a38f54218 100644
--- a/third_party/home-manager/modules/programs/atuin.nix
+++ b/third_party/home-manager/modules/programs/atuin.nix
@@ -40,6 +40,16 @@ in {
'';
};
+ enableFishIntegration = mkOption {
+ default = true;
+ type = types.bool;
+ description = ''
+ Whether to enable Atuin's Fish integration.
+
+ If enabled, this will bind the up-arrow key to open the Atuin history.
+ '';
+ };
+
settings = mkOption {
type = with types;
let
@@ -60,7 +70,7 @@ in {
'';
description = ''
Configuration written to
- ~/.config/atuin/config.toml.
+ $XDG_CONFIG_HOME/atuin/config.toml.
See for the full list
of options.
@@ -79,12 +89,20 @@ in {
};
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
- source "${pkgs.bash-preexec}/share/bash/bash-preexec.sh"
- eval "$(${cfg.package}/bin/atuin init bash)"
+ if [[ :$SHELLOPTS: =~ :(vi|emacs): ]]; then
+ source "${pkgs.bash-preexec}/share/bash/bash-preexec.sh"
+ eval "$(${cfg.package}/bin/atuin init bash)"
+ fi
'';
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
- eval "$(${cfg.package}/bin/atuin init zsh)"
+ if [[ $options[zle] = on ]]; then
+ eval "$(${cfg.package}/bin/atuin init zsh)"
+ fi
+ '';
+
+ programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration ''
+ ${cfg.package}/bin/atuin init fish | source
'';
};
}
diff --git a/third_party/home-manager/modules/programs/autorandr.nix b/third_party/home-manager/modules/programs/autorandr.nix
index 359795e85d..9e7c6fcc43 100644
--- a/third_party/home-manager/modules/programs/autorandr.nix
+++ b/third_party/home-manager/modules/programs/autorandr.nix
@@ -89,13 +89,6 @@ let
example = "60.00";
};
- panning = mkOption {
- type = types.str;
- description = "X11 panning specification ([width]x[height]+[x]+[y]).";
- default = "";
- example = "3840x2160+0+0";
- };
-
gamma = mkOption {
type = types.str;
description = "Output gamma configuration.";
@@ -183,6 +176,13 @@ let
}
'';
};
+
+ filter = mkOption {
+ type = types.nullOr (types.enum [ "bilinear" "nearest" ]);
+ description = "Interpolation method to be used for scaling the output.";
+ default = null;
+ example = "nearest";
+ };
};
};
@@ -266,9 +266,9 @@ let
++ optional (config.dpi != null) "dpi ${toString config.dpi}"
++ optional (config.gamma != "") "gamma ${config.gamma}"
++ optional (config.mode != "") "mode ${config.mode}"
- ++ optional (config.panning != "") "panning ${config.panning}"
++ optional (config.rate != "") "rate ${config.rate}"
++ optional (config.rotate != null) "rotate ${config.rotate}"
+ ++ optional (config.filter != null) "filter ${config.filter}"
++ optional (config.transform != null) ("transform "
+ concatMapStringsSep "," toString (flatten config.transform))
++ optional (config.scale != null)
@@ -305,7 +305,7 @@ in {
DPI=144
;;
*)
- echo "Unknown profle: $AUTORANDR_CURRENT_PROFILE"
+ echo "Unknown profile: $AUTORANDR_CURRENT_PROFILE"
exit 1
esac
diff --git a/third_party/home-manager/modules/programs/bash.nix b/third_party/home-manager/modules/programs/bash.nix
index c0165fe763..742087b7d8 100644
--- a/third_party/home-manager/modules/programs/bash.nix
+++ b/third_party/home-manager/modules/programs/bash.nix
@@ -6,6 +6,13 @@ let
cfg = config.programs.bash;
+ writeBashScript = name: text: pkgs.writeTextFile {
+ inherit name text;
+ checkPhase = ''
+ ${pkgs.stdenv.shellDryRun} "$target"
+ '';
+ };
+
in
{
@@ -23,6 +30,27 @@ in
programs.bash = {
enable = mkEnableOption "GNU Bourne-Again SHell";
+ enableCompletion = mkOption {
+ type = types.bool;
+ default = true;
+ description = ''
+ Whether to enable Bash completion for all interactive Bash shells.
+
+
+
+ Note, if you use NixOS or nix-darwin and do not have Bash completion
+ enabled in the system configuration, then make sure to add
+
+
+ environment.pathsToLink = [ "/share/bash-completion" ];
+
+
+ to your system configuration to get completion for system packages.
+ Note, the legacy /etc/bash_completion.d path is
+ not supported by Home Manager.
+ '';
+ };
+
historySize = mkOption {
type = types.int;
default = 10000;
@@ -174,11 +202,11 @@ in
HISTCONTROL = concatStringsSep ":" cfg.historyControl;
}
// optionalAttrs (cfg.historyIgnore != []) {
- HISTIGNORE = concatStringsSep ":" cfg.historyIgnore;
+ HISTIGNORE = escapeShellArg (concatStringsSep ":" cfg.historyIgnore);
}
));
in mkIf cfg.enable {
- home.file.".bash_profile".source = pkgs.writeShellScript "bash_profile" ''
+ home.file.".bash_profile".source = writeBashScript "bash_profile" ''
# include .profile if it exists
[[ -f ~/.profile ]] && . ~/.profile
@@ -186,7 +214,16 @@ in
[[ -f ~/.bashrc ]] && . ~/.bashrc
'';
- home.file.".profile".source = pkgs.writeShellScript "profile" ''
+ # If completion is enabled then make sure it is sourced very early. This
+ # is to avoid problems if any other initialization code attempts to set up
+ # completion.
+ programs.bash.initExtra = mkIf cfg.enableCompletion (mkOrder 100 ''
+ if [[ ! -v BASH_COMPLETION_VERSINFO ]]; then
+ . "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh"
+ fi
+ '');
+
+ home.file.".profile".source = writeBashScript "profile" ''
. "${config.home.profileDirectory}/etc/profile.d/hm-session-vars.sh"
${sessionVarsStr}
@@ -194,7 +231,7 @@ in
${cfg.profileExtra}
'';
- home.file.".bashrc".source = pkgs.writeShellScript "bashrc" ''
+ home.file.".bashrc".source = writeBashScript "bashrc" ''
${cfg.bashrcExtra}
# Commands that should be applied only for interactive shells.
@@ -210,7 +247,7 @@ in
'';
home.file.".bash_logout" = mkIf (cfg.logoutExtra != "") {
- source = pkgs.writeShellScript "bash_logout" cfg.logoutExtra;
+ source = writeBashScript "bash_logout" cfg.logoutExtra;
};
}
);
diff --git a/third_party/home-manager/modules/programs/bashmount.nix b/third_party/home-manager/modules/programs/bashmount.nix
new file mode 100644
index 0000000000..38d57456e7
--- /dev/null
+++ b/third_party/home-manager/modules/programs/bashmount.nix
@@ -0,0 +1,34 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+
+ cfg = config.programs.bashmount;
+
+in {
+ meta.maintainers = [ maintainers.AndersonTorres ];
+
+ options.programs.bashmount = {
+ enable = mkEnableOption "bashmount";
+
+ extraConfig = mkOption {
+ type = types.lines;
+ default = "";
+ description = ''
+ Configuration written to
+ $XDG_CONFIG_HOME/bashmount/config. Look at
+
+ for explanation about possible values.
+ '';
+ };
+
+ };
+
+ config = mkIf cfg.enable {
+ home.packages = [ pkgs.bashmount ];
+
+ xdg.configFile."bashmount/config" =
+ mkIf (cfg.extraConfig != "") { text = cfg.extraConfig; };
+ };
+}
diff --git a/third_party/home-manager/modules/programs/bat.nix b/third_party/home-manager/modules/programs/bat.nix
index 30b0bbb715..df2e496855 100644
--- a/third_party/home-manager/modules/programs/bat.nix
+++ b/third_party/home-manager/modules/programs/bat.nix
@@ -30,6 +30,16 @@ in {
'';
};
+ extraPackages = mkOption {
+ type = types.listOf types.package;
+ default = [ ];
+ example = literalExpression
+ "with pkgs.bat-extras; [ batdiff batman batgrep batwatch ];";
+ description = ''
+ Additional bat packages to install.
+ '';
+ };
+
themes = mkOption {
type = types.attrsOf types.lines;
default = { };
@@ -51,7 +61,7 @@ in {
};
config = mkIf cfg.enable {
- home.packages = [ pkgs.bat ];
+ home.packages = [ pkgs.bat ] ++ cfg.extraPackages;
xdg.configFile = mkMerge ([{
"bat/config" =
diff --git a/third_party/home-manager/modules/programs/beets.nix b/third_party/home-manager/modules/programs/beets.nix
index a0b8a346b0..fa959669c2 100644
--- a/third_party/home-manager/modules/programs/beets.nix
+++ b/third_party/home-manager/modules/programs/beets.nix
@@ -45,7 +45,7 @@ in {
default = { };
description = ''
Configuration written to
- ~/.config/beets/config.yaml
+ $XDG_CONFIG_HOME/beets/config.yaml
'';
};
};
diff --git a/third_party/home-manager/modules/programs/borgmatic.nix b/third_party/home-manager/modules/programs/borgmatic.nix
new file mode 100644
index 0000000000..d69803884d
--- /dev/null
+++ b/third_party/home-manager/modules/programs/borgmatic.nix
@@ -0,0 +1,196 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+ cfg = config.programs.borgmatic;
+
+ mkNullableOption = args:
+ lib.mkOption (args // {
+ type = lib.types.nullOr args.type;
+ default = null;
+ });
+
+ mkRetentionOption = frequency:
+ mkNullableOption {
+ type = types.int;
+ description =
+ "Number of ${frequency} archives to keep. Use -1 for no limit.";
+ example = 3;
+ };
+
+ extraConfigOption = mkOption {
+ type = with types; attrsOf (oneOf [ str bool path int (listOf str) ]);
+ default = { };
+ description = "Extra settings.";
+ };
+
+ consistencyCheckModule = types.submodule {
+ options = {
+ name = mkOption {
+ type = types.enum [ "repository" "archives" "data" "extract" ];
+ description = "Name of consistency check to run.";
+ example = "repository";
+ };
+
+ frequency = mkNullableOption {
+ type = types.strMatching "([[:digit:]]+ .*)|always";
+ description = "Frequency of this type of check";
+ example = "2 weeks";
+ };
+ };
+ };
+
+ configModule = types.submodule {
+ options = {
+ location = {
+ sourceDirectories = mkOption {
+ type = types.listOf types.str;
+ description = "Directories to backup.";
+ example = literalExpression "[config.home.homeDirectory]";
+ };
+
+ repositories = mkOption {
+ type = types.listOf types.str;
+ description = "Paths to repositories.";
+ example =
+ literalExpression ''["ssh://myuser@myrepo.myserver.com/./repo"]'';
+ };
+
+ extraConfig = extraConfigOption;
+ };
+
+ storage = {
+ encryptionPasscommand = mkNullableOption {
+ type = types.str;
+ description = "Command writing the passphrase to standard output.";
+ example =
+ literalExpression ''"''${pkgs.password-store}/bin/pass borg-repo"'';
+ };
+ extraConfig = extraConfigOption;
+ };
+
+ retention = {
+ keepWithin = mkNullableOption {
+ type = types.strMatching "[[:digit:]]+[Hdwmy]";
+ description = "Keep all archives within this time interval.";
+ example = "2d";
+ };
+
+ keepSecondly = mkRetentionOption "secondly";
+ keepMinutely = mkRetentionOption "minutely";
+ keepHourly = mkRetentionOption "hourly";
+ keepDaily = mkRetentionOption "daily";
+ keepWeekly = mkRetentionOption "weekly";
+ keepMonthly = mkRetentionOption "monthly";
+ keepYearly = mkRetentionOption "yearly";
+
+ extraConfig = extraConfigOption;
+ };
+
+ consistency = {
+ checks = mkOption {
+ type = types.listOf consistencyCheckModule;
+ default = [ ];
+ description = "Consistency checks to run";
+ example = literalExpression ''
+ [
+ {
+ name = "repository";
+ frequency = "2 weeks";
+ }
+ {
+ name = "archives";
+ frequency = "4 weeks";
+ }
+ {
+ name = "data";
+ frequency = "6 weeks";
+ }
+ {
+ name = "extract";
+ frequency = "6 weeks";
+ }
+ ];
+ '';
+ };
+
+ extraConfig = extraConfigOption;
+ };
+ };
+ };
+
+ removeNullValues = attrSet: filterAttrs (key: value: value != null) attrSet;
+
+ writeConfig = config:
+ generators.toYAML { } {
+ location = removeNullValues {
+ source_directories = config.location.sourceDirectories;
+ repositories = config.location.repositories;
+ } // config.location.extraConfig;
+ storage = removeNullValues {
+ encryption_passcommand = config.storage.encryptionPasscommand;
+ } // config.storage.extraConfig;
+ retention = removeNullValues {
+ keep_within = config.retention.keepWithin;
+ keep_secondly = config.retention.keepSecondly;
+ keep_minutely = config.retention.keepMinutely;
+ keep_hourly = config.retention.keepHourly;
+ keep_daily = config.retention.keepDaily;
+ keep_weekly = config.retention.keepWeekly;
+ keep_monthly = config.retention.keepMonthly;
+ keep_yearly = config.retention.keepYearly;
+ } // config.retention.extraConfig;
+ consistency = removeNullValues { checks = config.consistency.checks; }
+ // config.consistency.extraConfig;
+ };
+in {
+ meta.maintainers = [ maintainers.DamienCassou ];
+
+ options = {
+ programs.borgmatic = {
+ enable = mkEnableOption "Borgmatic";
+
+ package = mkPackageOption pkgs "borgmatic" { };
+
+ backups = mkOption {
+ type = types.attrsOf configModule;
+ description = ''
+ Borgmatic allows for several named backup configurations,
+ each with its own source directories and repositories.
+ '';
+ example = literalExpression ''
+ {
+ personal = {
+ location = {
+ sourceDirectories = [ "/home/me/personal" ];
+ repositories = [ "ssh://myuser@myserver.com/./personal-repo" ];
+ };
+ };
+ work = {
+ location = {
+ sourceDirectories = [ "/home/me/work" ];
+ repositories = [ "ssh://myuser@myserver.com/./work-repo" ];
+ };
+ };
+ };
+ '';
+ };
+ };
+ };
+
+ config = mkIf cfg.enable {
+ assertions = [
+ (lib.hm.assertions.assertPlatform "programs.borgmatic" pkgs
+ lib.platforms.linux)
+ ];
+
+ xdg.configFile = with lib.attrsets;
+ mapAttrs' (configName: config:
+ nameValuePair ("borgmatic.d/" + configName + ".yaml") {
+ text = writeConfig config;
+ }) cfg.backups;
+
+ home.packages = [ cfg.package ];
+ };
+}
diff --git a/third_party/home-manager/modules/programs/broot.nix b/third_party/home-manager/modules/programs/broot.nix
index 79ffb3888d..d78074ef4f 100644
--- a/third_party/home-manager/modules/programs/broot.nix
+++ b/third_party/home-manager/modules/programs/broot.nix
@@ -8,14 +8,159 @@ let
tomlFormat = pkgs.formats.toml { };
- brootConf = {
- verbs = cfg.verbs;
- skin = cfg.skin;
- modal = cfg.modal;
+ settingsModule = {
+ freeformType = tomlFormat.type;
+
+ options = {
+ modal = mkEnableOption "modal (vim) mode";
+
+ verbs = mkOption {
+ type = with types; listOf (attrsOf (either bool str));
+ default = [ ];
+ example = literalExpression ''
+ [
+ { invocation = "p"; execution = ":parent"; }
+ { invocation = "edit"; shortcut = "e"; execution = "$EDITOR {file}" ; }
+ { invocation = "create {subpath}"; execution = "$EDITOR {directory}/{subpath}"; }
+ { invocation = "view"; execution = "less {file}"; }
+ {
+ invocation = "blop {name}\\.{type}";
+ execution = "mkdir {parent}/{type} && ''${pkgs.neovim}/bin/nvim {parent}/{type}/{name}.{type}";
+ from_shell = true;
+ }
+ ]
+ '';
+ description = ''
+ Define new verbs. For more information, see
+ .
+
+ The possible attributes are:
+
+
+
+
+
+ invocation (optional)
+ how the verb is called by the user, with placeholders for arguments
+
+
+ execution (mandatory)
+ how the verb is executed
+
+
+ key (optional)
+ a keyboard key triggering execution
+
+
+ shortcut (optional)
+ an alternate way to call the verb (without
+ the arguments part)
+
+
+ leave_broot (optional)
+ whether to quit broot on execution
+ (default: true)
+
+
+ from_shell (optional)
+ whether the verb must be executed from the
+ parent shell (default:
+ false)
+
+
+ '';
+ };
+
+ skin = mkOption {
+ type = types.attrsOf types.str;
+ default = { };
+ example = literalExpression ''
+ {
+ status_normal_fg = "grayscale(18)";
+ status_normal_bg = "grayscale(3)";
+ status_error_fg = "red";
+ status_error_bg = "yellow";
+ tree_fg = "red";
+ selected_line_bg = "grayscale(7)";
+ permissions_fg = "grayscale(12)";
+ size_bar_full_bg = "red";
+ size_bar_void_bg = "black";
+ directory_fg = "lightyellow";
+ input_fg = "cyan";
+ flag_value_fg = "lightyellow";
+ table_border_fg = "red";
+ code_fg = "lightyellow";
+ }
+ '';
+ description = ''
+ Color configuration.
+
+ Complete list of keys (expected to change before the v1 of broot):
+
+
+ char_match
+ code
+ directory
+ exe
+ file
+ file_error
+ flag_label
+ flag_value
+ input
+ link
+ permissions
+ selected_line
+ size_bar_full
+ size_bar_void
+ size_text
+ spinner
+ status_error
+ status_normal
+ table_border
+ tree
+ unlisted
+
+
+
+ Add _fg for a foreground color and
+ _bg for a background colors.
+ '';
+ };
+ };
};
+ shellInit = shell:
+ # Using mkAfter to make it more likely to appear after other
+ # manipulations of the prompt.
+ mkAfter ''
+ source ${
+ pkgs.runCommand "br.${shell}" { nativeBuildInputs = [ cfg.package ]; }
+ "broot --print-shell-function ${shell} > $out"
+ }
+ '';
in {
- meta.maintainers = [ maintainers.aheaume ];
+ meta.maintainers = [ hm.maintainers.aheaume ];
+
+ imports = [
+ (mkRenamedOptionModule [ "programs" "broot" "modal" ] [
+ "programs"
+ "broot"
+ "settings"
+ "modal"
+ ])
+ (mkRenamedOptionModule [ "programs" "broot" "verbs" ] [
+ "programs"
+ "broot"
+ "settings"
+ "verbs"
+ ])
+ (mkRenamedOptionModule [ "programs" "broot" "skin" ] [
+ "programs"
+ "broot"
+ "settings"
+ "skin"
+ ])
+ ];
options.programs.broot = {
enable = mkEnableOption "Broot, a better way to navigate directories";
@@ -44,83 +189,6 @@ in {
'';
};
- modal = mkEnableOption "modal (vim) mode";
-
- verbs = mkOption {
- type = with types; listOf (attrsOf (either bool str));
- default = [
- {
- invocation = "p";
- execution = ":parent";
- }
- {
- invocation = "edit";
- shortcut = "e";
- execution = "$EDITOR {file}";
- }
- {
- invocation = "create {subpath}";
- execution = "$EDITOR {directory}/{subpath}";
- }
- {
- invocation = "view";
- execution = "less {file}";
- }
- ];
- example = literalExpression ''
- [
- { invocation = "p"; execution = ":parent"; }
- { invocation = "edit"; shortcut = "e"; execution = "$EDITOR {file}" ; }
- { invocation = "create {subpath}"; execution = "$EDITOR {directory}/{subpath}"; }
- { invocation = "view"; execution = "less {file}"; }
- {
- invocation = "blop {name}\\.{type}";
- execution = "/bin/mkdir {parent}/{type} && /usr/bin/nvim {parent}/{type}/{name}.{type}";
- from_shell = true;
- }
- ]
- '';
- description = ''
- Define new verbs. For more information, see
- .
-
- The possible attributes are:
-
-
-
-
-
- invocation (optional)
- how the verb is called by the user, with placeholders for arguments
-
-
- execution (mandatory)
- how the verb is executed
-
-
- key (optional)
- a keyboard key triggering execution
-
-
- shortcut (optional)
- an alternate way to call the verb (without
- the arguments part)
-
-
- leave_broot (optional)
- whether to quit broot on execution
- (default: true)
-
-
- from_shell (optional)
- whether the verb must be executed from the
- parent shell (default:
- false)
-
-
- '';
- };
-
package = mkOption {
type = types.package;
default = pkgs.broot;
@@ -128,149 +196,48 @@ in {
description = "Package providing broot";
};
- skin = mkOption {
- type = types.attrsOf types.str;
+ settings = mkOption {
+ type = types.submodule settingsModule;
default = { };
- example = literalExpression ''
- {
- status_normal_fg = "grayscale(18)";
- status_normal_bg = "grayscale(3)";
- status_error_fg = "red";
- status_error_bg = "yellow";
- tree_fg = "red";
- selected_line_bg = "grayscale(7)";
- permissions_fg = "grayscale(12)";
- size_bar_full_bg = "red";
- size_bar_void_bg = "black";
- directory_fg = "lightyellow";
- input_fg = "cyan";
- flag_value_fg = "lightyellow";
- table_border_fg = "red";
- code_fg = "lightyellow";
- }
- '';
- description = ''
- Color configuration.
-
- Complete list of keys (expected to change before the v1 of broot):
-
-
- char_match
- code
- directory
- exe
- file
- file_error
- flag_label
- flag_value
- input
- link
- permissions
- selected_line
- size_bar_full
- size_bar_void
- size_text
- spinner
- status_error
- status_normal
- table_border
- tree
- unlisted
-
-
-
- Add _fg for a foreground color and
- _bg for a background colors.
- '';
+ description = "Verbatim config entries";
};
};
config = mkIf cfg.enable {
home.packages = [ cfg.package ];
- xdg.configFile."broot/conf.toml".source =
- tomlFormat.generate "broot-config" brootConf;
+ xdg.configFile."broot" = {
+ recursive = true;
+ source = pkgs.symlinkJoin {
+ name = "xdg.configFile.broot";
+ paths = [
+ (pkgs.writeTextDir "conf.toml" (builtins.readFile
+ (tomlFormat.generate "broot-config" cfg.settings)))
- # Dummy file to prevent broot from trying to reinstall itself
- xdg.configFile."broot/launcher/installed-v1".text = "";
+ # Copy all files under /resources/default-conf
+ "${cfg.package.src}/resources/default-conf"
- programs.bash.initExtra = mkIf cfg.enableBashIntegration (
- # Using mkAfter to make it more likely to appear after other
- # manipulations of the prompt.
- mkAfter ''
- # This script was automatically generated by the broot function
- # More information can be found in https://github.com/Canop/broot
- # This function starts broot and executes the command
- # it produces, if any.
- # It's needed because some shell commands, like `cd`,
- # have no useful effect if executed in a subshell.
- function br {
- f=$(mktemp)
- (
- set +e
- broot --outcmd "$f" "$@"
- code=$?
- if [ "$code" != 0 ]; then
- rm -f "$f"
- exit "$code"
- fi
- )
- code=$?
- if [ "$code" != 0 ]; then
- return "$code"
- fi
- d=$(cat "$f")
- rm -f "$f"
- eval "$d"
- }
- '');
+ # Dummy file to prevent broot from trying to reinstall itself
+ (pkgs.writeTextDir "launcher/installed-v1" "")
+ ];
- programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
- # This script was automatically generated by the broot function
- # More information can be found in https://github.com/Canop/broot
- # This function starts broot and executes the command
- # it produces, if any.
- # It's needed because some shell commands, like `cd`,
- # have no useful effect if executed in a subshell.
- function br {
- f=$(mktemp)
- (
- set +e
- broot --outcmd "$f" "$@"
- code=$?
- if [ "$code" != 0 ]; then
- rm -f "$f"
- exit "$code"
- fi
- )
- code=$?
- if [ "$code" != 0 ]; then
- return "$code"
- fi
- d=$(cat "$f")
- rm -f "$f"
- eval "$d"
+ # Remove conf.hjson, whose content has been merged into programs.broot.settings
+ postBuild = ''
+ rm $out/conf.hjson
+ '';
+ };
+ };
+
+ programs.broot.settings = builtins.fromJSON (builtins.readFile
+ (pkgs.runCommand "default-conf.json" {
+ nativeBuildInputs = [ pkgs.hjson ];
}
- '';
+ "hjson -c ${cfg.package.src}/resources/default-conf/conf.hjson > $out"));
- programs.fish.shellInit = mkIf cfg.enableFishIntegration ''
- # This script was automatically generated by the broot function
- # More information can be found in https://github.com/Canop/broot
- # This function starts broot and executes the command
- # it produces, if any.
- # It's needed because some shell commands, like `cd`,
- # have no useful effect if executed in a subshell.
- function br
- set f (mktemp)
- broot --outcmd $f $argv
- if test $status -ne 0
- rm -f "$f"
- return "$code"
- end
- set d (cat "$f")
- rm -f "$f"
- eval "$d"
- end
- '';
+ programs.bash.initExtra = mkIf cfg.enableBashIntegration (shellInit "bash");
+
+ programs.zsh.initExtra = mkIf cfg.enableZshIntegration (shellInit "zsh");
+
+ programs.fish.shellInit = mkIf cfg.enableFishIntegration (shellInit "fish");
};
}
diff --git a/third_party/home-manager/modules/programs/browserpass.nix b/third_party/home-manager/modules/programs/browserpass.nix
index 10a2883c87..8faf53151b 100644
--- a/third_party/home-manager/modules/programs/browserpass.nix
+++ b/third_party/home-manager/modules/programs/browserpass.nix
@@ -2,7 +2,9 @@
with lib;
-let browsers = [ "chrome" "chromium" "firefox" "vivaldi" ];
+let
+ cfg = config.programs.browserpass;
+ browsers = [ "brave" "chrome" "chromium" "firefox" "vivaldi" ];
in {
options = {
programs.browserpass = {
@@ -17,10 +19,22 @@ in {
};
};
- config = mkIf config.programs.browserpass.enable {
+ config = mkIf cfg.enable {
home.file = foldl' (a: b: a // b) { } (concatMap (x:
with pkgs.stdenv;
- if x == "chrome" then
+ if x == "brave" then
+ let
+ dir = if isDarwin then
+ "Library/Application Support/BraveSoftware/Brave-Browser/NativeMessagingHosts"
+ else
+ ".config/BraveSoftware/Brave-Browser/NativeMessagingHosts";
+ in [{
+ # Policies are read from `/etc/brave/policies` only
+ # https://github.com/brave/brave-browser/issues/19052
+ "${dir}/com.github.browserpass.native.json".source =
+ "${pkgs.browserpass}/lib/browserpass/hosts/chromium/com.github.browserpass.native.json";
+ }]
+ else if x == "chrome" then
let
dir = if isDarwin then
"Library/Application Support/Google/Chrome/NativeMessagingHosts"
@@ -71,6 +85,6 @@ in {
"${pkgs.browserpass}/lib/browserpass/policies/chromium/com.github.browserpass.native.json";
}]
else
- throw "unknown browser ${x}") config.programs.browserpass.browsers);
+ throw "unknown browser ${x}") cfg.browsers);
};
}
diff --git a/third_party/home-manager/modules/programs/btop.nix b/third_party/home-manager/modules/programs/btop.nix
new file mode 100644
index 0000000000..cdf011e79f
--- /dev/null
+++ b/third_party/home-manager/modules/programs/btop.nix
@@ -0,0 +1,64 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+
+ cfg = config.programs.btop;
+
+ finalConfig = let
+ toKeyValue = generators.toKeyValue {
+ mkKeyValue = generators.mkKeyValueDefault {
+ mkValueString = v:
+ with builtins;
+ if isBool v then
+ (if v then "True" else "False")
+ else if isString v then
+ ''"${v}"''
+ else
+ toString v;
+ } " = ";
+ };
+ in ''
+ ${toKeyValue cfg.settings}
+ ${optionalString (cfg.extraConfig != "") cfg.extraConfig}
+ '';
+
+in {
+ meta.maintainers = [ hm.maintainers.GaetanLepage ];
+
+ options.programs.btop = {
+ enable = mkEnableOption "btop";
+
+ package = mkPackageOption pkgs "btop" { };
+
+ settings = mkOption {
+ type = with types; attrsOf (oneOf [ bool float int str ]);
+ default = { };
+ example = {
+ color_theme = "Default";
+ theme_background = false;
+ };
+ description = ''
+ Options to add to btop.conf file.
+ See
+ for options.
+ '';
+ };
+
+ extraConfig = mkOption {
+ type = types.lines;
+ default = "";
+ description = ''
+ Extra lines added to the btop.conf file.
+ '';
+ };
+ };
+
+ config = mkIf cfg.enable {
+ home.packages = [ cfg.package ];
+
+ xdg.configFile."btop/btop.conf" =
+ mkIf (cfg.settings != { }) { text = finalConfig; };
+ };
+}
diff --git a/third_party/home-manager/modules/programs/chromium.nix b/third_party/home-manager/modules/programs/chromium.nix
index 5a10fe760b..646d847302 100644
--- a/third_party/home-manager/modules/programs/chromium.nix
+++ b/third_party/home-manager/modules/programs/chromium.nix
@@ -4,6 +4,15 @@ with lib;
let
+ supportedBrowsers = [
+ "chromium"
+ "google-chrome"
+ "google-chrome-beta"
+ "google-chrome-dev"
+ "brave"
+ "vivaldi"
+ ];
+
browserModule = defaultPkg: name: visible:
let
browser = (builtins.parseDrvName defaultPkg.name).name;
@@ -11,10 +20,10 @@ let
in {
enable = mkOption {
inherit visible;
+ type = types.bool;
default = false;
example = true;
description = "Whether to enable ${name}.";
- type = lib.types.bool;
};
package = mkOption {
@@ -24,6 +33,25 @@ let
defaultText = literalExpression "pkgs.${browser}";
description = "The ${name} package to use.";
};
+
+ commandLineArgs = mkOption {
+ inherit visible;
+ type = types.listOf types.str;
+ default = [ ];
+ example = [ "--enable-logging=stderr" "--ignore-gpu-blocklist" ];
+ description = ''
+ List of command-line arguments to be passed to ${name}.
+
+ Note this option does not have any effect when using a
+ custom package for .
+
+ For a list of common switches, see
+ Chrome switches.
+
+ To search switches for other components, see
+ Chromium codesearch.
+ '';
+ };
} // optionalAttrs (!isProprietaryChrome) {
# Extensions do not work with Google Chrome
# see https://github.com/nix-community/home-manager/issues/1383
@@ -36,7 +64,7 @@ let
id = mkOption {
type = strMatching "[a-zA-Z]{32}";
description = ''
- The extension's ID from the Chome Web Store url or the unpacked crx.
+ The extension's ID from the Chrome Web Store url or the unpacked crx.
'';
default = "";
};
@@ -105,6 +133,7 @@ let
drvName = (builtins.parseDrvName cfg.package.name).name;
browser = if drvName == "ungoogled-chromium" then "chromium" else drvName;
+ isProprietaryChrome = hasPrefix "google-chrome" drvName;
darwinDirs = {
chromium = "Chromium";
@@ -135,9 +164,19 @@ let
in mkIf cfg.enable {
home.packages = [ cfg.package ];
- home.file = listToAttrs (map extensionJson (cfg.extensions or [ ]));
+ home.file = optionalAttrs (!isProprietaryChrome)
+ (listToAttrs (map extensionJson cfg.extensions));
};
+ browserPkgs = genAttrs supportedBrowsers (browser:
+ let cfg = config.programs.${browser};
+ in if cfg.commandLineArgs != [ ] then
+ pkgs.${browser}.override {
+ commandLineArgs = concatStringsSep " " cfg.commandLineArgs;
+ }
+ else
+ pkgs.${browser});
+
in {
# Extensions do not work with the proprietary Google Chrome version
# see https://github.com/nix-community/home-manager/issues/1383
@@ -149,20 +188,17 @@ in {
];
options.programs = {
- chromium = browserModule pkgs.chromium "Chromium" true;
- google-chrome = browserModule pkgs.google-chrome "Google Chrome" false;
+ chromium = browserModule browserPkgs.chromium "Chromium" true;
+ google-chrome =
+ browserModule browserPkgs.google-chrome "Google Chrome" false;
google-chrome-beta =
- browserModule pkgs.google-chrome-beta "Google Chrome Beta" false;
+ browserModule browserPkgs.google-chrome-beta "Google Chrome Beta" false;
google-chrome-dev =
- browserModule pkgs.google-chrome-dev "Google Chrome Dev" false;
- brave = browserModule pkgs.brave "Brave Browser" false;
+ browserModule browserPkgs.google-chrome-dev "Google Chrome Dev" false;
+ brave = browserModule browserPkgs.brave "Brave Browser" false;
+ vivaldi = browserModule browserPkgs.vivaldi "Vivaldi Browser" false;
};
- config = mkMerge [
- (browserConfig config.programs.chromium)
- (browserConfig config.programs.google-chrome)
- (browserConfig config.programs.google-chrome-beta)
- (browserConfig config.programs.google-chrome-dev)
- (browserConfig config.programs.brave)
- ];
+ config = mkMerge
+ (map (browser: browserConfig config.programs.${browser}) supportedBrowsers);
}
diff --git a/third_party/home-manager/modules/programs/direnv.nix b/third_party/home-manager/modules/programs/direnv.nix
index ad4c499346..1d6ef2127d 100644
--- a/third_party/home-manager/modules/programs/direnv.nix
+++ b/third_party/home-manager/modules/programs/direnv.nix
@@ -29,7 +29,7 @@ in {
default = { };
description = ''
Configuration written to
- ~/.config/direnv/config.toml.
+ $XDG_CONFIG_HOME/direnv/direnv.toml.
See
@@ -45,7 +45,7 @@ in {
default = "";
description = ''
Custom stdlib written to
- ~/.config/direnv/direnvrc.
+ $XDG_CONFIG_HOME/direnv/direnvrc.
'';
};
@@ -72,7 +72,20 @@ in {
description = ''
Whether to enable Fish integration. Note, enabling the direnv module
will always active its functionality for Fish since the direnv package
- automatically gets loaded in Fish.
+ automatically gets loaded in Fish. If this is not the case try adding
+
+ environment.pathsToLink = [ "/share/fish" ];
+
+ to the system configuration.
+ '';
+ };
+
+ enableNushellIntegration = mkOption {
+ default = true;
+ type = types.bool;
+ readOnly = true;
+ description = ''
+ Whether to enable Nushell integration.
'';
};
@@ -88,7 +101,7 @@ in {
config = mkIf cfg.enable {
home.packages = [ pkgs.direnv ];
- xdg.configFile."direnv/config.toml" = mkIf (cfg.config != { }) {
+ xdg.configFile."direnv/direnv.toml" = mkIf (cfg.config != { }) {
source = tomlFormat.generate "direnv-config" cfg.config;
};
@@ -108,5 +121,28 @@ in {
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
eval "$(${pkgs.direnv}/bin/direnv hook zsh)"
'';
+
+ programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration (
+ # Using mkAfter to make it more likely to appear after other
+ # manipulations of the prompt.
+ mkAfter ''
+ ${pkgs.direnv}/bin/direnv hook fish | source
+ '');
+
+ programs.nushell.extraConfig = mkIf cfg.enableNushellIntegration (
+ # Using mkAfter to make it more likely to appear after other
+ # manipulations of the prompt.
+ mkAfter ''
+ let-env config = ($env | default {} config).config
+ let-env config = ($env.config | default {} hooks)
+ let-env config = ($env.config | update hooks ($env.config.hooks | default [] pre_prompt))
+ let-env config = ($env.config | update hooks.pre_prompt ($env.config.hooks.pre_prompt | append {
+ code: "
+ let direnv = (${pkgs.direnv}/bin/direnv export json | from json)
+ let direnv = if ($direnv | length) == 1 { $direnv } else { {} }
+ $direnv | load-env
+ "
+ }))
+ '');
};
}
diff --git a/third_party/home-manager/modules/programs/discocss.nix b/third_party/home-manager/modules/programs/discocss.nix
new file mode 100644
index 0000000000..5a35f187f3
--- /dev/null
+++ b/third_party/home-manager/modules/programs/discocss.nix
@@ -0,0 +1,49 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let cfg = config.programs.discocss;
+in {
+ meta.maintainers = with maintainers; [ kranzes ];
+
+ options = {
+ programs.discocss = {
+ enable = mkEnableOption
+ "discocss, a tiny Discord CSS injector for Linux and MacOS";
+
+ package = mkPackageOption pkgs "discocss" { };
+
+ discordPackage = mkPackageOption pkgs "discord" { };
+
+ discordAlias = mkOption {
+ type = types.bool;
+ default = true;
+ description = "Whether to alias discocss to discord.";
+ };
+
+ css = mkOption {
+ type = types.str;
+ default = "";
+ description = "The custom CSS for discocss to use.";
+ };
+ };
+ };
+
+ config = mkIf cfg.enable {
+ assertions = [{
+ assertion = cfg.discordAlias
+ -> !(any (p: p.name == cfg.discordPackage.name) config.home.packages);
+ message =
+ "To use discocss with discordAlias you have to remove discord from home.packages, or set discordAlias to false.";
+ }];
+
+ home.packages = [
+ (cfg.package.override {
+ discordAlias = cfg.discordAlias;
+ discord = cfg.discordPackage;
+ })
+ ];
+
+ xdg.configFile."discocss/custom.css".text = cfg.css;
+ };
+}
diff --git a/third_party/home-manager/modules/programs/emacs.nix b/third_party/home-manager/modules/programs/emacs.nix
index 4e69c55b0e..a9a779497f 100644
--- a/third_party/home-manager/modules/programs/emacs.nix
+++ b/third_party/home-manager/modules/programs/emacs.nix
@@ -13,11 +13,15 @@ let
emacsWithPackages = emacsPackages.emacsWithPackages;
- createConfPackage = epkgs:
- epkgs.trivialBuild {
- pname = "default";
- src = pkgs.writeText "default.el" cfg.extraConfig;
- };
+ extraPackages = epkgs:
+ let
+ packages = cfg.extraPackages epkgs;
+ userConfig = epkgs.trivialBuild {
+ pname = "default";
+ src = pkgs.writeText "default.el" cfg.extraConfig;
+ packageRequires = packages;
+ };
+ in packages ++ optional (cfg.extraConfig != "") userConfig;
in {
meta.maintainers = [ maintainers.rycee ];
@@ -48,6 +52,10 @@ in {
Configuration to include in the Emacs default init file. See
for more.
+
+ Note, the inhibit-startup-message Emacs option
+ cannot be set here since Emacs disallows setting it from the default
+ initialization file.
'';
};
@@ -91,10 +99,6 @@ in {
config = mkIf cfg.enable {
home.packages = [ cfg.finalPackage ];
- programs.emacs = {
- finalPackage = emacsWithPackages cfg.extraPackages;
- extraPackages = epkgs:
- optional (cfg.extraConfig != "") (createConfPackage epkgs);
- };
+ programs.emacs.finalPackage = emacsWithPackages extraPackages;
};
}
diff --git a/third_party/home-manager/modules/programs/eww.nix b/third_party/home-manager/modules/programs/eww.nix
new file mode 100644
index 0000000000..9200986d4d
--- /dev/null
+++ b/third_party/home-manager/modules/programs/eww.nix
@@ -0,0 +1,39 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+
+ cfg = config.programs.eww;
+
+in {
+ meta.maintainers = [ hm.maintainers.mainrs ];
+
+ options.programs.eww = {
+ enable = mkEnableOption "eww";
+
+ package = mkOption {
+ type = types.package;
+ default = pkgs.eww;
+ defaultText = literalExpression "pkgs.eww";
+ example = literalExpression "pkgs.eww";
+ description = ''
+ The eww package to install.
+ '';
+ };
+
+ configDir = mkOption {
+ type = types.path;
+ example = literalExpression "./eww-config-dir";
+ description = ''
+ The directory that gets symlinked to
+ $XDG_CONFIG_HOME/eww.
+ '';
+ };
+ };
+
+ config = mkIf cfg.enable {
+ home.packages = [ cfg.package ];
+ xdg.configFile."eww".source = cfg.configDir;
+ };
+}
diff --git a/third_party/home-manager/modules/programs/exa.nix b/third_party/home-manager/modules/programs/exa.nix
index 771e4e65ce..a1b4a2712e 100644
--- a/third_party/home-manager/modules/programs/exa.nix
+++ b/third_party/home-manager/modules/programs/exa.nix
@@ -15,16 +15,19 @@ let
};
in {
- meta.maintainers = [ maintainers.kalhauge ];
+ meta.maintainers = [ hm.maintainers.kalhauge ];
options.programs.exa = {
enable =
mkEnableOption "exa, a modern replacement for ls";
+
enableAliases = mkEnableOption "recommended exa aliases";
+
+ package = mkPackageOption pkgs "exa" { };
};
config = mkIf cfg.enable {
- home.packages = [ pkgs.exa ];
+ home.packages = [ cfg.package ];
programs.bash.shellAliases = mkIf cfg.enableAliases aliases;
@@ -32,5 +35,6 @@ in {
programs.fish.shellAliases = mkIf cfg.enableAliases aliases;
+ programs.ion.shellAliases = mkIf cfg.enableAliases aliases;
};
}
diff --git a/third_party/home-manager/modules/programs/feh.nix b/third_party/home-manager/modules/programs/feh.nix
index e098342b53..15aac17518 100644
--- a/third_party/home-manager/modules/programs/feh.nix
+++ b/third_party/home-manager/modules/programs/feh.nix
@@ -27,6 +27,8 @@ in {
options.programs.feh = {
enable = mkEnableOption "feh - a fast and light image viewer";
+ package = mkPackageOption pkgs "feh" { };
+
buttons = mkOption {
default = { };
type = with types; bindingsOf (either str int);
@@ -69,7 +71,7 @@ in {
"To disable a keybinding, use `null` instead of an empty string.";
}];
- home.packages = [ pkgs.feh ];
+ home.packages = [ cfg.package ];
xdg.configFile."feh/buttons" =
mkIf (cfg.buttons != { }) { text = renderBindings cfg.buttons + "\n"; };
diff --git a/third_party/home-manager/modules/programs/firefox.nix b/third_party/home-manager/modules/programs/firefox.nix
index 292bbb91aa..a0620e28d4 100644
--- a/third_party/home-manager/modules/programs/firefox.nix
+++ b/third_party/home-manager/modules/programs/firefox.nix
@@ -8,6 +8,8 @@ let
cfg = config.programs.firefox;
+ jsonFormat = pkgs.formats.json { };
+
mozillaConfigPath =
if isDarwin then "Library/Application Support/Mozilla" else ".mozilla";
@@ -42,7 +44,7 @@ let
mkUserJs = prefs: extraPrefs: bookmarks:
let
- prefs' = lib.optionalAttrs ({ } != bookmarks) {
+ prefs' = lib.optionalAttrs ([ ] != bookmarks) {
"browser.bookmarks.file" = toString (firefoxBookmarksFile bookmarks);
"browser.places.importBookmarksHTML" = true;
} // prefs;
@@ -58,20 +60,40 @@ let
firefoxBookmarksFile = bookmarks:
let
- escapeXML = replaceStrings [ ''"'' "'" "<" ">" "&" ] [
- """
- "'"
- "<"
- ">"
- "&"
- ];
- mapper = _: entry: ''
-