1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 16:41:04 +01:00
home-manager/tests/modules/programs/tealdeer/custom-settings.nix
Austin Horstman cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00

35 lines
902 B
Nix

{ config, pkgs, ... }:
{
config = {
programs.tealdeer = {
package = config.lib.test.mkStubPackage { name = "tldr"; };
enable = true;
settings = {
updates = {
auto_update = true;
auto_update_interval_hours = 72;
};
display = {
use_pager = false;
};
};
};
nmt.script =
let
expectedConfDir = if pkgs.stdenv.isDarwin then "Library/Application Support" else ".config";
expectedConfigPath = "home-files/${expectedConfDir}/tealdeer/config.toml";
in
''
assertFileExists "${expectedConfigPath}"
assertFileContent "${expectedConfigPath}" ${pkgs.writeText "tealdeer.config-custom.expected" ''
[display]
use_pager = false
[updates]
auto_update = true
auto_update_interval_hours = 72
''}
'';
};
}