mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
(cherry picked from commit 3cb08dd360)
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
27 lines
575 B
Nix
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}"
|
|
'';
|
|
}
|