1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
Commit graph

1590 commits

Author SHA1 Message Date
Aguirre Matteo
10bcab77af aliae: add module 2025-09-30 14:45:48 -05:00
Aguirre Matteo
a65df80783 algia: add module 2025-09-30 14:41:57 -05:00
Thiago Kenji Okada
9e0453a9b0 zsh: source session variable file directly
Right now we load `hm-session-vars.sh` from
`config.home.profileDirectory`, generally resulting in the following
code being generated in `zshenv`:

```
. "/etc/profiles/per-user/<username>/etc/profile.d/hm-session-vars.sh"
```

This is problematic in a few situations. For example, when entering a
`distrobox` environment I got the following error:

```
/home/<username>/.zshenv:.:2: no such file or directory: /etc/profiles/per-user/<username>/etc/profile.d/hm-session-vars.sh
```

Instead, let's point to the path directly to the `/nix/store` by using
`config.home.sessionVariablesPackage` instead. This is more robust and
it is more consistent with other things we source in ZSH.
2025-09-30 07:50:26 -05:00
Aguirre Matteo
580ff74a71 intelli-shell: add module 2025-09-28 19:47:46 -05:00
Austin Horstman
a97df40c19 zsh: envVarsStr fix indentation
Use new indentation support to generate properly indented variables

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-09-28 14:44:14 -05:00
Austin Horstman
2b03dc82bb lib/zsh: revert escapeShellArg in toZshValue
Causes variables to be generated with single ticks breaking shell
expansion.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-09-28 14:44:14 -05:00
S0AndS0
1dbb3fd2f7
radio-active: add module to create config files
Configuration entry similar to;

```nix
programs.radio-active.enable = true;
```

By default `ffplay` is used for recording/playback, but that can be
changed by applying either of the following;

```nix
programs.radio-active.settings.AppConfig.player = "vlc";
programs.radio-active.settings.AppConfig.player = "mpv";
```

All other configuration options documented by;
https://github.com/deep5050/radio-active?tab=readme-ov-file#default-configs
maybe applied under the `AppConfig` attribute set.

Finally, the `aliases` attribute set allows for defining key/value pares
that will generate a `~/.radio-active-alias` of bookmarked stations, for
example something like;

```nix
programs.radio-active.aliases = {
  "Deep House Lounge" = "http://198.15.94.34:8006/stream";
};
```

... will result in;

```
Deep House Lounge==http://198.15.94.34:8006/stream
```

WARN: Darwin hosts may report issues about `pkgs.vlc`

