1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 09:09:45 +01:00
home-manager/tests/modules/programs/tealdeer/default-settings.nix
Nikita Pedorich a54e05bc12
tealdeer: module improvements
- Cache update on HM activation removed
- freeformType settings
- More tests added
- Platform-dependent tests
- Maintainer added
2024-02-18 23:14:41 +01:00

18 lines
457 B
Nix

{ 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}"
'';
};
}