colorscheme: style darkreader; coding: add rstudio

This commit is contained in:
EdenQwQ 2025-03-09 19:57:19 +08:00
parent 7f4b4214fc
commit 7a4adf172d
4 changed files with 2733 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, config, ... }:
let let
in in
# firefox-gnome-theme = builtins.fetchGit { # firefox-gnome-theme = builtins.fetchGit {
@ -34,6 +34,17 @@ in
"browser.tabs.drawInTitlebar" = true; "browser.tabs.drawInTitlebar" = true;
"svg.context-properties.content.enabled" = true; "svg.context-properties.content.enabled" = true;
}; };
extensions.force = true;
extensions.settings."addon@darkreader.org".settings.theme =
with config.lib.stylix.colors.withHashtag; {
fontFamily = config.stylix.fonts.sansSerif.name;
lightSchemeBackgroundColor = base00;
darkSchemeBackgroundColor = base00;
lightSchemeTextColor = base05;
darkSchemeTextColor = base05;
selectionColor = base0D;
};
}; };
}; };
stylix.targets.firefox.enable = true; stylix.targets.firefox.enable = true;

2695
home/programs/coding/R.nix Normal file

File diff suppressed because it is too large Load diff

View file

@ -6,5 +6,6 @@
./neovide.nix ./neovide.nix
./zed.nix ./zed.nix
./nixvim ./nixvim
./R.nix
]; ];
} }

25
pkgs/rstudio.nix Normal file
View file

@ -0,0 +1,25 @@
pkgs:
let
myRstudio = pkgs.rstudioWrapper.override {
packages = with pkgs.rPackages; [
ggplot2
dplyr
tidyverse
bruceR
afex
ggpubr
reshape2
rmdformats
see
];
};
in
pkgs.symlinkJoin {
name = "rstudio-wrapped";
paths = [ myRstudio ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/rstudio --add-flags \
"--enable-features=UseOzonePlatform --ozone-platform=wayland --use-gl=angle"
'';
}