From 5bdc2b80ec954127491925cde06c107b4b23ef28 Mon Sep 17 00:00:00 2001 From: Laurent Gueret Date: Sat, 14 Feb 2026 10:15:54 +0100 Subject: [PATCH] Add nix env --- hosts/darwin/home/alistreaza.nix | 9 ++++++--- modules/home/common/env/nix.nix | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 modules/home/common/env/nix.nix diff --git a/hosts/darwin/home/alistreaza.nix b/hosts/darwin/home/alistreaza.nix index a6cf846..9197e36 100644 --- a/hosts/darwin/home/alistreaza.nix +++ b/hosts/darwin/home/alistreaza.nix @@ -16,10 +16,13 @@ home.shell.git.enable = true; home.shell.neovim.enable = true; - home.env.jdk.enable = true; - home.env.python.enable = true; - home.env.rust.enable = true; + home.env.nix.enable = true; + home.env.r.enable = true; + home.env.jdk.enable = true; + home.env.rust.enable = true; + home.env.python.enable = true; + # No Home Application Folders targets.darwin.linkApps.enable = false; diff --git a/modules/home/common/env/nix.nix b/modules/home/common/env/nix.nix new file mode 100644 index 0000000..9947f7d --- /dev/null +++ b/modules/home/common/env/nix.nix @@ -0,0 +1,23 @@ +{ + pkgs, + lib, + config, + ... +}: +with lib; +let + cfg = config.home.env.nix; +in +{ + options.home.env.nix = { + enable = mkEnableOption "Zen Editor options"; + }; + config = mkIf cfg.enable { + + home.packages = with pkgs; [ + nil + nixd + ]; + + }; +}