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

773 commits

Author SHA1 Message Date
Nara Díaz Viñolas
7edbaf84cd
hyprland: add option sourceFirst
Add the option sourceFirst to the hyprland module. When this option is
enabled source entries will be put near the top of the file, so that
the variables declared in other files can be used by the other
configuration entries.

Add "source" to the list of important prefixes when the former option
is enabled.

Resolves #4729
2024-04-10 21:26:51 +02:00
Viktor Kronvall
e76d3e4d1a
docs: rename generated manual to index.xhtml
The `nixos-render-docs` tool outputs XHTML formatted content. In
order to convince browsers like `firefox` to treat the data as XHTML
the extension must be `.xhtml` and not `.html`.

Using the XHTML-formatted content as HTML is mainly an issue with
self-closing `<a />` tags.
2024-04-10 21:26:50 +02:00
Viktor Kronvall
313c2a6416
docs: update paths to make manual tests pass 2024-04-10 21:26:47 +02:00
0x5a4
e2caac1930
firefox: fix folders not showing in toolbar
Fixes #4568
2024-04-10 21:26:46 +02:00
Damien Cassou
7ea42f9c8e
signaturepdf: add service 2024-04-10 21:26:43 +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
Philipp Mildenberger
b986c3b8e7
picom: use getExe instead of hardcoded binary 2024-04-10 21:26:42 +02:00
Thiago Kenji Okada
7368d81a71
qt: fix qt.platformTheme = "gtk3" 2024-04-10 21:26:41 +02:00
Thiago Kenji Okada
dde4185450
qt: fix basic usage when just qt.enable = true is set 2024-04-10 21:26:41 +02:00
Gutyina Gergő
2b4ba04853
zsh: allow enabling syntax highlighters (#4360) 2024-04-10 21:26:41 +02:00
Thiago Kenji Okada
e529050043
qt: workaround issue when i18n.inputMethod.enabled = 'fcitx5' 2024-04-10 21:26:39 +02:00
Thiago Kenji Okada
2e44116afc
qt: export QT_PLUGIN_PATH/QML2_IMPORT_PATH
Those 2 variables are necessary to make e.g.: qt6ct work correctly.

See issue: https://github.com/NixOS/nixpkgs/issues/239909.
2024-04-10 21:26:39 +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
9p4
dfb56a4a77
swayidle: always restart systemd unit on failure
Occasionally, swayidle crashes with a failure to connect to the
Wayland session. Ideally, swayidle should automatically restart
instead of leaving the system in a vulnerable state.
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
Olli Helenius
8ab4e866f5
systemd: avoid creating an empty user.conf
Due to the defaults in `systemd.user.settings`, the default value when
there are no settings explicitly set is `{ Manager = { }; }`. This
means an empty file is created even when `systemd.user.settings` is
never used in home-manager configuration. Since user’s `user.conf` is
preferred to the global `/etc/systemd/user.conf`, this can cause any
values set in the latter to be discarded.
2024-04-10 21:26:35 +02:00
Rodney Lorrimar
5136542501
emacs: Fix socket activation 2024-04-10 21:26:35 +02:00
Rodney Lorrimar
2e4250a532
emacs: Remove obsolete socket file workaround 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
Olli Helenius
c28bf5c586
systemd: add settings option (#4276)
The `systemd.user.extraConfig` provides a way to generate a
`systemd-user.conf(5)` file for the user.

This is the home-manager equivalent of NixOS’s option of the same
name, with the difference that NixOS’s option generates a `user.conf`
file that is shared between all users.
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
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
Naïm Favier
c0cfd32bf0
sxhkd: set scope OOMPolicy to continue
When a process inside the sxhkd scope is OOM killed, if the OOM policy
is set to `stop` then the sxhkd scope itself will exit, terminating
every process launched from the keyboard.

This is undesirable, set it to `continue` instead to keep other
processes running.
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
sisyphushappy
872242a275
qutebrowser: add greasemonkey userscript option
Co-authored-by: Ivar Scholten <ivar.scholten@protonmail.com>
2024-04-10 21:26:29 +02:00
Gabe Dunn
2ca2163ece
thefuck: add instant mode option
Also do a slight code cleanup.
2024-04-10 21:26:28 +02:00
Xavier Lambein
37b513dd7d
darkman: add module
Co-authored-by: Naïm Favier <n@monade.li>
Co-authored-by: Robert Helgesson <robert@rycee.net>
2024-04-10 21:26:27 +02:00
Damien Cassou
0e16a9b843
firefox: add test for duplicate profile id assertion 2024-04-10 21:26:26 +02:00
Damien Cassou
132e212203
firefox: extract an overlay common to all tests 2024-04-10 21:26:26 +02:00
Janik
7ad922a956
services.cliphist: add module (#4445) 2024-04-10 21:26:26 +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
Mihai Fufezan
5ca19629fd
hyprland: allow customizing systemd
Allows users to customize which environment variables to import in DBus
and SystemD user environments, and to specify which commands will be run
after the environment activation.
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