Files
home-manager/tests/modules/programs/yopass/settings.nix
Santhosh Raju a26f7158fb yopass: add module
Adds programs.yopass for managing the yopass CLI configuration file
(~/.config/yopass/defaults.yml), with an NMT test verifying the
generated settings.

Assisted-by: Claude Fable 5
2026-09-21 10:07:57 +02:00

20 lines
399 B
Nix

{
programs.yopass = {
enable = true;
settings = {
api = "https://api.example.com";
url = "https://example.com";
"one-time" = false;
expiration = "1d";
};
};
test.stubs.yopass = { };
nmt.script = ''
assertFileExists home-files/.config/yopass/defaults.yml
assertFileContent home-files/.config/yopass/defaults.yml \
${./settings.yml}
'';
}