This commit is contained in:
EdenQwQ 2025-03-09 21:36:10 +08:00
parent 7ec03b1d88
commit bfeebbb7fc
3 changed files with 28 additions and 18 deletions

View file

@ -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
View 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;
};
}

View file

@ -1,14 +0,0 @@
pkgs:
pkgs.rstudioWrapper.override {
packages = with pkgs.rPackages; [
ggplot2
dplyr
tidyverse
bruceR
afex
ggpubr
reshape2
rmdformats
see
];
}