1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00
home-manager/tests/modules/programs/mise/nushell-integration.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

22 lines
549 B
Nix

{ config, ... }:
{
programs = {
mise = {
package = config.lib.test.mkStubPackage { name = "mise"; };
enable = true;
enableNushellIntegration = true;
};
nushell.enable = true;
};
nmt.script = ''
assertFileContains home-files/.config/nushell/env.nu \
'
let mise_path = $nu.default-config-dir | path join mise.nu
^mise activate nu | save $mise_path --force
'
assertFileContains home-files/.config/nushell/config.nu \
'use ($nu.default-config-dir | path join mise.nu)'
'';
}