From b53177de3d305f35c68165a97193e15f36cb0830 Mon Sep 17 00:00:00 2001 From: BarrOff <58253563+BarrOff@users.noreply.github.com> Date: Sat, 24 Aug 2024 22:02:54 +0200 Subject: [PATCH] nix: add nix.package to home.packages Add nix.package to home.packages if nix.package is not null. --- modules/misc/nix.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/misc/nix.nix b/modules/misc/nix.nix index 652d3eb89..3c7e8e933 100644 --- a/modules/misc/nix.nix +++ b/modules/misc/nix.nix @@ -276,6 +276,8 @@ in { }; config = mkIf cfg.enable (mkMerge [ + (mkIf (cfg.package != null) { home.packages = [ cfg.package ]; }) + (mkIf (cfg.nixPath != [ ] && !cfg.keepOldNixPath) { home.sessionVariables.NIX_PATH = "${nixPath}"; })