1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-04-09 10:34:44 +00:00
Commit graph

1192 commits

Author SHA1 Message Date
Austin Horstman
296ddc6462
zsh: adjust initContent priorities (#6676)
To support easier migration of deprecating old zsh options. We can
adjust the internal priorities to fit within the `mkBefore` (500) and
default (1000). Makes it easier for `initExtraFirst` migrationg to
`mkBefore` and `initExtra` to default prio.
2025-03-21 15:17:13 -05:00
Aguirre Matteo
8a68f18e96
distrobox: add module (#6528)
Added programs/distrobox.nix module. It provides the option "programs.distrobox.containers", which makes it possible to declare a list of containers to be created. Since building those containers is not possible at build time (because none container backend is available at that time), I also added a Systemd Unit to build those containers after switching the configuration.
2025-03-21 10:07:00 -05:00
Austin Horstman
c1ca8974b3 hyprpolkitagent: use wayland.systemd.target 2025-03-20 23:08:16 -05:00
Bob van der Linden
29c6f2b0cb polkit-gnome: init module 2025-03-20 23:08:16 -05:00
Bob van der Linden
5503a758f9 lxqt-policykit-agent: init module 2025-03-20 23:08:16 -05:00
Bob van der Linden
cc538c3793 hyprpolkitagent: init module 2025-03-20 23:08:16 -05:00
Austin Horstman
da01818194 tests: scrub lazy{docker,git} on darwin 2025-03-20 17:14:14 -05:00
hauskens
46efc3b2e1 lazydocker: add module 2025-03-20 17:14:14 -05:00
Aguirre Matteo
c36cc49e55
onlyoffice: add module (#6667) 2025-03-20 11:34:43 -05:00
Austin Horstman
94605dcade
tests/firefox: add applicationName to mock (#6668) 2025-03-20 00:15:57 -05:00
Karun Sandhu
8675edf7d3
fish: add command option for abbreviations (#6666)
The fish shell has added a flag to the abbr command which allows one to expand it only if it is typed after a real command e.g.:
git s -> git status
s -> s

Also see the last example here: https://fishshell.com/docs/current/cmds/abbr.html#examples
2025-03-19 22:43:42 -05:00
William G Underwood
9556d3c2b4 tex-fmt: add module
tex-fmt is a LaTeX source code formatter written in Rust, and uses
a user configuration file in the .toml format.
2025-03-19 15:40:32 -05:00
Kira Bruneau
8b629b5424 firefox: migrate search config to v12 2025-03-19 15:16:09 -05:00
Kira Bruneau
b44d79a5b2 firefox: migrate search config to v11 2025-03-19 15:16:09 -05:00
Kira Bruneau
c1dc900a1a firefox: migrate search config to v7 2025-03-19 15:16:09 -05:00
hauskens
6b8cea6473 easyeffects: add option to import presets
added options to import presets
added tests
added hausken as maintainer
2025-03-19 14:45:27 -05:00
Tarow
27a72d9913
podman: include systemd in quadlet service path
Podman uses systemd-run to setup transient systemd timers, e.g. for healthchecks.

On systems where systemd is not present in /run/current-system/sw/bin or ~/.nix-profile/bin (like one of my Ubuntu hosts), setting up the transient timers will fail. For containers with healthchecks configured, this results in the container being stuck in starting state.

Relevant issue here: containers/podman#25034
2025-03-19 14:09:57 -05:00
Nicholas Hassan
bb72d79f5d podman: use type in attr name of built quadlets 2025-03-19 14:08:12 -05:00
Nicholas Hassan
81bf639da7 podman: link dependent quadlets during build
podman's systemd generator can automatically resolve unit dependencies, so instead of us guessing these links to create them, we provide the sources during generation
2025-03-19 14:08:12 -05:00
Nicholas Hassan
4108ec3aa8 podman: use dependency quadlets directly in build for generator 2025-03-19 14:08:12 -05:00
Jess
eb5d59dac9 rclone: add module
Rclone is a command-line program to manage files on cloud storage, it
also featrues support for FUSE mounts.

"Users call rclone *"The Swiss army knife of cloud storage"* and
*"Technology indistinguishable from magic"*" - https://rclone.org/

This module manages the configuration of rclone remotes.
2025-03-19 13:49:44 -05:00
Kira Bruneau
9d554281e0
firefox: refactor bookmarks into a submodule & require force (#6402)
This splits the bookmarks submodule into a seperate file, to make it easier to maintain (like how the search module was previously split out in #5697).

This also refactors bookmarks to require a new force option, to be more explicit about overriding existing bookmarks.
2025-03-19 13:37:13 -05:00
Yiheng He
22a36aa709
swww: add swww service module for swww-daemon (#6543) 2025-03-18 14:32:10 -05:00
Austin Horstman
c657142e24
thunderbird: add message filters option (#6652)
* thunderbird: add message filters option

Add option to declare account-specific message filters.

* tests/thunderbird: add second filter for sort

Make sure they are generated in correct order.

* thunderbird: use profilePath for messageFilters

In testing on darwin and NixOS, they use this path. 

---------

Co-authored-by: 347Online | Katie Janzen <katiejanzen@347online.me>
2025-03-17 16:14:41 -05:00
Jennings Zhang
f55c5f6569 kubecolor: create oc alias conditionally 2025-03-17 14:53:32 -05:00
Austin Horstman
5a6e5a59a4
tests: stub more expected packages darwin (#6649)
Get ahead of random breakages blocking ci.
2025-03-17 14:14:02 -05:00
Austin Horstman
6914c15c09 tests/default: scrub zsh
test expects scrubbed version
2025-03-13 20:08:53 -05:00
Austin Horstman
8f8f5432d1 tests/zsh: fix zshrc content priority test
Previous test didn't verify they were actually in correct order,
updating test to check configuration is generated, as expected.
2025-03-13 20:08:53 -05:00
Austin Horstman
0b0baed7b2 tests/default: blacklist sapling
broken atm
2025-03-13 14:34:14 -05:00
Stanislav Alekseev
6576167e6b
macos-remap-keys: add (#6605)
A module to remap keys using macos native tool (hidutil)
2025-03-13 09:02:04 -05:00
Qiming Chu
7832b5aa95
zsh: refactor zsh configuration for better order control over .zshrc (#6479)
* zsh: add initContent option for custom .zshrc content insertion

- Users can add content anywhere by using `lib.mkOrder`, `lib.mkBefore`
and `lib.mkAfter` custom configurations.
- Add test cases to verify the insertion of content before and after
existing configurations in `.zshrc`.
consolidate zshrc content tests into a single priorities test
2025-03-13 14:37:11 +01:00
Austin Horstman
1878091234 home-cursor: louder deprecation
Check if a user explicitly set option to null and warn that they should
just disable instead.
2025-03-12 09:51:58 -05:00
isabel
74f2ed6a64 test/home-cursor: add new .enable check 2025-03-12 09:51:58 -05:00
Marijan Petričević
5871e21c11
screen-locker: add lockCmdEnv option (#6592) 2025-03-12 07:31:54 -05:00
Ilya Savitsky
744f749dd6
mods: add a mods module (#6339) 2025-03-09 23:05:08 -05:00
bamhm182
ce9cb2496c
podman: added volume, image, and build quadlets (#6137)
Added support for build, image, and volume quadlets
Resolved test failures due to podman 5.3.0 upgrade
Replaced several instances of pkgs.podman with services.podman.package
2025-03-09 23:02:05 -05:00
Thiago Kenji Okada
db4386d686
home-environment: add line-break after sessionSearchVariables (#6596)
PR #6593 broke activation when `sessionVariablesExtra` is used, e.g.:
`services.ssh-agent` because it concatenate the strings without a line
break, so the resulting `hm-session-vars.sh` file became:

```bash
export XCURSOR_PATH="/etc/profiles/per-user/thiagoko/share/icons${XCURSOR_PATH:+:}$XCURSOR_PATH"if [ -z "$SSH_AUTH_SOCK" ]; then
  export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent
fi
```

This commit fixes it by enforcing a line break between
`sessionSearchVariables` and `sessionVariablesExtra`.
2025-03-09 12:57:44 -05:00
Thiago Kenji Okada
277eea1cc7 home-environment: add home.sessionSearchVariables
This commit introduces `home.sessionSearchVariables` option, that is
created to be a "generic" version of `home.sessionPath` for any
environment variables that is similar to PATH (e.g.: MANPATH). This
allows composition of those variables between multiple modules, avoiding
issues like this one:

https://github.com/nix-community/home-manager/pull/4579/files#r1364374048

This commit also reimplements `home.sessionPath` as terms of
`home.sessionSearchVariables`, to reduce code duplication and show that
the code is correct.

The behavior is to prepend the new search paths. This will allow
the user to override the defaults easily by setting it later in the
configuration.
2025-03-09 09:36:41 -05:00
Austin Horstman
1fd39a1055 tests/vscode: fix darwin snippets test 2025-03-09 00:44:11 -06:00
Austin Horstman
8d2a058108 tests/thunderbird: fix darwin test 2025-03-09 00:44:11 -06:00
Austin Horstman
4f2c461286 tests/yubikey-agent-darwin: fix test 2025-03-09 00:44:11 -06:00
Austin Horstman
4c9643363a tests/ollama: fix darwin test 2025-03-09 00:44:11 -06:00
Austin Horstman
68540fb775 tests/syncthing: syncthing wrapper stubbing for darwin 2025-03-09 00:44:11 -06:00
Austin Horstman
15498b94ec tests/syncthing: fix extra-options on darwin
Need to stub the return from the writeBash used to populate the plist
file for darwin. Also the arguments were moved inside the wrapper.
2025-03-09 00:44:11 -06:00
Austin Horstman
1909541fc7 tests/targets-darwin: fix user-defaults test
Update to represent the new output generated by the module.
2025-03-09 00:44:11 -06:00
Austin Horstman
b3e11ed4a9 tests: central darwin stubbing
Until we can figure out how to resolve issue with stdenv.
Makes it easier to revert when automatic stubbing is fixed for darwin
stdenv
2025-03-09 00:44:11 -06:00
Austin Horstman
b74402e4e8 tests: expose scrubDerivation
Will use it with darwin scrubbing
2025-03-09 00:44:11 -06:00
Mahmoud Ayman
b2314312f2
zsh: correct syntax option to syntax-highlighting (#5792)
The current syntax of highlighting style is outdated and not working as well. So this pr aims to update it so follow `zsh-syntax-highlight`` new syntax [example](e0165eaa73/highlighters/main/main-highlighter.zsh (L32)).
2025-03-08 19:37:10 +01:00
Austin Horstman
26f6b86264 tests/gh-dash: enable gh to test extension adding 2025-03-08 00:54:10 -06:00
Austin Horstman
1347b0b468 tests: move vinegar to linux only 2025-03-08 00:03:41 -06:00