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

5728 commits

Author SHA1 Message Date
Hoang Nguyen
a5fee07792 rio: reformat 2025-11-03 09:23:19 -06:00
Hoang Nguyen
9d6e28fd32 rio: add support for custom themes 2025-11-03 09:23:19 -06:00
Hoang Nguyen
e22fb25cde rio: use stub package for all test cases 2025-11-03 09:23:19 -06:00
bruce oberg
3c16ac3646 home manager: add test for option subcommand
- added a test to the standalone-basics unit:  the option subcommand queries the `home.username` value and ensures that something sane is returned.

details:

- the option subcommand was broken by upstream changes to the `nixos-option` command.
- hm had no tests for the option subcommand, so the problem was discovered by users.
- output from nixos-option probably starts with 'Value:\n  "alice"', but we're only looking for 'alice' because the output format is not guaranteed.
2025-11-03 09:12:22 -06:00
bruce oberg
64c49b1aa5 home-manager: fix option subcommand
- calls nix-instatiate instead of nixos-option (using nix-option's underlying nix script).
- loops over options to display since nixos-option can only process a single option.
- passes through the --recursive flag from nixos-option. and includes --help and man page for the flag.

details:

nixos-option was changed from a C++ command to a shell script that feeds a nix script (with arguments) to nix-instatiate. in the process, the --config_expr and --options_expr we once passed to nixos-option were removed.

without changing the nixos-option shell script, we have no may to override the arguments to the nixos-option nix script.

luckily, we can use our modulesExpr as a direct argument to the new nixos-option nix script.

unluckily, the nix script does not accept multiple options per instantiation. so we are also looping through the given options ourselves and feeding them each to nixos-option's nix script.

the nixos-option shell and nix scripts are in different places in the nix store, so we have to search the store for the nix script given the location of the shell script.

also, the nixos-option nix script wants a 'recursive' flag, so we now honor that flag for the home-manager option subcommand.
2025-11-03 09:12:22 -06:00
Benedikt Rips
c93684cd87 tmpfiles: use correct path in the onChange hook 2025-11-03 08:52:18 -06:00
Benedikt Rips
8c824254b1 glab: coerce glab tmpfile rule argument to string 2025-11-03 07:59:26 -06:00
Benedikt Rips
2318e30ea1 tests: hostPlatform -> stdenv.hostPlatform 2025-11-03 07:59:03 -06:00
Benedikt Rips
b5ed4afc22 glab: remove the config file if it is empty or glab disabled 2025-11-02 23:02:10 -06:00
Benedikt Rips
7503ffb0b0 tmpfiles: add maintainer bmrips 2025-11-02 23:02:10 -06:00
Benedikt Rips
b4350d54c2 tmpfiles: add option to purge rules' targets on change 2025-11-02 23:02:10 -06:00
Benedikt Rips
090aa14e5d tmpfiles: migrate to an RFC42-style option 2025-11-02 23:02:10 -06:00
Austin Horstman
32a671dce5 tests/gtk: ubuntu_font_family -> ubuntu-classic
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-11-02 22:59:59 -06:00
Austin Horstman
ab0d3db1aa tests/darkman: python -> python2
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-11-02 22:59:59 -06:00
Austin Horstman
9901bb6afc taskwarrior-sync: taskwarrior -> taskwarrior2
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-11-02 22:59:59 -06:00
Austin Horstman
9f3a82bfd1 taskwarrior: taskwarrior -> taskwarrior2
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-11-02 22:59:59 -06:00
Austin Horstman
acf7743c89 darwinScrublist: taskwarrior rename
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-11-02 22:59:59 -06:00
home-manager-ci[bot]
983cbdc75c flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/6a08e6bb4e46ff7fcbb53d409b253f6bad8a28ce?narHash=sha256-Q/uhWNvd7V7k1H1ZPMy/vkx3F8C13ZcdrKjO7Jv7v0c%3D' (2025-10-25)
  → 'github:NixOS/nixpkgs/2fb006b87f04c4d3bdf08cfdbc7fab9c13d94a15?narHash=sha256-kJ8lIZsiPOmbkJypG%2BB5sReDXSD1KGu2VEPNqhRa/ew%3D' (2025-10-31)
2025-11-02 22:59:59 -06:00
Austin Horstman
d9cd40d2da
local-ai: string -> str (#8116)
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-11-03 04:41:08 +00:00
Ilya Savitsky
61f2cc5908
local-ai: init module (#6718) 2025-11-02 22:04:44 -06:00
Alex Ionescu
50a5766d51
kitty: add option mouseBindings (#8111) 2025-11-02 21:55:45 -06:00
Raul Rodrigues de Oliveira
0fe68257a9
fish: added repaint to binds (#8113) 2025-11-02 21:53:28 -06:00
Robert Radestock
371608e69c
rclone: add option to set log-level (#8105)
Add an option to set rclone's log-level per mount:
programs.rclone.remotes.<name>.mounts.<name>.logLevel = "DEBUG";
If no value is set, it'll use rclone's implicit default ("NOTICE")

Previously, the debug log-level got enforced (via "-vv"),
which caused noisy logs, and there was no easy way to change that.

Note: rclone global-flags can't be configured in the config file,
so this uses the environment variable approach.

references:
- https://rclone.org/docs/#logging
- https://rclone.org/docs/#v-vv-verbose

If no value is given, use the implicit default of rclone instead of redefining it through the options
2025-11-02 21:52:56 -06:00
Yechiel Worenklein
43e205606a cbatticon: add package example
After batticonplus was merged into nixpkgs
2025-11-02 06:44:15 -06:00
pancho horrillo
5eaa0072ff gpg-agent: restore empty newlines after commands 2025-11-02 05:52:54 -06:00
pancho horrillo
363797f8a9 gpg-agent: fix syntax-breaking extraneous new line 2025-11-02 05:52:54 -06:00
jaredmontoya
c0016dd147 ssh-agent: add shell integrations
replaces `home.sessionVariablesExtra`
2025-11-01 18:56:56 -05:00
jaredmontoya
3557df69ee gpg-agent: refactor 2025-11-01 18:56:08 -05:00
Bruno Bigras
c537cb21e3 radicle: pkgs.hostPlatform -> pkgs.stdenv.hostPlatform 2025-11-01 18:55:02 -05:00
jaredmontoya
ae22fa930e lazygit: fix nushell and fish integrations 2025-11-01 18:54:42 -05:00
Matt Sturgeon
87044c5722 tests: explicitly define NIX_CONFIG
Ensure NIX_CONFIG is correctly configured for the tests command.

It is possible that someone may enable experimental features on an
ad-hoc basis, e.g. via the `--extra-experimental-features` CLI flag.
In this scenario, the tests script cannot assume they are already
enabled.

In the future, we may also wish to configure other things, like extra
binary substitutors.
2025-11-01 14:29:06 -05:00
Matt Sturgeon
7248450206 tests: add fzf dependency to package
The tests script depends on fzf when asking which test to run.
Explicitly make it available via `runtimeInputs`.
2025-11-01 14:29:06 -05:00
Matt Sturgeon
9278414dcc tests: switch package to writeShellApplication 2025-11-01 14:29:06 -05:00
Matt Sturgeon
5fb2203af7 tests: move package to its own file
Extract the `tests` package from `flake.nix`  into its own file
`tests/package.nix`.

This a) de-couples it from the flake (to a degree) and b) allows more
neatly using the callPackage pattern.
2025-11-01 14:29:06 -05:00
Christoph Hollizeck
4ac96eb21c
easyeffects: use new typecheck (#8090) 2025-10-30 21:39:41 -05:00
Austin Horstman
97e3022a8d news: add backupCommand entry
Introduced in https://github.com/nix-community/home-manager/pull/7153

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-10-30 12:33:41 -05:00
Christina O'Donnell
ce76393bb7
home-manager: add support for custom backup command (#6424) (#7153)
This adds a new backupCommand option to allow users to specify a
custom command to run on existing files during activation, as an
alternative to the existing backupFileExtension mechanism.

Adds backupCommand option to NixOS and nix-darwin modules.

Exports HOME_MANAGER_BACKUP_COMMAND environment variable when set.

Updates file activation logic to use the custom backup command if
provided, falling back to the existing backup extension logic.

Updates collision checking and user-facing instructions to
mention the new option.

This enables advanced backup workflows, such as moving files to
trash or archiving with custom tools, before managing them with
Home Manager.
2025-10-30 12:26:13 -05:00
Benedikt Rips
c6d4cb31d7 home-manager: define a central package 2025-10-30 08:20:54 -05:00
andre4ik3
124b99dbd1 aerospace: don't use ifd 2025-10-29 15:47:12 -05:00
Malik
b8082c6803 khal: fix trailing slash bug for singlefile calendars
Fix the trailing slash bug described in issue #8024 by conditionally adding a slash only for filesystem type, not for singlefile. Also update the expected test output to match the correct order.
2025-10-29 16:14:04 +01:00
Malik
58d90d298d tests: khal: add testcase
for singlefile
2025-10-29 16:14:04 +01:00
Yechiel Worenklein
ca2ab1d877 cbatticon: add package to options 2025-10-28 10:45:54 -05:00
home-manager-ci[bot]
d47259b685 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5e2a59a5b1a82f89f2c7e598302a9cacebb72a67?narHash=sha256-K5Osef2qexezUfs0alLvZ7nQFTGS9DL2oTVsIXsqLgs%3D' (2025-10-19)
  → 'github:NixOS/nixpkgs/6a08e6bb4e46ff7fcbb53d409b253f6bad8a28ce?narHash=sha256-Q/uhWNvd7V7k1H1ZPMy/vkx3F8C13ZcdrKjO7Jv7v0c%3D' (2025-10-25)
2025-10-28 09:06:15 -05:00
Benedikt Rips
05c7c900f1 fontconfig: fix cache existence tests 2025-10-28 08:55:38 -05:00
Benedikt Rips
b53026f683 tmpfiles: echo the onChange command and respect $DRY_RUN 2025-10-28 08:55:07 -05:00
Thiago Kenji Okada
fca3fedcdc targets/darwin: do not use sudo to check for App Management
This is writing `.DS_Store` files as root in "~/Applications/Home
Manager Apps/<app>", and causing errors during the `rsync` call since it
will try to delete any files that is not present in the app bundle.

Fix #8067.
2025-10-28 08:54:13 -05:00
nanliu
e82585308a Translate using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (17 of 17 strings)

Translate using Weblate (Chinese (Simplified Han script))

Currently translated at 94.8% (37 of 39 strings)

Co-authored-by: nanliu <nan.liu@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/home-manager/cli/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/home-manager/modules/zh_Hans/
Translation: Home Manager/Home Manager CLI
Translation: Home Manager/Home Manager Modules
2025-10-27 11:54:37 -05:00
Hoang Nguyen
aa888ffc10 kraftkit: new module 2025-10-27 09:13:26 -05:00
Thierry Delafontaine
0a3fb53ee2 delta: add jujutsu integration option 2025-10-27 09:11:41 -05:00
home-manager-ci[bot]
a12a837d99 maintainers: update all-maintainers.nix
Automated update of the master maintainers list combining:
- Home Manager specific maintainers from modules/lib/maintainers.nix
- Nixpkgs maintainers referenced in Home Manager modules

**Added:** 1 maintainers
**Removed:** 0 maintainers
**Total:** 276 → 277 maintainers

** Added:** lorenzleutgeb

Generated by: lib/python/generate-all-maintainers.py
2025-10-27 09:10:43 -05:00