downgrade R

This commit is contained in:
EdenQwQ 2026-02-27 10:39:53 +08:00
parent aa4dc038cb
commit 26fb9da737
5 changed files with 26 additions and 6 deletions

17
flake.lock generated
View file

@ -962,6 +962,22 @@
"type": "github"
}
},
"nixpkgs-r": {
"locked": {
"lastModified": 1767313136,
"narHash": "sha256-16KkgfdYqjaeRGBaYsNrhPRRENs0qzkQVUooNHtoy2w=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ac62194c3917d5f474c1a844b6fd6da2db95077d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1771419570,
@ -1523,6 +1539,7 @@
"nixGL": "nixGL",
"nixd": "nixd",
"nixpkgs": "nixpkgs_14",
"nixpkgs-r": "nixpkgs-r",
"nixpkgs-stable": "nixpkgs-stable_2",
"nixpkgs-wayland": "nixpkgs-wayland",
"nixvim": "nixvim",

View file

@ -48,6 +48,7 @@
inputs = {
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
nixpkgs-r.url = "github:NixOS/nixpkgs/nixos-25.05";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -5,11 +5,11 @@
...
}:
let
pkgs-stable = inputs.nixpkgs-stable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
pkgs-r = inputs.nixpkgs-r.legacyPackages.${pkgs.stdenv.hostPlatform.system};
colors = config.lib.stylix.colors.withHashtag;
rPkgs =
with pkgs-stable.rPackages;
with pkgs-stable;
with pkgs-r.rPackages;
with pkgs-r;
[
ggplot2
dplyr
@ -99,10 +99,10 @@ let
];
})
];
myR = pkgs-stable.rWrapper.override {
myR = pkgs-r.rWrapper.override {
packages = rPkgs;
};
myRstudio = pkgs-stable.rstudioWrapper.override {
myRstudio = pkgs-r.rstudioWrapper.override {
packages = rPkgs;
};
in

View file

@ -33,6 +33,7 @@ let
# awww restore --namespace "backdrop"
mihomo -d ~/.config/clash &
wlsunset -s 00:00 -S 00:00 -t 5000 -T 5001 &
sleep 0.2
''
+ (
builtins.attrNames config.monitors
@ -54,7 +55,7 @@ let
caelestia scheme set -n dynamic -m dark
''
else
''''
""
);
};
in

View file

@ -6,6 +6,7 @@
permittedInsecurePackages = [
"openssl-1.1.1w"
"electron-19.1.9"
"electron-36.9.5"
];
allowUnsupportedSystem = true;
};