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" "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": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1771419570, "lastModified": 1771419570,
@ -1523,6 +1539,7 @@
"nixGL": "nixGL", "nixGL": "nixGL",
"nixd": "nixd", "nixd": "nixd",
"nixpkgs": "nixpkgs_14", "nixpkgs": "nixpkgs_14",
"nixpkgs-r": "nixpkgs-r",
"nixpkgs-stable": "nixpkgs-stable_2", "nixpkgs-stable": "nixpkgs-stable_2",
"nixpkgs-wayland": "nixpkgs-wayland", "nixpkgs-wayland": "nixpkgs-wayland",
"nixvim": "nixvim", "nixvim": "nixvim",

View file

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

View file

@ -5,11 +5,11 @@
... ...
}: }:
let 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; colors = config.lib.stylix.colors.withHashtag;
rPkgs = rPkgs =
with pkgs-stable.rPackages; with pkgs-r.rPackages;
with pkgs-stable; with pkgs-r;
[ [
ggplot2 ggplot2
dplyr dplyr
@ -99,10 +99,10 @@ let
]; ];
}) })
]; ];
myR = pkgs-stable.rWrapper.override { myR = pkgs-r.rWrapper.override {
packages = rPkgs; packages = rPkgs;
}; };
myRstudio = pkgs-stable.rstudioWrapper.override { myRstudio = pkgs-r.rstudioWrapper.override {
packages = rPkgs; packages = rPkgs;
}; };
in in

View file

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

View file

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