1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

tests/atuin: add theme test

This commit is contained in:
isabel 2025-04-17 15:23:14 +01:00 committed by Austin Horstman
parent 88e6187364
commit e72178b84e
2 changed files with 27 additions and 0 deletions

View file

@ -6,5 +6,6 @@
atuin-no-shell = ./no-shell.nix;
atuin-zsh = ./zsh.nix;
atuin-set-flags = ./set-flags.nix;
atuin-theme = ./theme.nix;
atuin-nushell = ./nushell.nix;
}

View file

@ -0,0 +1,26 @@
{
programs.atuin = {
enable = true;
themes.my-theme = {
theme.name = "My Theme";
colors = {
Base = "#000000";
Title = "#FFFFFF";
};
};
};
nmt.script = ''
assertFileContent \
home-files/.config/atuin/themes/my-theme.toml \
${builtins.toFile "example-theme-expected.toml" ''
[colors]
Base = "#000000"
Title = "#FFFFFF"
[theme]
name = "My Theme"
''}
'';
}