From eba6982552388d40ef40d5a36845a3f4cb99933a Mon Sep 17 00:00:00 2001 From: Laurent Gueret Date: Sat, 14 Feb 2026 07:43:00 +0100 Subject: [PATCH] Add R env --- hosts/darwin/home/alistreaza.nix | 2 ++ modules/home/common/env/r.nix | 22 ++++++++++++++++++++++ modules/home/common/env/rust.nix | 4 ++++ 3 files changed, 28 insertions(+) create mode 100644 modules/home/common/env/r.nix diff --git a/hosts/darwin/home/alistreaza.nix b/hosts/darwin/home/alistreaza.nix index 6a36620..a6cf846 100644 --- a/hosts/darwin/home/alistreaza.nix +++ b/hosts/darwin/home/alistreaza.nix @@ -18,6 +18,8 @@ home.env.jdk.enable = true; home.env.python.enable = true; + home.env.rust.enable = true; + home.env.r.enable = true; # No Home Application Folders targets.darwin.linkApps.enable = false; diff --git a/modules/home/common/env/r.nix b/modules/home/common/env/r.nix new file mode 100644 index 0000000..b3fe534 --- /dev/null +++ b/modules/home/common/env/r.nix @@ -0,0 +1,22 @@ +{ + pkgs, + lib, + config, + ... +}: +with lib; +let + cfg = config.home.env.r; +in +{ + options.home.env.r = { + enable = mkEnableOption "Zen Editor options"; + }; + config = mkIf cfg.enable { + + home.packages = with pkgs; [ + R + ]; + + }; +} diff --git a/modules/home/common/env/rust.nix b/modules/home/common/env/rust.nix index 6afef6c..8c3ba64 100644 --- a/modules/home/common/env/rust.nix +++ b/modules/home/common/env/rust.nix @@ -18,5 +18,9 @@ in rustup ]; + home.sessionVariables = { + RUSTUP_HOME = ".rustup"; + }; + }; }