1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 08:31:03 +01:00
home-manager/tests/modules/programs/nvchecker/basic-config.nix
2025-09-18 21:36:47 -05:00

27 lines
575 B
Nix

{ pkgs, ... }:
let
configDir =
if pkgs.stdenv.hostPlatform.isDarwin then
"Library/Application Support/nvchecker"
else
".config/nvchecker";
in
{
programs.nvchecker = {
enable = true;
settings = {
__config__ = {
keyfile = "keyfile.toml";
};
nvchecker = {
source = "github";
github = "lilydjwg/nvchecker";
};
};
};
nmt.script = ''
assertFileExists "home-files/${configDir}/nvchecker.toml"
assertFileContent "home-files/${configDir}/nvchecker.toml" "${./basic-config.toml}"
'';
}