mirror of
https://github.com/nix-community/home-manager
synced 2024-12-22 02:53:16 +00:00
29 lines
635 B
Nix
29 lines
635 B
Nix
{ ... }:
|
|
|
|
{
|
|
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'
|
|
'';
|
|
}
|