Skip to content

Commit 709a9e4

Browse files
committed
refactor(emulation): simplify retroarch enable conditional
Replace if/then with mkDefault on both branches by a single lib.mkDefault (!cfg.retroarchFull); identical merge semantics.
1 parent e4b78ab commit 709a9e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/home/suites/emulation/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ in
4343
programs = {
4444
graphical = {
4545
apps = {
46-
retroarch.enable = if cfg.retroarchFull then lib.mkDefault false else lib.mkDefault true;
46+
retroarch.enable = lib.mkDefault (!cfg.retroarchFull);
4747
};
4848
};
4949
};

0 commit comments

Comments
 (0)