ashell: new ashell 0.5.0 config standards

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Dan Lock
2025-06-27 11:01:14 +01:00
committed by Austin Horstman
parent e8da7372fd
commit a4fc77c63d
2 changed files with 17 additions and 4 deletions

View File

@@ -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.
'';
}

View File

@@ -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
<https://github.com/MalpenZibo/ashell/tree/0.4.1?tab=readme-ov-file#configuration>.
<https://github.com/MalpenZibo/ashell/tree/0.5.0?tab=readme-ov-file#configuration>.
'';
};
@@ -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;
};
}