Use lib.singleton when convenient

This commit is contained in:
SebastianStork 2025-10-21 21:10:53 +02:00
parent dd3c11d88b
commit 464b6a7850
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
6 changed files with 34 additions and 46 deletions

View file

@ -8,12 +8,10 @@
options.custom.services.cliphist.enable = lib.mkEnableOption "";
config = lib.mkIf config.custom.services.cliphist.enable {
assertions = [
{
assertion = config.custom.programs.rofi.enable;
message = "Cliphist requires Rofi.";
}
];
assertions = lib.singleton {
assertion = config.custom.programs.rofi.enable;
message = "Cliphist requires Rofi.";
};
services.cliphist = {
enable = true;