1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 13:39:46 +01:00
home-manager/tests/modules/programs/tealdeer/default-settings.nix

19 lines
457 B
Nix
Raw Normal View History

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