Co-authored-by: Robert Helgesson <robert@rycee.net>
2025-09-28 08:58:42 +02:00
Austin Horstman
26ace005b7 tests/zsh: add comprehensive smart formatting test
Add test to verify intelligent width optimization of shell arrays.
The test demonstrates how formatShellArrayContent packs multiple items
per line
within reasonable width limits rather than one item per line.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-09-27 13:18:01 -05:00
Austin Horstman
3aaf340173 zsh: optimize setOptions with array-based loops
Replace individual setopt statements with array-based loops for cfg.setOptions.
Use lib.hm.zsh.define for consistent array formatting and add unset statements
to clean up temporary variables, improving consistency with other zsh optimizations.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-09-27 13:18:01 -05:00
Austin Horstman
04f672b5db zsh/history: optimize history options with array-based loops
Replace individual setopt/unsetopt statements for history options with efficient
array-based loops. Also optimize history substring search key bindings using
the same pattern. Use lib.hm.zsh.define for consistent array formatting and
add unset statements to clean up temporary variables.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-09-27 13:18:01 -05:00
Austin Horstman
c26a2ac2e4 zsh/plugins: optimize plugin loading with array-based loops
Replace individual plugin PATH/fpath statements and conditional sourcing with
efficient array-based loops. Use lib.hm.zsh.define for consistent array
formatting and add unset statements to clean up temporary variables.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-09-27 13:18:01 -05:00
Austin Horstman
5176d93c0a lib/zsh: fix shell escaping and integrate formatShellArrayContent
Replace naive string quoting with lib.escapeShellArg for proper shell escaping
of special characters, spaces, and quotes. Integrate with new formatShellArrayContent
for intelligent multi-line array formatting in zsh array definitions.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-09-27 13:18:01 -05:00
Aguirre Matteo
e3e15e765d aichat: add agents option 2025-09-26 14:53:41 -05:00
Aguirre Matteo
9947d3c003 aider-chat: add module 2025-09-26 14:52:49 -05:00
Aguirre Matteo
8a1357854d airlift: add module 2025-09-26 14:52:31 -05:00
Yethal
6238bbc0ae
tailscale-systray: add module (#7821)
Added module for official Tailscale systray app
2025-09-26 15:14:09 +00:00
Simon Gate
39d26c1686
ssh-agent: add defaultMaximumIdentityLifetime setting (#7876)
Add option to ssh-agent to add a default value for the maximum lifetime
of identities added to the agent.
2025-09-25 09:26:39 -05:00
Robert Helgesson
2324540520 syncthing: assert tray service content in test 2025-09-25 09:42:44 +02:00
Robert Helgesson
ade850153b
syncthing: remove deprecated code
Specifically, in 2021 the use of `services.syncthing.tray` as a
Boolean was deprecated. This removes the associated code.
2025-09-25 08:49:23 +02:00
Aguirre Matteo
68a92b0301 aiac: add module 2025-09-24 16:11:30 -05:00
Robert Helgesson
142acd7a7d bash: source session variable file directly 2025-09-24 15:18:50 +02:00
David Chocholatý
6ce2e18007 nix-your-shell: Allow using nom for nix commands 2025-09-24 00:33:25 -05:00
June Stepp
131f4e22c3 anki: rename sync.passwordFile, improve documentation
The account password is different from the sync key needed here. Add
instructions for how to get the sync key, and make the option name
accurate.
2025-09-23 13:44:15 -05:00
Aguirre Matteo
366b60b8a0 ahoviewer: add module 2025-09-23 12:26:21 -05:00
Dietrich Daroch
9a2dc0efbc zellij: Add extraConfig
This allows working around [#4659](https://github.com/nix-community/home-manager/issues/4659)

While fixing `toKDL` might be fun, I just don't think it's a good use of
anyone's time.

---

This is still untested.
2025-09-22 21:08:51 -05:00
André Silva
f59891d511 xdg-mime-apps: no spaces in default app entries 2025-09-22 20:56:58 -05:00
Aguirre Matteo
61c84a3bbf fabric: add module 2025-09-21 09:18:26 -05:00
Aguirre Matteo
20d75ecd36 animdl: add module 2025-09-21 09:15:59 -05:00
jaredmontoya
55b1f5b7b1
wleave: init (#7835) 2025-09-19 10:43:34 -05:00
Robert Helgesson
efcba687d3
xdg-mime-apps: add defaultApplicationPackages option
This option allows a user to inject default applications directly from
a list of specified packages. It was previously possible to do this,
but only through import from derivation.
2025-09-19 16:23:57 +02:00
Gaetan Lepage
e81d71d53a nix-remote-build: add module 2025-09-19 08:33:40 -05:00
Joaquín Triñanes
363007f129 nushell: expose config dir location as option 2025-09-18 21:58:26 -05:00
Joaquín Triñanes
b47ea12ff4 mise: statically generate nushell config 2025-09-18 21:45:45 -05:00
Michael Daniels
3cb08dd360 nvchecker: add module 2025-09-18 21:36:47 -05:00
Aguirre Matteo
b8596c1b23 acd-cli: add module 2025-09-18 21:18:14 -05:00
Aguirre Matteo
acaf3971c1 abaddon: add module 2025-09-18 21:17:45 -05:00
Aguirre Matteo
b5698ed57d retext: add module 2025-09-18 16:56:09 +02:00
Aguirre Matteo
9093a3f200 formiko: add module 2025-09-17 20:58:54 -05:00
Robert Helgesson
9f408dc51c
ssh-tpm-agent: fix test case 2025-09-17 16:26:12 +02:00
Austin Horstman
53538044d9 tests/opencode: expand tests for agents / commands
Include various tests for the agents and command file generation and
different ways of configuring it.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-09-17 07:23:42 -05:00
Austin Horstman
fb928abb67 tests/claude-code: add path tests for agents/commands
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-09-17 00:07:05 -05:00
Austin Horstman
10f5a0cc4b tests/oh-my-posh: expand test coverage
Cover some more scenarios with the module.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-09-17 00:06:30 -05:00
Tim Keller
fad8e3033e
fontconfig: add fonts.fontconfig.extraConfigFiles option (#7754)
Co-authored-by: Tim Keller <tjk@tjkeller.xyz>
Co-authored-by: Benedikt M. Rips <benedikt.rips@gmail.com>
2025-09-16 22:31:54 -05:00
novenary
75f97fcbe3
sway: order input config from least to most specific (#7684)
Workaround for https://github.com/swaywm/sway/issues/7271.
2025-09-16 22:22:28 -05:00
Aguirre Matteo
10d30c9185 cudatext: add module 2025-09-15 23:43:34 -05:00
Robert Helgesson
11cc5449c5 tests: fix tests 2025-09-15 09:22:58 +02:00
Sewer56
5e06d0f184 claude-code: added 'hooks' and 'hooksDir' options to specify hooks from filesystem 2025-09-14 23:29:18 -05:00
Sewer56
be37a3492d claude-code: added 'commandsDir' option to specify commands from filesystem 2025-09-14 23:29:18 -05:00
Sewer56
a641bbbb9b claude-code: added 'agentsDir' option to specify agents from filesystem 2025-09-14 23:29:18 -05:00
Sewer56
343e555657 claude-code: added memories (claude.md) generation 2025-09-14 23:29:18 -05:00