mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
ashell: new ashell 0.5.0 config standards
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
committed by
Austin Horstman
parent
e8da7372fd
commit
a4fc77c63d
13
modules/misc/news/2025/06/2025-06-27_18-53-10.nix
Normal file
13
modules/misc/news/2025/06/2025-06-27_18-53-10.nix
Normal 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.
|
||||
'';
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user