make home manager optional

This commit is contained in:
Vinzenz Schroeter 2023-09-11 18:46:47 +02:00
parent e65ba7c8a6
commit 69026cb461
3 changed files with 10 additions and 9 deletions

View file

@ -1,7 +1,7 @@
{lib, ...}: {
mkIfElse = p: yes: no:
lib.mkMerge [
(mkIf p yes)
(mkIf (!p) no)
(lib.mkIf p yes)
(lib.mkIf (!p) no)
];
}