mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
Merge PR #1560
This commit is contained in:
commit
10df7a7eee
19 changed files with 63 additions and 31 deletions
8
.github/PULL_REQUEST_TEMPLATE.md
vendored
8
.github/PULL_REQUEST_TEMPLATE.md
vendored
|
@ -15,7 +15,7 @@ pull-request.
|
||||||
|
|
||||||
Also make sure to read the guidelines found at
|
Also make sure to read the guidelines found at
|
||||||
|
|
||||||
https://github.com/rycee/home-manager/blob/master/doc/contributing.adoc#sec-guidelines
|
https://github.com/nix-community/home-manager/blob/master/doc/contributing.adoc#sec-guidelines
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ Also make sure to read the guidelines found at
|
||||||
|
|
||||||
- [ ] Code tested through `nix-shell --pure tests -A run.all`.
|
- [ ] Code tested through `nix-shell --pure tests -A run.all`.
|
||||||
|
|
||||||
- [ ] Test cases updated/added. See [example](https://github.com/rycee/home-manager/commit/f3fbb50b68df20da47f9b0def5607857fcc0d021#diff-b61a6d542f9036550ba9c401c80f00ef).
|
- [ ] Test cases updated/added. See [example](https://github.com/nix-community/home-manager/commit/f3fbb50b68df20da47f9b0def5607857fcc0d021#diff-b61a6d542f9036550ba9c401c80f00ef).
|
||||||
|
|
||||||
- [ ] Commit messages are formatted like
|
- [ ] Commit messages are formatted like
|
||||||
|
|
||||||
|
@ -35,10 +35,10 @@ Also make sure to read the guidelines found at
|
||||||
{long description}
|
{long description}
|
||||||
```
|
```
|
||||||
|
|
||||||
See [CONTRIBUTING](https://github.com/rycee/home-manager/blob/master/doc/contributing.adoc#sec-commit-style) for more information and [recent commit messages](https://github.com/rycee/home-manager/commits/master) for examples.
|
See [CONTRIBUTING](https://github.com/nix-community/home-manager/blob/master/doc/contributing.adoc#sec-commit-style) for more information and [recent commit messages](https://github.com/nix-community/home-manager/commits/master) for examples.
|
||||||
|
|
||||||
- If this PR adds a new module
|
- If this PR adds a new module
|
||||||
|
|
||||||
- [ ] Added myself as module maintainer. See [example](https://github.com/rycee/home-manager/blob/068ff76a10e95820f886ac46957edcff4e44621d/modules/programs/lesspipe.nix#L6).
|
- [ ] Added myself as module maintainer. See [example](https://github.com/nix-community/home-manager/blob/068ff76a10e95820f886ac46957edcff4e44621d/modules/programs/lesspipe.nix#L6).
|
||||||
|
|
||||||
- [ ] Added myself and the module files to `.github/CODEOWNERS`.
|
- [ ] Added myself and the module files to `.github/CODEOWNERS`.
|
||||||
|
|
28
.github/workflows/github_pages.yml
vendored
Normal file
28
.github/workflows/github_pages.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
name: GitHub Pages
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: cachix/install-nix-action@v10
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- uses: cachix/cachix-action@v6
|
||||||
|
with:
|
||||||
|
name: nix-community
|
||||||
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
|
- run: |
|
||||||
|
nix-build -A docs.html
|
||||||
|
cp -r result/share/doc/home-manager public
|
||||||
|
- name: Deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./public
|
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
@ -14,5 +14,9 @@ jobs:
|
||||||
- uses: cachix/install-nix-action@v10
|
- uses: cachix/install-nix-action@v10
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- uses: cachix/cachix-action@v6
|
||||||
|
with:
|
||||||
|
name: nix-community
|
||||||
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
- run: nix-shell . -A install
|
- run: nix-shell . -A install
|
||||||
- run: nix-shell --pure --max-jobs 4 tests -A run.all
|
- run: nix-shell --pure --max-jobs 4 tests -A run.all
|
||||||
|
|
|
@ -358,8 +358,8 @@ an issue.
|
||||||
[nixAllowedUsers]: https://nixos.org/nix/manual/#conf-allowed-users
|
[nixAllowedUsers]: https://nixos.org/nix/manual/#conf-allowed-users
|
||||||
[nixosAllowedUsers]: https://nixos.org/nixos/manual/options.html#opt-nix.allowedUsers
|
[nixosAllowedUsers]: https://nixos.org/nixos/manual/options.html#opt-nix.allowedUsers
|
||||||
[Z shell]: http://zsh.sourceforge.net/
|
[Z shell]: http://zsh.sourceforge.net/
|
||||||
[manual]: https://rycee.gitlab.io/home-manager/
|
[manual]: https://nix-community.github.io/home-manager/
|
||||||
[configuration options]: https://rycee.gitlab.io/home-manager/options.html
|
[configuration options]: https://nix-community.github.io/home-manager/options.html
|
||||||
[#home-manager]: https://webchat.freenode.net/?url=irc%3A%2F%2Firc.freenode.net%2Fhome-manager
|
[#home-manager]: https://webchat.freenode.net/?url=irc%3A%2F%2Firc.freenode.net%2Fhome-manager
|
||||||
[freenode]: https://freenode.net/
|
[freenode]: https://freenode.net/
|
||||||
[channel logs]: https://logs.nix.samueldr.com/home-manager/
|
[channel logs]: https://logs.nix.samueldr.com/home-manager/
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
[[ch-contributing]]
|
[[ch-contributing]]
|
||||||
== Contributing
|
== Contributing
|
||||||
|
|
||||||
:open-issues: https://github.com/rycee/home-manager/issues
|
:open-issues: https://github.com/nix-community/home-manager/issues
|
||||||
:new-issue: https://github.com/rycee/home-manager/issues/new
|
:new-issue: https://github.com/nix-community/home-manager/issues/new
|
||||||
:fork-a-repo: https://help.github.com/articles/fork-a-repo/
|
:fork-a-repo: https://help.github.com/articles/fork-a-repo/
|
||||||
:create-a-pull-request: https://help.github.com/articles/creating-a-pull-request/
|
:create-a-pull-request: https://help.github.com/articles/creating-a-pull-request/
|
||||||
:seven-rules: https://chris.beams.io/posts/git-commit/#seven-rules
|
:seven-rules: https://chris.beams.io/posts/git-commit/#seven-rules
|
||||||
:news-nix: https://github.com/rycee/home-manager/blob/master/modules/misc/news.nix
|
:news-nix: https://github.com/nix-community/home-manager/blob/master/modules/misc/news.nix
|
||||||
:nixfmt: https://github.com/serokell/nixfmt/
|
:nixfmt: https://github.com/serokell/nixfmt/
|
||||||
:example-commit-message: https://github.com/rycee/home-manager/commit/69f8e47e9e74c8d3d060ca22e18246b7f7d988ef
|
:example-commit-message: https://github.com/nix-community/home-manager/commit/69f8e47e9e74c8d3d060ca22e18246b7f7d988ef
|
||||||
|
|
||||||
Contributions to Home Manager are very welcome. To make the process as smooth as possible for both you and the Home Manager maintainers we provide some guidelines that we ask you to follow. See <<sec-contrib-getting-started>> for information on how to set up a suitable development environment and <<sec-guidelines>> for the actual guidelines.
|
Contributions to Home Manager are very welcome. To make the process as smooth as possible for both you and the Home Manager maintainers we provide some guidelines that we ask you to follow. See <<sec-contrib-getting-started>> for information on how to set up a suitable development environment and <<sec-guidelines>> for the actual guidelines.
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ let
|
||||||
} ++ [ scrubbedPkgsModule ];
|
} ++ [ scrubbedPkgsModule ];
|
||||||
moduleRootPaths = [ ./.. ];
|
moduleRootPaths = [ ./.. ];
|
||||||
mkModuleUrl = path:
|
mkModuleUrl = path:
|
||||||
"https://github.com/rycee/home-manager/blob/master/${path}#blob-path";
|
"https://github.com/nix-community/home-manager/blob/master/${path}#blob-path";
|
||||||
channelName = "home-manager";
|
channelName = "home-manager";
|
||||||
docBook.id = "home-manager-options";
|
docBook.id = "home-manager-options";
|
||||||
};
|
};
|
||||||
|
|
|
@ -62,14 +62,14 @@
|
||||||
running
|
running
|
||||||
</para>
|
</para>
|
||||||
<screen>
|
<screen>
|
||||||
<prompt>$</prompt> <userinput>nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager</userinput>
|
<prompt>$</prompt> <userinput>nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager</userinput>
|
||||||
<prompt>$</prompt> <userinput>nix-channel --update</userinput>
|
<prompt>$</prompt> <userinput>nix-channel --update</userinput>
|
||||||
</screen>
|
</screen>
|
||||||
<para>
|
<para>
|
||||||
if you are following Nixpkgs master or an unstable channel and
|
if you are following Nixpkgs master or an unstable channel and
|
||||||
</para>
|
</para>
|
||||||
<screen>
|
<screen>
|
||||||
<prompt>$</prompt> <userinput>nix-channel --add https://github.com/rycee/home-manager/archive/release-20.03.tar.gz home-manager</userinput>
|
<prompt>$</prompt> <userinput>nix-channel --add https://github.com/nix-community/home-manager/archive/release-20.03.tar.gz home-manager</userinput>
|
||||||
<prompt>$</prompt> <userinput>nix-channel --update</userinput>
|
<prompt>$</prompt> <userinput>nix-channel --update</userinput>
|
||||||
</screen>
|
</screen>
|
||||||
<para>
|
<para>
|
||||||
|
@ -150,7 +150,7 @@ $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen language="console">
|
<screen language="console">
|
||||||
<prompt>#</prompt> <userinput>nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager</userinput>
|
<prompt>#</prompt> <userinput>nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager</userinput>
|
||||||
<prompt>#</prompt> <userinput>nix-channel --update</userinput>
|
<prompt>#</prompt> <userinput>nix-channel --update</userinput>
|
||||||
</screen>
|
</screen>
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen language="console">
|
<screen language="console">
|
||||||
<prompt>#</prompt> <userinput>nix-channel --add https://github.com/rycee/home-manager/archive/release-20.03.tar.gz home-manager</userinput>
|
<prompt>#</prompt> <userinput>nix-channel --add https://github.com/nix-community/home-manager/archive/release-20.03.tar.gz home-manager</userinput>
|
||||||
<prompt>#</prompt> <userinput>nix-channel --update</userinput>
|
<prompt>#</prompt> <userinput>nix-channel --update</userinput>
|
||||||
</screen>
|
</screen>
|
||||||
|
|
||||||
|
@ -249,7 +249,7 @@ home-manager.useGlobalPkgs = true;
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen language="console">
|
<screen language="console">
|
||||||
<prompt>#</prompt> <userinput>nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager</userinput>
|
<prompt>#</prompt> <userinput>nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager</userinput>
|
||||||
<prompt>#</prompt> <userinput>nix-channel --update</userinput>
|
<prompt>#</prompt> <userinput>nix-channel --update</userinput>
|
||||||
</screen>
|
</screen>
|
||||||
|
|
||||||
|
@ -258,7 +258,7 @@ home-manager.useGlobalPkgs = true;
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen language="console">
|
<screen language="console">
|
||||||
<prompt>#</prompt> <userinput>nix-channel --add https://github.com/rycee/home-manager/archive/release-20.03.tar.gz home-manager</userinput>
|
<prompt>#</prompt> <userinput>nix-channel --add https://github.com/nix-community/home-manager/archive/release-20.03.tar.gz home-manager</userinput>
|
||||||
<prompt>#</prompt> <userinput>nix-channel --update</userinput>
|
<prompt>#</prompt> <userinput>nix-channel --update</userinput>
|
||||||
</screen>
|
</screen>
|
||||||
|
|
||||||
|
|
|
@ -512,7 +512,7 @@
|
||||||
<para>
|
<para>
|
||||||
Please report any bugs on the
|
Please report any bugs on the
|
||||||
<link
|
<link
|
||||||
xlink:href="https://github.com/rycee/home-manager/issues">project
|
xlink:href="https://github.com/nix-community/home-manager/issues">project
|
||||||
issue tracker</link>.
|
issue tracker</link>.
|
||||||
</para>
|
</para>
|
||||||
</refsection>
|
</refsection>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
are hosted courtesy of <link xlink:href="https://github.com/samueldr/">samueldr</link>.
|
are hosted courtesy of <link xlink:href="https://github.com/samueldr/">samueldr</link>.
|
||||||
If your problem is caused by a bug in Home Manager then it should
|
If your problem is caused by a bug in Home Manager then it should
|
||||||
be reported on the
|
be reported on the
|
||||||
<link xlink:href="https://github.com/rycee/home-manager/issues">Home Manager issue tracker</link>.
|
<link xlink:href="https://github.com/nix-community/home-manager/issues">Home Manager issue tracker</link>.
|
||||||
</para>
|
</para>
|
||||||
<note>
|
<note>
|
||||||
<para>
|
<para>
|
||||||
|
|
|
@ -71,7 +71,7 @@ runCommand "home-manager-install" {
|
||||||
|
|
||||||
Uh oh, the installation failed! Please create an issue at
|
Uh oh, the installation failed! Please create an issue at
|
||||||
|
|
||||||
https://github.com/rycee/home-manager/issues
|
https://github.com/nix-community/home-manager/issues
|
||||||
|
|
||||||
if the error seems to be the fault of Home Manager.
|
if the error seems to be the fault of Home Manager.
|
||||||
EOF
|
EOF
|
||||||
|
|
|
@ -508,7 +508,7 @@ in
|
||||||
configuration you can add
|
configuration you can add
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
"''${builtins.fetchTarball https://github.com/rycee/home-manager/archive/master.tar.gz}/nixos"
|
"''${builtins.fetchTarball https://github.com/nix-community/home-manager/archive/master.tar.gz}/nixos"
|
||||||
];
|
];
|
||||||
|
|
||||||
to your 'configuration.nix' file. This will introduce a new
|
to your 'configuration.nix' file. This will introduce a new
|
||||||
|
@ -1363,7 +1363,7 @@ in
|
||||||
|
|
||||||
To learn more, see the installation section of the manual
|
To learn more, see the installation section of the manual
|
||||||
|
|
||||||
https://rycee.gitlab.io/home-manager/#sec-install-nixos-module
|
https://nix-community.github.io/home-manager/#sec-install-nixos-module
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -465,7 +465,7 @@ in
|
||||||
'') cfg.plugins)}
|
'') cfg.plugins)}
|
||||||
|
|
||||||
# History options should be set in .zshrc and after oh-my-zsh sourcing.
|
# History options should be set in .zshrc and after oh-my-zsh sourcing.
|
||||||
# See https://github.com/rycee/home-manager/issues/177.
|
# See https://github.com/nix-community/home-manager/issues/177.
|
||||||
HISTSIZE="${toString cfg.history.size}"
|
HISTSIZE="${toString cfg.history.size}"
|
||||||
SAVEHIST="${toString cfg.history.save}"
|
SAVEHIST="${toString cfg.history.save}"
|
||||||
${if versionAtLeast config.home.stateVersion "20.03"
|
${if versionAtLeast config.home.stateVersion "20.03"
|
||||||
|
@ -493,7 +493,7 @@ in
|
||||||
|
|
||||||
(mkIf cfg.oh-my-zsh.enable {
|
(mkIf cfg.oh-my-zsh.enable {
|
||||||
# Make sure we create a cache directory since some plugins expect it to exist
|
# Make sure we create a cache directory since some plugins expect it to exist
|
||||||
# See: https://github.com/rycee/home-manager/issues/761
|
# See: https://github.com/nix-community/home-manager/issues/761
|
||||||
home.file."${config.xdg.cacheHome}/oh-my-zsh/.keep".text = "";
|
home.file."${config.xdg.cacheHome}/oh-my-zsh/.keep".text = "";
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -250,7 +250,7 @@ in {
|
||||||
warnings = [
|
warnings = [
|
||||||
("'xsession.windowManager.i3.config.startup.*.workspace' is deprecated, "
|
("'xsession.windowManager.i3.config.startup.*.workspace' is deprecated, "
|
||||||
+ "use 'xsession.windowManager.i3.config.assigns' instead."
|
+ "use 'xsession.windowManager.i3.config.assigns' instead."
|
||||||
+ "See https://github.com/rycee/home-manager/issues/265.")
|
+ "See https://github.com/nix-community/home-manager/issues/265.")
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -42,7 +42,7 @@ let
|
||||||
description = ''
|
description = ''
|
||||||
Launch application on a particular workspace. DEPRECATED:
|
Launch application on a particular workspace. DEPRECATED:
|
||||||
Use <varname><link linkend="opt-xsession.windowManager.i3.config.assigns">xsession.windowManager.i3.config.assigns</link></varname>
|
Use <varname><link linkend="opt-xsession.windowManager.i3.config.assigns">xsession.windowManager.i3.config.assigns</link></varname>
|
||||||
instead. See <link xlink:href="https://github.com/rycee/home-manager/issues/265"/>.
|
instead. See <link xlink:href="https://github.com/nix-community/home-manager/issues/265"/>.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
# Disabled for now due to conflicting behavior with nix-darwin. See
|
# Disabled for now due to conflicting behavior with nix-darwin. See
|
||||||
# https://github.com/rycee/home-manager/issues/1341#issuecomment-687286866
|
# https://github.com/nix-community/home-manager/issues/1341#issuecomment-687286866
|
||||||
config = lib.mkIf (false && pkgs.stdenv.hostPlatform.isDarwin) {
|
config = lib.mkIf (false && pkgs.stdenv.hostPlatform.isDarwin) {
|
||||||
# Install MacOS applications to the user environment.
|
# Install MacOS applications to the user environment.
|
||||||
home.file."Applications/Home Manager Apps".source = let
|
home.file."Applications/Home Manager Apps".source = let
|
||||||
|
|
|
@ -39,7 +39,7 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# We need to source both nix.sh and hm-session-vars.sh as noted in
|
# We need to source both nix.sh and hm-session-vars.sh as noted in
|
||||||
# https://github.com/rycee/home-manager/pull/797#issuecomment-544783247
|
# https://github.com/nix-community/home-manager/pull/797#issuecomment-544783247
|
||||||
programs.bash.initExtra = ''
|
programs.bash.initExtra = ''
|
||||||
. "${pkgs.nix}/etc/profile.d/nix.sh"
|
. "${pkgs.nix}/etc/profile.d/nix.sh"
|
||||||
. "${profileDirectory}/etc/profile.d/hm-session-vars.sh"
|
. "${profileDirectory}/etc/profile.d/hm-session-vars.sh"
|
||||||
|
|
|
@ -68,7 +68,7 @@ in {
|
||||||
|
|
||||||
nmt.description = ''
|
nmt.description = ''
|
||||||
Test for the broken configuration
|
Test for the broken configuration
|
||||||
https://github.com/rycee/home-manager/pull/1329#issuecomment-653253069
|
https://github.com/nix-community/home-manager/pull/1329#issuecomment-653253069
|
||||||
'';
|
'';
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertPathNotExists home-files/.config/waybar/style.css
|
assertPathNotExists home-files/.config/waybar/style.css
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
./systemd-with-graphical-session-target.nix;
|
./systemd-with-graphical-session-target.nix;
|
||||||
waybar-styling = ./styling.nix;
|
waybar-styling = ./styling.nix;
|
||||||
waybar-settings-complex = ./settings-complex.nix;
|
waybar-settings-complex = ./settings-complex.nix;
|
||||||
# Broken configuration from https://github.com/rycee/home-manager/pull/1329#issuecomment-653253069
|
# Broken configuration from https://github.com/nix-community/home-manager/pull/1329#issuecomment-653253069
|
||||||
waybar-broken-settings = ./broken-settings.nix;
|
waybar-broken-settings = ./broken-settings.nix;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
# Disabled for now due to conflicting behavior with nix-darwin. See
|
# Disabled for now due to conflicting behavior with nix-darwin. See
|
||||||
# https://github.com/rycee/home-manager/issues/1341#issuecomment-687286866
|
# https://github.com/nix-community/home-manager/issues/1341#issuecomment-687286866
|
||||||
#targets-darwin = ./darwin.nix;
|
#targets-darwin = ./darwin.nix;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue