1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-10 21:29:48 +01:00
Commit graph

3328 commits

Author SHA1 Message Date
Robert Helgesson
09b7ad0f90
home-manager: fix incorrect log message 2024-04-10 21:27:25 +02:00
Robert Helgesson
dddefab1ef
tests: add basic integration tests
This introduces some rudimentary integration tests using the NixOS
test framework. The intent is to better catch regressions when doing
more elaborate changes that may affect overall Home Manager behavior.
Note, the tests are currently not run automatically.
2024-04-10 21:27:25 +02:00
Robert Helgesson
dbded8d0ec
home-manager: overrideable URLs in generated flake
When using the `init` sub-command, it is now possible to set the Home
Manager and Nixpkgs input URLs. Note, for now these options are
considered experimental.
2024-04-10 21:27:25 +02:00
Robert Helgesson
5553c93889
neomutt: fix tests
Caused by an unfortunate interaction between #4597 and #4999.
2024-04-10 21:27:25 +02:00
Robert Helgesson
3e10606b30
mpv: create doc output in tests 2024-04-10 21:27:24 +02:00
home-manager-bot
3a5d727f44
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/faf912b086576fd1a15fca610166c98d47bc667e' (2024-02-05)
  → 'github:NixOS/nixpkgs/f8e2ebd66d097614d51a56a755450d4ae1632df1' (2024-02-07)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-10 21:27:24 +02:00
Christian Dannie Storgaard
f66e0c311b
neomutt: Initial IMAP support (#4597)
neomutt: Updated options and added tests

neomutt: Added test for individual mailbox type

neomutt: Formatted code

neomutt: Enable ssl_force_tls based on IMAP instead of SMTP

neomutt: Applied suggestions from @chayleaf

neomutt: fix breaking tests
2024-04-10 21:27:24 +02:00
zendo
c8842ff8f1
emacs: use overrideScope instead of overrideScope' 2024-04-10 21:27:24 +02:00
home-manager-bot
6036073123
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/b8b232ae7b8b144397fdb12d20f592e5e7c1a64d' (2024-01-31)
  → 'github:NixOS/nixpkgs/faf912b086576fd1a15fca610166c98d47bc667e' (2024-02-05)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-10 21:27:24 +02:00
Rafael Carvalho
5ff30300d7
imapnotify: enable STARTTLS if enabled in email account config (#5013)
* imapnotify: enable STARTTLS if enabled in email account config

Since version 2.3.10 goimapnotify supports starttls. In version 2.3.11 a
typo in the settings was fixed, using tlsOptions.starttls to enable it.

This commit enables starttls in the goimapnotify config file if it is
enabled in the email account's imap settings.

* imapnotify: test generated config file

Compare the generated service config file with a manually verified
sample.
2024-04-10 21:27:23 +02:00
Emily
3d10daecd3
sway: fix workspace 10 missing from default config (#4636)
workspace 10 is part of upstream's default config, but was missing in home-manager.

The initial "sway: add module" PR (02d6040003) went through multiple iterations and had workspace 10 included for a brief moment.
Until the author removed it in a force-push commenting

> Have removed the last change which added bound ${modifer}+0 to workspace number 10 as this messed up workspace numbering in sway.

The reason might have been, that sway used to sort the workspaces in the order they appeared in the config.

Attribute sets in nix are sorted, but not "naturally sorted", meaning `bindsym Mod1+0 workspace number 10` comes before `bindsym Mod1+0 workspace number 1`.

It's unclear if that's what really happened. A workaround would have been to use `lib.lists.naturalSort` in `keybindingsStr`.

But I cannot reproduce this anymore in any way.
I assume this has been fixed many years ago by now.

upstream config: 020a572ed6/config.in (L113-L134)
2024-04-10 21:27:23 +02:00
Alexis (Poliorcetics) Bourget
331dc328b2
zellij: use full executable path 2024-04-10 21:27:23 +02:00
GenericNerdyUsername
4a785b0cef
jetbrains-remote: add module 2024-04-10 21:27:23 +02:00
arjan-s
aff1ba7dd8
neomutt: fix crypt_use_gpgme in newer versions
Fixes config load error since newer versions of neomutt don't allow
`crypt_use_gpgme` to be loaded dynamically (from folder hooks)
2024-04-10 21:27:22 +02:00
NotAShelf
640c4270fc
arrpc: add module 2024-04-10 21:27:22 +02:00
Anton
875fa16fe2
swayosd: update executable 2024-04-10 21:27:22 +02:00
Scott Stevenson
e910311c46
home-manager: Check VISUAL before EDITOR for editor
Check VISUAL for a visual editor before EDITOR, as per Unix convention
and as followed by Git, crontab, mutt, and other tools.
2024-04-10 21:27:22 +02:00
Clément DOUIN
546ace0756
himalaya: adjust module for v1.0.0-beta 2024-04-10 21:27:22 +02:00
shivaraj-bh
6843538e68
nix-gc: add service
The nix-gc service runs automatically at a specified frequency. It is
managed via launchd on macOS and systemd on Linux.
2024-04-10 21:27:21 +02:00
iofq
61d49550ed
mcfly: add interfaceView option 2024-04-10 21:27:21 +02:00
Rucadi
475c8e948c
vscode: add openvscode-server
In order to manage the extensions and configs from openvscode-server,
the only additional requirement was some mapping missing between the
name of the package and the default configDir/extensionDir
2024-04-10 21:27:21 +02:00
musjj
2752c42035
kitty: always export KITTY_SHELL_INTEGRATION
This ensures that `KITTY_SHELL_INTEGRATION` is manually set to the
user's `shellIntegration.mode`. This is necessary because sometimes
the variable is not set in subshells or splits.
`shellIntegration.mode` is also now ensured to always contain `no-rc`.
2024-04-10 21:27:21 +02:00
Kylie McClain
7d4dc024de
vdirsyncer: create postHook script when non-empty 2024-04-10 21:27:20 +02:00
Ujp8LfXBJ6wCPR
c103ab9566
fish: implement shellInitLast (after others)
Since the module system doesn't allow specifying order on types.lines
users can't specify anything to run after what modules have put into
shellInitInteractive since it runs last. This implements a fourth field
that runs after all others, not to be used by HM modules, but regular
users.

Co-authored-by: Carl Hjerpe <git@hjerpe.xyz>
2024-04-10 21:27:20 +02:00
home-manager-bot
cbce6c8e12
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/ae5c332cbb5827f6b1f02572496b141021de335f' (2024-01-25)
  → 'github:NixOS/nixpkgs/b8b232ae7b8b144397fdb12d20f592e5e7c1a64d' (2024-01-31)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-10 21:27:20 +02:00
Oğuz Ersen
243a420004
Translate using Weblate (Turkish)
Currently translated at 100.0% (35 of 35 strings)

Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Translate-URL: https://hosted.weblate.org/projects/home-manager/cli/tr/
Translation: Home Manager/Home Manager CLI
2024-04-10 21:27:20 +02:00
Juraj Hlista
f2340ee873
hyprland: fix hyprctl crash
`/tmp/hypr` must be present so `hyprctl` doesn't crash.
2024-04-10 21:27:20 +02:00
Robert Helgesson
495b3c915a
tests: reduce closure sizes 2024-04-10 21:27:19 +02:00
Ramses
585ff9c3c0
nix: fix generation of nix.conf for nix >= 2.20 2024-04-10 21:27:19 +02:00
Kylie McClain
cf1b4dd2b7
xfconf: fix config loading
The `run` function export was removed in #4965. This broke the
expectation in this module that `run` would be available outside of
main activation script, as `$DRY_RUN_CMD` once was.

Fixes #4980
2024-04-10 21:27:19 +02:00
Robert Helgesson
9bddb0a89f
docs: add style sheets and scrubDerivations
This adds style sheets and `scrubDerivations` from nmd, thereby
removing the need to download them separately.
2024-04-10 21:27:19 +02:00
Carl Hjerpe
81b1f92eea
tealdeer: add option to toggle update on activation
This is a network operation that can take awhile if you're on a shitty
connection.
2024-04-10 21:27:18 +02:00
Robert Helgesson
910d316355
home-manager: remove the export of run
Fixes #4950
2024-04-10 21:27:18 +02:00
Sefa Eyeoglu
bbe8322566
wob: add module
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-04-10 21:27:18 +02:00
mlyxshi
ea828da724
firefox: fix darwin NativeMessagingHostsPath 2024-04-10 21:27:18 +02:00
home-manager-bot
dbeda6b012
flake.lock: Update (#4964)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/612f97239e2cc474c13c9dafa0df378058c5ad8d' (2024-01-21)
  → 'github:NixOS/nixpkgs/ae5c332cbb5827f6b1f02572496b141021de335f' (2024-01-25)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-10 21:27:18 +02:00
Robert Helgesson
bd04fc27b6
network-manager-applet: add XDG data directory
The Network Manager Applet package provides, for example, some icons
that are good to have accessible in an XDG data directory.
2024-04-10 21:27:17 +02:00
Carl Hjerpe
1ee0946373
firefox: Reimplement FF native messaging
Farm links from the selected firefox package,
programs.firefox.nativeMessagingHosts and a package with a .keep file
for always creating the ~/.mozilla/native-messaging-hosts folder as a
regular folder with links in it.

Fixes #4959
2024-04-10 21:27:17 +02:00
GrizzlT
17b2a3a2a7
home-manager: add extendModules attribute
The `home-manager.lib.homeManagerConfiguration` function now has an
additional attribute that can be used to extend a Home Manager
configuration with additional modules outside the project tree.

It works similar to the result of `lib.nixosSystem` from Nixpkgs
2024-04-10 21:27:17 +02:00
home-manager-bot
3249809b33
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/bbe7d8f876fbbe7c959c90ba2ae2852220573261' (2024-01-19)
  → 'github:NixOS/nixpkgs/612f97239e2cc474c13c9dafa0df378058c5ad8d' (2024-01-21)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-10 21:27:17 +02:00
Ryan Horiguchi
06ca1c3c6a
firefox: add default containers 2024-04-10 21:27:16 +02:00
Sumner Evans
99d47e0f57
keepassx: remove module
This removes the services.keepassx module and all options related to it.
This is because KeePassX has been unmaintaned for a long time, and the
migration path to KeePassXC is not clear.

Note, this package probably hasn't worked for nearly a year since the
package was removed from Nixpkgs:
https://github.com/NixOS/nixpkgs/pull/216748

Closes #4949

Signed-off-by: Sumner Evans <me@sumnerevans.com>
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
62a921c9e0
home-manager: avoid running empty nix profile remove
We only want to run `nix profile remove` if there is actually anything
to remove.
2024-04-10 21:27:15 +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
home-manager-bot
45bfc4e66f
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/c3e128f3c0ecc1fb04aef9f72b3dcc2f6cecf370' (2024-01-15)
  → 'github:NixOS/nixpkgs/bbe7d8f876fbbe7c959c90ba2ae2852220573261' (2024-01-19)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-10 21:27:14 +02:00