1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-03 07:31:03 +01:00
home-manager/tests/modules/programs/ashell/basic-yaml-config.nix
Austin Horstman 650a38ebe8 ashell: support yaml and toml config
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-05 00:26:25 -05:00

34 lines
709 B
Nix

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