1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00
home-manager/tests/modules/programs/ashell/camelcase-migration.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

37 lines
839 B
Nix

{ pkgs, ... }:
let
ashellPackage = pkgs.runCommand "ashell-0.5.0" { } ''
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 = [ "WindowTitle" ];
right = [ "SystemInfo" ];
};
workspaces = {
visibilityMode = "MonitorSpecific";
showEmpty = true;
};
systemInfo = {
refreshRate = 1000;
showCpu = true;
showMemory = true;
};
};
};
test.asserts.warnings.enable = true;
nmt.script = ''
assertFileExists home-files/.config/ashell/config.toml
assertFileContent home-files/.config/ashell/config.toml ${./camelcase-migration-expected.toml}
'';
}