mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
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
20 lines
399 B
Nix
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}
|
|
'';
|
|
}
|