dotfiles/root-conf/nixos/optional-packages.nix
Katzenkralle 1c638568d3 added nix
2025-05-10 23:28:55 +02:00

16 lines
334 B
Nix

{ pkgs }:
let
yolkPath = ./local-pkgs/yolk/default.nix;
yolk = if builtins.pathExists yolkPath then
let imp = builtins.tryEval (import yolkPath { inherit pkgs; });
in if imp.success then imp.value else null
else
null;
in
# Return a list of extra packages (possibly empty)
builtins.filter (x: x != null) [
yolk
]