ashell: support yaml and toml config
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
f62e9a8114
commit
650a38ebe8
11 changed files with 226 additions and 6 deletions
34
tests/modules/programs/ashell/basic-yaml-config.nix
Normal file
34
tests/modules/programs/ashell/basic-yaml-config.nix
Normal 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}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue