refactor(nixos): inline module enable conditions

This commit was merged in pull request #134.
This commit is contained in:
alexion committed 2026-10-06 22:26:47 -04:00
1 parent d53246caf0
commit f48bac5ec1
33 files changed
+33 -78

No files matched your search

+1 -2
View File
@@ -6,13 +6,12 @@
}:
# Yazi, a terminal file manager.
let
cfg = config.modules.shell.yazi; # NOLINT(let_order)
user = config.user.name;
in
{
options.modules.shell.yazi.enable = lib.mkEnableOption "Yazi, a terminal file manager";
config = lib.mkIf cfg.enable {
config = lib.mkIf config.modules.shell.yazi.enable {
home-manager.users.${user}.programs.yazi = {
enable = true;
enableFishIntegration = true;