Add R env

This commit is contained in:
2026-02-14 07:43:00 +01:00
parent a984aa289c
commit eba6982552
3 changed files with 28 additions and 0 deletions
+2
View File
@@ -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;
+22
View File
@@ -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
];
};
}
+4
View File
@@ -18,5 +18,9 @@ in
rustup
];
home.sessionVariables = {
RUSTUP_HOME = ".rustup";
};
};
}