Files
home-manager/tests/modules/programs/tealdeer/default-settings.nix
K900 0668fdbc15 treewide: stdenv.is* -> stdenv.hostPlatform.is*
Nixpkgs officialy deprecated the former.
2026-08-13 08:40:58 +02:00

20 lines
480 B
Nix

{ config, pkgs, ... }:
{
config = {
programs.tealdeer = {
package = config.lib.test.mkStubPackage { name = "tldr"; };
enable = true;
};
nmt.script =
let
expectedConfDir =
if pkgs.stdenv.hostPlatform.isDarwin then "Library/Application Support" else ".config";
expectedConfigPath = "home-files/${expectedConfDir}/tealdeer/config.toml";
in
''
assertPathNotExists "${expectedConfigPath}"
'';
};
}