Files
K900 0668fdbc15 treewide: stdenv.is* -> stdenv.hostPlatform.is*
Nixpkgs officialy deprecated the former.
2026-08-13 08:40:58 +02:00

31 lines
579 B
Nix

{
lib,
pkgs,
realPkgs,
config,
...
}:
{
programs = {
carapace.enable = true;
nushell.enable = true;
};
_module.args.pkgs = lib.mkForce realPkgs;
nmt.script =
let
configDir =
if pkgs.stdenv.hostPlatform.isDarwin && !config.xdg.enable then
"home-files/Library/Application Support/nushell"
else
"home-files/.config/nushell";
in
''
assertFileExists "${configDir}/config.nu"
assertFileRegex "${configDir}/config.nu" \
'source /nix/store/[^/]*-carapace-nushell-config.nu'
'';
}