mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
A module for configuring Wayprompt¹, a password-prompter for Wayland, that can be used as a pinentry program for GnuPG (and more). Provides a 'programs.wayprompt.settings', following RFC 42². ¹: https://git.sr.ht/~leon_plickat/wayprompt ²: https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md
29 lines
543 B
Nix
29 lines
543 B
Nix
{
|
|
config,
|
|
...
|
|
}:
|
|
|
|
{
|
|
programs.wayprompt = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { };
|
|
settings = {
|
|
group = {
|
|
some-integer = 42;
|
|
some-string = "foo:bar=37";
|
|
};
|
|
band = {
|
|
sunrise = "F7CD5D";
|
|
sunset = "fad6a5";
|
|
white-with-alpha = "ffffff00";
|
|
};
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
local configFile=home-files/.config/wayprompt/config.ini
|
|
|
|
assertFileExists $configFile
|
|
assertFileContent $configFile ${./example-settings-expected.ini}
|
|
'';
|
|
}
|