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; }; }