1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-20 10:09:45 +01:00
home-manager/tests/modules/programs/oh-my-posh/nushell.nix

30 lines
635 B
Nix
Raw Normal View History

2023-11-15 10:44:42 +01:00
{ ... }:
{
programs = {
nushell.enable = true;
oh-my-posh = {
enable = true;
useTheme = "jandedobbeleer";
};
};
test.stubs = {
oh-my-posh = { };
nushell = { };
};
nmt.script = ''
assertFileExists home-files/.config/nushell/env.nu
assertFileRegex \
home-files/.config/nushell/env.nu \
'/bin/oh-my-posh init nu --config .*--print \| save --force /.*/home-files/\.cache/oh-my-posh/init\.nu'
assertFileExists home-files/.config/nushell/config.nu
assertFileRegex \
home-files/.config/nushell/config.nu \
'source /.*/\.cache/oh-my-posh/init\.nu'
'';
}