🐛 Fix incorrect usage of mkIf (oops)
Some checks failed
Trufflehog: check for exposed secrets / Run trufflehog (push) Has been cancelled
Nix: check for unused code / Run deadnix (push) Has been cancelled
Nix: validate flake.lock / Check Lockfile (push) Has been cancelled
Nix: validate flake / Validate x86_64-linux (push) Has been cancelled

This commit is contained in:
Jo 2025-12-16 03:19:58 +01:00
parent d01579f0a4
commit e5cf3d49ad

View file

@ -135,28 +135,21 @@ in
} }
]; ];
extraPackages = with pkgs; [ extraPackages =
### Nix with pkgs;
(mkIf cfg.enable-nix [ [ oxlint ]
++ lib.optionals cfg.enable-nix [
nixd nixd
nixfmt-rfc-style nixfmt-rfc-style
]) ]
++ lib.optionals cfg.enable-python [
### Python
(mkIf cfg.enable-python [
python3Packages.python-lsp-server python3Packages.python-lsp-server
]) ]
++ lib.optionals cfg.enable-php [
### PHP
(mkIf cfg.enable-php [
php php
phpPackages.composer phpPackages.composer
pretty-php pretty-php
]) ];
### TypeScript/JavaScript
oxlint
];
}; };
}; };
} }