7 Commits

Author SHA1 Message Date
Austin Horstman
a875cb4bdf ashell: require ashell 0.5.0 or later
ashell 0.5.0, released in June 2025, moved its configuration from YAML
to `ashell/config.toml`. Since 25.11 Home Manager has written YAML for
older packages and TOML for newer ones. Nixpkgs 25.11 already ships
0.6.0 and 26.05 ships 0.8.0, so drop the YAML path and, like the vicinae
module, fail an assertion when `programs.ashell.package` is older than
0.5.0.

`programs.ashell.settings` no longer accepts null. Only the YAML format
could serialize it; with TOML it already failed to build.

Replace the YAML test with one for the version assertion.
2026-10-15 12:34:25 -05:00
Austin Horstman
aaa84655c1 ashell: remove camelCase settings migration
ashell 0.5.0 switched its TOML configuration to snake_case keys, and
since 25.11 Home Manager has converted camelCase keys in
`programs.ashell.settings` for TOML configurations, with a warning.
Remove the conversion ahead of the 26.11 release; camelCase keys are
now written as given.

Drop the test that only exercised the conversion.
2026-10-15 12:34:25 -05:00
Austin Horstman
3c3ede6ad8 tests: update YAML expectations for remarshal v2
Nixpkgs switched pkgs.formats.yaml to remarshal v2. Generated files now
start with a %YAML 1.1 directive and a --- document start, and multiline
strings use double-quoted escapes.

Only files written through yamlFormat.generate change. Modules that
declare the YAML type but write the file with builtins.toJSON keep their
current output.
2026-08-19 10:14:55 -05:00
Austin Horstman
3f64029740 tests: restore TOML goldens for remarshal 2026-05-12 13:08:25 -05:00
Austin Horstman
1e313820a3 treewide: adapt toml generator changes
Upstream formatter change in
https://github.com/NixOS/nixpkgs/pull/512319 caused tests to fail.
2026-05-02 20:19:12 -05:00
Benedikt M. Rips
f2f1076c1f treewide: remove no-ops (#8061) 2025-10-26 15:43:53 -05:00
Austin Horstman
650a38ebe8 ashell: support yaml and toml config
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-05 00:26:25 -05:00