refactor wallpaper

This commit is contained in:
EdenQwQ 2026-03-27 23:56:14 +08:00
parent c33286e661
commit f9ff6c6bc4
7 changed files with 68 additions and 53 deletions

View file

@ -35,6 +35,8 @@
ALL_PROXY = "http://127.0.0.1:7890";
HTTP_PROXY = "http://127.0.0.1:7890";
HTTPS_PROXY = "http://127.0.0.1:7890";
http_PROXY = "http://127.0.0.1:7890";
https_PROXY = "http://127.0.0.1:7890";
NIXPKGS_ALLOW_UNFREE = "1";
NIXPKGS_ALLOW_INSECURE = "1";
};

View file

@ -30,7 +30,8 @@ let
// (
if path == null then
{
path = "${pkgs.wallpapers}/${name}";
path =
pkgs.wallpapers.byName.${name} or (throw "Wallpaper '${name}' not found in pkgs.wallpapers.byName");
}
else
{ inherit path; }

View file

@ -59,6 +59,11 @@ let
NetworkComparisonTest
rPackages.pls
rPackages.MASS
igraph
ggraph
tidygraph
corrr
relaimpo
(buildRPackage {
name = "eegUtils";
src = fetchFromGitHub {

View file

@ -33,7 +33,7 @@
input = {
focus-follows-mouse.enable = true;
touchpad.natural-scroll = false;
touchpad.dwt = false;
touchpad.dwt = true;
keyboard.xkb.options = "caps:escape";
};
environment = {

View file

@ -12,7 +12,7 @@
{
name = "frieren-butterflies-hydrogen.jpg";
baseImageName = "frieren-butterflies";
path = "${pkgs.wallpapers}/frieren-butterflies.jpg";
path = pkgs.wallpapers.byName."frieren-butterflies.jpg";
convertMethod = "lutgen";
effects = {
hydrogen = {
@ -45,7 +45,7 @@
{
name = "bangqiaoyan-girl-sky-hydrogen.jpg";
baseImageName = "bangqiaoyan-girl-sky";
path = "${pkgs.wallpapers}/bangqiaoyan-girl-sky.jpg";
path = pkgs.wallpapers.byName."bangqiaoyan-girl-sky.jpg";
convertMethod = "gonord";
effects.hydrogen.enable = true;
}