From a4fc77c63d41b74f156f25fb34be905527865028 Mon Sep 17 00:00:00 2001 From: Dan Lock Date: Fri, 27 Jun 2025 11:01:14 +0100 Subject: [PATCH] ashell: new ashell 0.5.0 config standards Signed-off-by: Austin Horstman --- modules/misc/news/2025/06/2025-06-27_18-53-10.nix | 13 +++++++++++++ modules/programs/ashell.nix | 8 ++++---- 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 modules/misc/news/2025/06/2025-06-27_18-53-10.nix diff --git a/modules/misc/news/2025/06/2025-06-27_18-53-10.nix b/modules/misc/news/2025/06/2025-06-27_18-53-10.nix new file mode 100644 index 00000000..38e92d31 --- /dev/null +++ b/modules/misc/news/2025/06/2025-06-27_18-53-10.nix @@ -0,0 +1,13 @@ +{ config, ... }: + +{ + time = "2025-06-27T18-53-10+00:00"; + condition = config.programs.ashell.enable && (config.programs.ashell.settings != { }); + message = '' + ashell 0.5.0 changes the configuration file location and format. + The camelCase format has been removed in favor of snake_case, which better aligns with the toml syntax. + + Your configuration will break if you have defined the "programs.ashell.settings" option. + To resolve this, please alter your settings to use snake_case. + ''; +} diff --git a/modules/programs/ashell.nix b/modules/programs/ashell.nix index 9b1fc73d..ac0a7958 100644 --- a/modules/programs/ashell.nix +++ b/modules/programs/ashell.nix @@ -6,7 +6,7 @@ }: let cfg = config.programs.ashell; - settingsFormat = pkgs.formats.yaml { }; + settingsFormat = pkgs.formats.toml { }; in { meta.maintainers = [ lib.maintainers.justdeeevin ]; @@ -35,9 +35,9 @@ in workspaces.visibilityMode = "MonitorSpecific"; }; description = '' - Ashell configuration written to {file}`$XDG_CONFIG_HOME/ashell.yml`. + Ashell configuration written to {file}`$XDG_CONFIG_HOME/ashell/config.toml`. For available settings see - . + . ''; }; @@ -69,7 +69,7 @@ in ]; home.packages = lib.mkIf (cfg.package != null) [ cfg.package ]; - xdg.configFile."ashell.yml" = lib.mkIf (cfg.settings != { }) { + xdg.configFile."ashell/config.toml" = lib.mkIf (cfg.settings != { }) { source = settingsFormat.generate "ashell-config" cfg.settings; }; }