mirror of
https://github.com/EdenQwQ/nixos.git
synced 2025-12-26 10:14:58 +08:00
add R
This commit is contained in:
parent
7ec03b1d88
commit
bfeebbb7fc
3 changed files with 28 additions and 18 deletions
|
|
@ -3,11 +3,13 @@ let
|
|||
colors = config.lib.stylix.colors.withHashtag;
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
(
|
||||
import ../../../pkgs/rstudio.nix pkgs
|
||||
|> config.lib.misc.addFlags "--enable-features=UseOzonePlatform --ozone-platform=wayland --use-gl=angle --wayland-text-input-version=3" "rstudio"
|
||||
home.packages = with (import ../../../pkgs/R.nix pkgs); [
|
||||
(config.lib.misc.addFlags
|
||||
"--enable-features=UseOzonePlatform --ozone-platform=wayland --use-gl=angle --wayland-text-input-version=3"
|
||||
"rstudio"
|
||||
myRstudio
|
||||
)
|
||||
myR
|
||||
];
|
||||
xdg.configFile."rstudio/themes/stylix.rstheme".text = with colors; ''
|
||||
/* rsthemes 0.5.0 */
|
||||
|
|
|
|||
22
pkgs/R.nix
Normal file
22
pkgs/R.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
pkgs:
|
||||
let
|
||||
rPkgs = with pkgs.rPackages; [
|
||||
ggplot2
|
||||
dplyr
|
||||
tidyverse
|
||||
bruceR
|
||||
afex
|
||||
ggpubr
|
||||
reshape2
|
||||
rmdformats
|
||||
see
|
||||
];
|
||||
in
|
||||
{
|
||||
myR = pkgs.rWrapper.override {
|
||||
packages = rPkgs;
|
||||
};
|
||||
myRstudio = pkgs.rstudioWrapper.override {
|
||||
packages = rPkgs;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
pkgs:
|
||||
pkgs.rstudioWrapper.override {
|
||||
packages = with pkgs.rPackages; [
|
||||
ggplot2
|
||||
dplyr
|
||||
tidyverse
|
||||
bruceR
|
||||
afex
|
||||
ggpubr
|
||||
reshape2
|
||||
rmdformats
|
||||
see
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue