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"; + }; + }; }