ashell: support yaml and toml config

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-06-29 17:17:51 -05:00
parent f62e9a8114
commit 650a38ebe8
11 changed files with 226 additions and 6 deletions

View file

@ -0,0 +1,34 @@
{ pkgs, ... }:
let
ashellPackage = pkgs.runCommand "ashell-0.4.1" { } ''
mkdir -p $out/bin
echo '#!/bin/sh' > $out/bin/ashell
chmod +x $out/bin/ashell
'';
in
{
programs.ashell = {
enable = true;
package = ashellPackage;
settings = {
modules = {
left = [ "Workspaces" ];
center = [ "Window Title" ];
right = [
"SystemInfo"
"Clock"
];
};
workspaces = {
visibilityMode = "MonitorSpecific";
showEmpty = true;
};
};
};
nmt.script = ''
assertFileExists home-files/.config/ashell.yml
assertFileContent home-files/.config/ashell.yml ${./basic-yaml-config-expected.yml}
'';
}