mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Use lib.singleton when convenient
This commit is contained in:
parent
dd3c11d88b
commit
464b6a7850
6 changed files with 34 additions and 46 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue