diff --git a/tests/modules/programs/atuin/default.nix b/tests/modules/programs/atuin/default.nix index 084439469..897c0c7f0 100644 --- a/tests/modules/programs/atuin/default.nix +++ b/tests/modules/programs/atuin/default.nix @@ -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; } diff --git a/tests/modules/programs/atuin/theme.nix b/tests/modules/programs/atuin/theme.nix new file mode 100644 index 000000000..1d1caaa37 --- /dev/null +++ b/tests/modules/programs/atuin/theme.nix @@ -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" + ''} + ''; +}