1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-09-21 13:57:31 +02:00
Commit graph

1285 commits

Author SHA1 Message Date
Ryan Horiguchi
06ca1c3c6a
firefox: add default containers 2024-04-10 21:27:16 +02:00
Ujp8LfXBJ6wCPR
87bf943237
firefox: implement native messaging hosts
Fixes #1586
Fixes #1487

Co-authored-by: Carl Hjerpe <git@hjerpe.xyz>
Co-authored-by: Robert Helgesson <robert@rycee.net>
2024-04-10 21:27:16 +02:00
Robert Helgesson
b64804f20a
treewide: deprecate VERBOSE_ECHO
The shell function `verboseEcho` can be used in its stead.
2024-04-10 21:27:16 +02:00
Robert Helgesson
a04f37fab0
treewide: deprecate DRY_RUN_CMD and DRY_RUN_NULL
As a replacement, this adds the `run` helper function.
2024-04-10 21:27:15 +02:00
Nikita Pedorich
78ece60890
tealdeer: add cache update activation script
Calls 'tldr --update' on home-manager switch
2024-04-10 21:27:15 +02:00
Jan Tebernum
e413b8c3b5
zoxide: fix nushell 0.89 deprecation
Since nushell 0.89, automatically spreading lists is deprecated. This
commit introduces a string replace for the zoxide init script to replace
the deprecated code.
See: https://github.com/ajeetdsouza/zoxide/issues/662

Fixes: #4916
2024-04-10 21:27:15 +02:00
Anton Tetov
2306aabbe7
bemenu: allow floats in settings
For example, the CLI option --width-factor controls the width of the
launcher and is set to a value between 0-1.
2024-04-10 21:27:15 +02:00
Lucas Wagler
881a15fafa
k9s: v0.29/v0.30 compatibility
- Add `skins` option for definition of multiple skin files
- Change file extension to ".yaml"
- Deprecate `skin` option (points to `skins.skin`)
2024-04-10 21:27:14 +02:00
Nikita Pedorich
d17141524d
mise: add module
This adds the support for the mise program, the successor of rtx. This
commit therefore also removes the rtx module.
2024-04-10 21:27:13 +02:00
NovaViper
1061543033
mcfly: add mcfly-fzf integration 2024-04-10 21:27:13 +02:00
Aleksana
e31b2f32cd
gh: add github gist to default credential hosts 2024-04-10 21:27:12 +02:00
Benedikt Ritter
2fa2cf99e3
gradle: Don't enable programs.java
The gradle package from nixpkgs will install a default Java version and
pass it to the gradle executable without polluting the global env.
Users can customize this by overriding the gradle package like so:

  programs.gradle = {
    package = (pkgs.gradle.override {
      java = pkgs.jdk21;
    });
  }
2024-04-10 21:27:12 +02:00
Benedikt Ritter
5a31b0b80f
gradle: re-add britter as maintainer
Follow up to 0360475ee0.
2024-04-10 21:27:12 +02:00
Damien Cassou
c08841a279
firefox: restore compatibility for extraPolicies
This commit makes it possible to specify Firefox' extraPolicies
through:

    programs.firefox.package = pkgs.firefox.override {
      extraPolicies = {... }
    }

This was possible in the past but was broken by:

  3feeb77155
  firefox: add support for specifying policies (#4626)
2024-04-10 21:27:11 +02:00
Robert Helgesson
286546ec2f
Remove some formatting exceptions
This formats a few more file using nixfmt.
2024-04-10 21:27:09 +02:00
Harsh Shandilya
28215db303
gh: only run migration when required 2024-04-10 21:27:09 +02:00
Silvio Ankermann
5563347db6
thunderbird: configure signature if set (#4852)
The identity's signature  will be configured according to signature.text
and signature.showSignature. Signature commands are not supported by
Thunderbird.
2024-04-10 21:27:08 +02:00
Chance Harrison
720d97a404
xplr: support multiple plugins in cfg.plugins
Fixes ##4520

Co-authored-by: Arijit Basu <11632726+sayanarijit@users.noreply.github.com>
2024-04-10 21:27:07 +02:00
XYenon
21e8b7a7df
yazi: fix nushell integration 2024-04-10 21:27:07 +02:00
MayNiklas
43b4cd0637
zsh: fix zprof typo 2024-04-10 21:27:06 +02:00
~noodlez1232
e8dfd7c0d0
i3blocks: added configuration module 2024-04-10 21:27:06 +02:00
Omer Naveed
ce3ec36b95
bemenu: add module 2024-04-10 21:27:05 +02:00
x10an14
18960fb8af
zoxide: fix use with recent Nushell
1. Zoxide (v0.9.2) leverages `def-env` in their `zoxide init nushell`
   output.

2. Since Nushell v0.88, they have removed (previously deprecated)
   `def-env`:
      https://www.nushell.sh/blog/2023-12-12-nushell_0_88_0.html#breaking-changes-toc
2024-04-10 21:27:05 +02:00
MayNiklas
b1ed121009
zsh: add support for zproof
Using zproof allows benchmarking the shell initialization. It must be
called as the first & last line of `~/.zshrc`.

PR #4745
2024-04-10 21:27:05 +02:00
r-vdp
0402cca9d8
alacritty: make compatible with alacritty 0.13
The config file is in TOML from 0.13 onwards.
2024-04-10 21:27:04 +02:00
NAHO
b2af81413f
gh: idempotently consider existing symlinks
> -e file
>        True if file exists.
> -f file
>        True if file exists and is a regular file.
> [...]
> -L file
>        True if file exists and is a symbolic link.
>
> (Source: bash(1))
2024-04-10 21:27:04 +02:00
Fugi
c06612e8db
sftpman: add module 2024-04-10 21:27:04 +02:00
not pua
a27350b595
zsh.prezto: fix path in example for 'pmoduleDirs'
Minor fix in documentation. The example in
`programs.zsh.prezto.pmoduleDirs` is not compatible with shell
environment variables like `$HOME`, must be replaced with nix
compatible variables eg: `home.homeDirectory`.

Fixes #4452
2024-04-10 21:27:04 +02:00
Harsh Shandilya
d5f201ca6c
gh: test for existence of hosts file
Having the module enabled but never using gh will result in the config file
existing but no hosts.yml. In that scenario we won't have anything to
migrate, so only test for hosts.yml.
2024-04-10 21:27:03 +02:00
Harsh Shandilya
6ea6f0fbbb
gh: include version in settings
Also add an activation script block for allowing gh version 2.40.0 and
later to perform account migration.
2024-04-10 21:27:03 +02:00
Callum Iddon
5101f01406
oh-my-posh: enable nushell integration 2024-04-10 21:27:02 +02:00
sg-qwt
20552eb59b
firefox: update docs example for nativeMessagingHosts
closes https://github.com/nix-community/home-manager/issues/4630

old way of cfg.enableTridactylNative is deprecated upstream
2024-04-10 21:27:01 +02:00
lgehr
2e895634fd
aerc-accounts: support for maildirpp (#4653)
* aerc-accounts: support for maildirpp

aerc-accounts now is aware of the mbsync.subFolders setting

* aerc: Adds test for maildirpp format

---------

Co-authored-by: lgehr <lgehr@mailbox.org>
2024-04-10 21:27:01 +02:00
r-vdp
18ddbc7f58
nix-index: use interactive shell init for Fish 2024-04-10 21:27:01 +02:00
r-vdp
8b48ff169c
zoxide: use interactive shell init for Fish 2024-04-10 21:27:00 +02:00
Stel Abrego
fbba065912
fish: escape abbr expansions once again
Commit 8cedd6 `fish: support flexible abbreviations` removed shell
escaping for fish shell abbr values. This was a dangerous breaking
change offered little value and made writing abbr expansions more
difficult. This commit restores automatic shell escaping of fish abbr
values.
2024-04-10 21:27:00 +02:00
Joaquín Triñanes
7326ba7a92
direnv: Fix nushell integration ENV_CONVERSIONS 2024-04-10 21:27:00 +02:00
Joaquín Triñanes
a05cca1dcc
direnv: Make lines shorter 2024-04-10 21:27:00 +02:00
Joaquín Triñanes
998e70eb82
direnv: Use ${getExe pkg} instead of ${pkg}/bin/pkg 2024-04-10 21:26:59 +02:00
Joaquín Triñanes
63d6e2de24
direnv: Apply nushell env transformations
In nushell, the ENV_CONVERSIONS environment variable is used to
transform the defined variables from a string to a nushell value (PATH
to a list being one of the most common uses). This commit applies
user-defined conversions to direnv-loaded variables.

This fixes binary autocompletion not being triggered for newly added
paths and makes direnv work consistently with nushell
2024-04-10 21:26:59 +02:00
Robert Helgesson
8fbb6b56d2
gradle: temporarily comment out the maintainer entry
Turns out it was an undefined entry.
2024-04-10 21:26:59 +02:00
Benedikt Ritter
52cdf5acc5
gradle: add module
Introduces a new program called gradle for managing files stored in
the home directory by the [Gradle Build Tool](https://gradle.org).
Gradle uses the $HOME/.gradle folder for all it's configuration.

Features of the new program module are:

- Automatically setting programs.java.enable = true to make a Java
  installation available for running Gradle.
- Specifying an alternate Gradle home directory
- Setting of abitrary values for gradle.properties stored inside the
  Gradle home directory.
- Defining init scripts that will be linked into the init.d inside
  the Gradle home directory.

Co-authored-by: Olli Helenius <liff@iki.fi>
Co-authored-by: Robert Helgesson <robert@rycee.net>
2024-04-10 21:26:58 +02:00
Pierce Bartine
a842f812ef
sapling: add module
Adds a program module for [Sapling](https://sapling-scm.com/).

Since Sapling itself is very similar in nature to Mercurial,
`modules/programs/mercurial.nix` was copied to make this module with
the ignore pieces removed (Sapling respects gitignore).
2024-04-10 21:26:58 +02:00
Pierre Baillet
e7ce15f75a
fish: Fix babelization of hm-session-vars
Wrap babelfish version of hm-session-vars.sh into a function to avoid a
syntax error due to the use of `return` in the script.
2024-04-10 21:26:55 +02:00
Ryan
beb1e57d60
yazi: pass additional args to ya alias
This allows commands like `ya /etc/nixos` and `ya --help` to be used.
2024-04-10 21:26:55 +02:00
Jan Schmitt
6a3e98c2f8
ssh: add addKeysToAgent option 2024-04-10 21:26:54 +02:00
Moritz Rumpf
2025495826
awscli: only write config files when not empty 2024-04-10 21:26:54 +02:00
Brian Leung
8b3fb94f60
msmtp: add configurable package 2024-04-10 21:26:53 +02:00
0x5a4
e2caac1930
firefox: fix folders not showing in toolbar
Fixes #4568
2024-04-10 21:26:46 +02:00
Tom Cammann
a9d96c3f51
broot: Add nushell integration (#4714)
Add additional config flag `enableNushellIntegration` in broot.nix to
setup broot/br for nushell.
2024-04-10 21:26:46 +02:00
XYenon
b66ef037b3
yazi: update shell integrations and docs 2024-04-10 21:26:43 +02:00
OTABI Tomoya
f0c82a5a5c
fish: support flexible abbreviations
https://github.com/fish-shell/fish-shell/releases/tag/3.6.0
2024-04-10 21:26:43 +02:00
Leah Amelia Chen
df3f8d4e8b
bat: support boolean flags in config
Previously, users cannot enable boolean flags like `--show-all` in bat's
config since all options were expected to be either a string, or a list
of strings. With this commit boolean flags are simply appended to the
end of the config if they are set to `true`, and discarded otherwise.

For example, the config

    {
      theme = "TwoDark";
      show-all = true;
      lessopen = false;
    }

would produce a config file that looks like

    --theme='TwoDark'
    --show-all

Fixes #4657
2024-04-10 21:26:42 +02:00
Gaetan Lepage
d94b28d6ff
ruff: add module
ruff is Python linter and code formatter, written in Rust.
See <https://docs.astral.sh/ruff/>.
2024-04-10 21:26:42 +02:00
Gutyina Gergő
2b4ba04853
zsh: allow enabling syntax highlighters (#4360) 2024-04-10 21:26:41 +02:00
Damien Cassou
3b73b79da6
firefox: add support for specifying policies (#4626) 2024-04-10 21:26:37 +02:00
Nicola Squartini
1d3f439cd8
openstackclient: add module (#4530)
Co-authored-by: Sumner Evans <me@sumnerevans.com>
2024-04-10 21:26:37 +02:00
Chuang Zhu
68f5ac390c
firefox: support setting a separate default search engine in private browsing (#4114)
* firefox: support setting a separate default search engine in private browing

Ref: https://searchfox.org/mozilla-central/rev/05d1afda588e54be73e31ef4e022dde91f1ed97a/toolkit/components/search/SearchSettings.sys.mjs#548

* Update modules/programs/firefox.nix

---------

Co-authored-by: Naïm Favier <n@monade.li>
2024-04-10 21:26:36 +02:00
Robert Helgesson
eea560a14a
firefox: minor documentation fix 2024-04-10 21:26:36 +02:00
Damien Cassou
1319f21124
firefox: add finalPackage read-only option
When a user references config.programs.firefox.package in her/his
configuration, s·he will get a different path than what is in the
$PATH variable. To make it possible to get the same path, this commit
introduces the finalPackage read-only option.
2024-04-10 21:26:36 +02:00
Paul Meyer
c5f0d02e3c
k9s: add aliases, plugins, views
Adding the remaining config files of k9s that weren't covered yet.

PR #4627
2024-04-10 21:26:35 +02:00
Damien Cassou
5521cbc10f
firefox: add container support 2024-04-10 21:26:35 +02:00
Damien Cassou
f55c68baf9
firefox: refactor duplicate profile ID detection 2024-04-10 21:26:34 +02:00
9p4
117a4b9cfa
swayr: add module (#4322)
a window switcher for sway
2024-04-10 21:26:34 +02:00
Sebastian Zivota
b9b9b5aab0
thefuck: add fish integration (#4535)
Co-authored-by: Sumner Evans <me@sumnerevans.com>
2024-04-10 21:26:33 +02:00
Willi Carlsen
972916c973
granted: add module
Signed-off-by: Willi Carlsen <carlsenwilli@gmail.com>
2024-04-10 21:26:33 +02:00
Philipp Kühn
0d9be30cfb
borgmatic: preparing upcoming borgmatic change
This commit changes the config format of repositories to the
soon-be-expected `{ "path": "repository-path", }`. The Home Manager
configuration allows a simple string (which will get translated), the
new format by directly using the path attribute, and the one with the
optional label attribute. More information about the background can be
found here https://torsion.org/borgmatic/docs/reference/configuration/
2024-04-10 21:26:33 +02:00
Li Yang
990fc60aaf
k9s: add hotkey option (#4617)
* k9s: add hotkey option

This PR adds an option to customise k9s hotkeys.
The keyword `hotKey` must be in camel case on the user config.

* Update modules/programs/k9s.nix

Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>

* fix formatting

---------

Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2024-04-10 21:26:33 +02:00
Nova Leary
5b0be3512d
zsh: made ZDOTDIR export to the shell (#4619) 2024-04-10 21:26:32 +02:00
NAHO
87c2ff0a36
wezterm: remove automatic config reload call
Closes: #4426
2024-04-10 21:26:32 +02:00
Knut Magnus Aasrud
1947c9901c
aerc: fix config paths on darwin
When xdg.enable is set, aerc uses the $XDG_CONFIG_HOME variable instead
of the default $HOME/Library/Preferences. home-manager needs to check
this to make sure aerc can find the proper file in both cases.
2024-04-10 21:26:32 +02:00
Martin Schwaighofer
3b72c311ac
helix: add extraPackages option
Closes #2923 based on how arnarg solves this in his personal config.
With review suggestions from musjj.

Co-authored-by: Arnar Gauti Ingason <arnarg@fastmail.com>
Co-authored-by: musjj <72612857+musjj@users.noreply.github.com>
2024-04-10 21:26:31 +02:00
Luna Simons
6da70f2252
cava: add module 2024-04-10 21:26:31 +02:00
Benjamin Lee
f833d2a354
aerc: fix config paths on darwin 2024-04-10 21:26:30 +02:00
Haras
76e58a3a92
exa: add aliases to nushell 2024-04-10 21:26:30 +02:00
sisyphushappy
872242a275
qutebrowser: add greasemonkey userscript option
Co-authored-by: Ivar Scholten <ivar.scholten@protonmail.com>
2024-04-10 21:26:29 +02:00
r-vdp
f1ca52127d
fzf: add mkOrder for fish like we do for other shells 2024-04-10 21:26:28 +02:00
r-vdp
c1f8ffca76
fzf: fix fish integration
Since fzf 0.43.0, the fzf_key_bindings function is only defined when
fish is running interactively, see [1].
This caused errors when entering non-interactive fish shells since we
called fzf_key_bindings during startup.

[1]: 7e89458a3b
2024-04-10 21:26:28 +02:00
Gabe Dunn
2ca2163ece
thefuck: add instant mode option
Also do a slight code cleanup.
2024-04-10 21:26:28 +02:00
Damien Cassou
27a92b54f3
borgmatic: improve support for version 1.8.0
The configuration file format of borgmatic has changed in version
1.8.0:
https://projects.torsion.org/borgmatic-collective/borgmatic/src/branch/main/NEWS

This commit makes Home Manager generate borgmatic's configuration file
using the new format.

Even though the NEWS file indicates that old configuration files are
compatible, this is not 100% the case: empty sections work fine in old
borgmatic but stop working in new ones. I've reported the bug upstream
by email as I couldn't create an account on the forge.
2024-04-10 21:26:26 +02:00
Kiran Ostrolenk
5d13d826a0
zsh: generalize zsh-history-substring-search
Specifically, allow variable expansion for the key codes by switching
from single to double quotes.

This also adds a helpful suggestion to descriptions. Taken from the
project's README, see

  4abed97b6e/README.md (L71-L74))
2024-04-10 21:26:25 +02:00
a-kenji
5f34ca8c64
fish: query pname and version for completions
Query the `pname` and `version` attributes for completion generation,
if the `name` attribute is not available.

Fixes #2813
2024-04-10 21:26:24 +02:00
Bernardo Meurer
8a719ddd3c
bat: allow setting themes/syntaxes without IFD
The way the `bat` module is currently written makes it essentially
impossible to use themes and syntaxes without IFD, since you must
provide the contents as string, instead of just giving a path to be
linked.

With this change, setting themes/syntaxes by-string will start issuing
warnings, and a new attribute model is added, lightly inspired by how
`programs.zsh.plugins` avoided this issue.
2024-04-10 21:26:24 +02:00
Simone Ragusa
149a52a414
firefox: set ADD_DATE and LAST_MODIFIED of bookmarks to 1
For some reason, Firefox completely discards the ADD_DATE and
LAST_MODIFIED attributes if they are set to 0. This has been
confirmed by exporting a sample set of bookmarks generated by
Nix using home-manager and comparing it to the same sample of
bookmarks set manually and then exported.

Missing these attributes can cause problems for extensions and
other tools that try to read bookmarks. A known example is the
Tridactyl extension.
2024-04-10 21:26:23 +02:00
ilaumjd
823f7a6439
thefuck: add module 2024-04-10 21:26:23 +02:00
ilaumjd
8a209007e2
zsh-abbr: add module 2024-04-10 21:26:23 +02:00
ilaumjd
0e14af6788
scmpuff: enable or disable aliases 2024-04-10 21:26:22 +02:00
Olmo Kramer
9af726faca
khard: add module 2024-04-10 21:26:22 +02:00
Avimitin
00a599717b
wpaperd: add wpaperd configuration
Signed-off-by: Avimitin <dev@avimit.in>
2024-04-10 21:26:21 +02:00
Anthony Roussel
84ccadec72
awscli: add module 2024-04-10 21:26:21 +02:00
Ramses
b07382acc2
direnv: add package options 2024-04-10 21:26:21 +02:00
jakob
cfd725853b
keychain: fix edge-cases in nushell integration
- If the parse does not match/returns an empty list, transpose does
  not transform it into a record and thus load-env fails.

- The parsing assumes keychain to emit bash-style completions, so set
  SHELL=bash to ensure keychain output is in the expected format.

PR #4459
2024-04-10 21:26:20 +02:00
KFears
1c92ee2a49
neovim: expose finalPackage
Make the `finalPackage` option public, but still read-only. The final
package option is quite useful for users.

For example, to integrate `lazy.nvim` with Nix there are three things
that must be done:

1. `lazy.nvim` resets packpath, which should be managed by Nix; it has
   to be turned off with `performance.reset_packpath = false` option in
   `lazy.nvim`

2. Same thing applies to rtp, the relevant option is
   `performance.rtp.reset = false`

3. `dev.path` must be specified as the folder that contains the plugins.
   This folder is the path to Nix store path with Neovim plugins, and
   the plugins that are managed by Nix must be marked as `dev = true`

The third condition can not be fulfilled without this PR, as the final
package that Home Manager produces is not exposed, therefore it is
impossible to extract the Nix store path. This PR makes it more
accessible via

    ${
      pkgs.vimUtils.packDir config.programs.neovim.finalPackage.passthru.packpathDirs
    }/pack/myNeovimPackages/start
2024-04-10 21:26:20 +02:00
shimun
72202495ae
bacon: add module
Bacon is a background rust code checker. See
<https://dystroy.org/bacon/>.
2024-04-10 21:26:19 +02:00
Avimitin
9711ed2e82
lsd: allow user to configure colors
Signed-off-by: Avimitin <dev@avimit.in>
2024-04-10 21:26:19 +02:00
Chris Dawkins
6c792aa57e
direnv: fix nushell syntax
With nushell `0.85.0` this is no longer valid syntax. This change fixes
the syntax error with `0.85.0` while still remaining valid for `0.84.0`
and earlier.
2024-04-10 21:26:18 +02:00
XYenon
5e5063a9bd
yazi: add fish and nushell integration
PR #4493
2024-04-10 21:26:18 +02:00
Franz Pletz
9e70a3df87
neomutt: fix STARTTLS
When smtps is used as a protocol, neomutt expects TLS but will if
STARTTLS should be used. When using STARTTLS, smtp has to be used as
protocol and `ssl_force_tls` is set.

See <https://neomutt.org/guide/optionalfeatures#2-1-%C2%A0starttls>.
2024-04-10 21:26:18 +02:00
David Knaack
c20a5caba2
starship: use use instead of source for nushell
For starship v1.16 onwards this is the upstream-recommended method.
2024-04-10 21:26:17 +02:00
Robert Walter
92d368d971
rofi-pass: add package option 2024-04-10 21:26:17 +02:00