diff --git a/flake.nix b/flake.nix index 2a03c56e..91187b68 100644 --- a/flake.nix +++ b/flake.nix @@ -82,6 +82,9 @@ zxorm = { url = "github:CHN-beta/zxorm"; flake = false; }; openxlsx = { url = "github:troldal/OpenXLSX"; flake = false; }; sqlite-orm = { url = "github:fnc12/sqlite_orm"; flake = false; }; + + # does not support lfs yet + # nixos-wallpaper = { url = "git+https://git.chn.moe/chn/nixos-wallpaper.git"; flake = false; }; }; outputs = inputs: diff --git a/modules/user/chn/plasma/wallpaper.nix b/modules/user/chn/plasma/wallpaper.nix new file mode 100644 index 00000000..43f107bd --- /dev/null +++ b/modules/user/chn/plasma/wallpaper.nix @@ -0,0 +1,28 @@ +inputs: +{ + config.home-manager.users.chn.config.programs.plasma.configFile = + let + nixos-wallpaper = inputs.pkgs.fetchgit + { + url = "https://git.chn.moe/chn/nixos-wallpaper.git"; + rev = "1ad78b20b21c9f4f7ba5f4c897f74276763317eb"; + sha256 = "0faahbzsr44bjmwr6508wi5hg59dfb57fzh5x6jh7zwmv4pzhqlb"; + fetchLFS = true; + }; + wallpaper = + { + pc = "${nixos-wallpaper}/pixiv-117612023.png"; + surface = "${nixos-wallpaper}/misskey.io-9rr96ml6nti300ds-x4.png"; + }.${inputs.config.nixos.system.networking.hostname} or "${nixos-wallpaper}/pixiv-96734339-x2.png"; + in + { + "plasma-org.kde.plasma.desktop-appletsrc" = + { + "Containments/1".wallpaperplugin.value = "a2n.blur"; + "Containments/1/Wallpaper/a2n.blur.General".Image.value = wallpaper; + }; + kscreenlockerrc."Greeter/Wallpaper/org.kde.image.General" = + { Image.value = wallpaper; PreviewImage.value = wallpaper; }; + kdeglobals.General.accentColorFromWallpaper.value = true; + }; +} diff --git a/modules/user/chn/plasma/wallpaper/default.nix b/modules/user/chn/plasma/wallpaper/default.nix deleted file mode 100644 index c50f6092..00000000 --- a/modules/user/chn/plasma/wallpaper/default.nix +++ /dev/null @@ -1,20 +0,0 @@ -inputs: -{ - config.home-manager.users.chn.config.programs.plasma.configFile = - let wallpaper = - { - pc = ./pixiv-117612023.png; - surface = ./misskey.io-9rr96ml6nti300ds-x4.png; - }.${inputs.config.nixos.system.networking.hostname} or ./pixiv-96734339-x2.png; - in - { - "plasma-org.kde.plasma.desktop-appletsrc" = - { - "Containments/1".wallpaperplugin.value = "a2n.blur"; - "Containments/1/Wallpaper/a2n.blur.General".Image.value = "${wallpaper}"; - }; - kscreenlockerrc."Greeter/Wallpaper/org.kde.image.General" = - { Image.value = "${wallpaper}"; PreviewImage.value = "${wallpaper}"; }; - kdeglobals.General.accentColorFromWallpaper.value = true; - }; -} diff --git a/modules/user/chn/plasma/wallpaper/fanbox-5405326-x4-chop.png b/modules/user/chn/plasma/wallpaper/fanbox-5405326-x4-chop.png deleted file mode 100644 index c6ff4c4f..00000000 --- a/modules/user/chn/plasma/wallpaper/fanbox-5405326-x4-chop.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:494d701e73f8be890d8693d811f08f4546e204803a022166531b1448fe8b1101 -size 11509072 diff --git a/modules/user/chn/plasma/wallpaper/fanbox-5405326.png b/modules/user/chn/plasma/wallpaper/fanbox-5405326.png deleted file mode 100644 index 8eb15621..00000000 --- a/modules/user/chn/plasma/wallpaper/fanbox-5405326.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:34c9af18ce3e042177a4145bb3a7ac8b600a6af898e4a2f84a374a9a53579b26 -size 1523099 diff --git a/modules/user/chn/plasma/wallpaper/fanbox-6682738.png b/modules/user/chn/plasma/wallpaper/fanbox-6682738.png deleted file mode 100644 index 26a273f8..00000000 --- a/modules/user/chn/plasma/wallpaper/fanbox-6682738.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:110cb4e3f4a064f3b171aa0d3306a97af7327826e44a681912e04f83302e3065 -size 18491980 diff --git a/modules/user/chn/plasma/wallpaper/misskey.io-9rr96ml6nti300ds-x4.png b/modules/user/chn/plasma/wallpaper/misskey.io-9rr96ml6nti300ds-x4.png deleted file mode 100644 index fae51eb7..00000000 --- a/modules/user/chn/plasma/wallpaper/misskey.io-9rr96ml6nti300ds-x4.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4cdd9be7a7a8372de8438ef8bb72c2870805b896a4fa0b155f9f71f98854a3ca -size 7242722 diff --git a/modules/user/chn/plasma/wallpaper/misskey.io-9rr96ml6nti300ds.webp b/modules/user/chn/plasma/wallpaper/misskey.io-9rr96ml6nti300ds.webp deleted file mode 100644 index 3c09514a..00000000 --- a/modules/user/chn/plasma/wallpaper/misskey.io-9rr96ml6nti300ds.webp +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:70ebe8ae592eb3d6af912ce0c8228c4ddbfa0e05045c8cdb27db79f2dbfede17 -size 113526 diff --git a/modules/user/chn/plasma/wallpaper/pixiv-111392869.png b/modules/user/chn/plasma/wallpaper/pixiv-111392869.png deleted file mode 100644 index 012981c0..00000000 --- a/modules/user/chn/plasma/wallpaper/pixiv-111392869.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cfed0a903fd0abf74735d70653d478fbc8642e76c9ebc94c96be1971a12c4566 -size 10330782 diff --git a/modules/user/chn/plasma/wallpaper/pixiv-116547323.jpg b/modules/user/chn/plasma/wallpaper/pixiv-116547323.jpg deleted file mode 100644 index 1ccc9185..00000000 --- a/modules/user/chn/plasma/wallpaper/pixiv-116547323.jpg +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ff5f7c0761279e601af68ba725e4780583ac60a1cbb94433e9ae0e73576259c1 -size 999599 diff --git a/modules/user/chn/plasma/wallpaper/pixiv-117612023.png b/modules/user/chn/plasma/wallpaper/pixiv-117612023.png deleted file mode 100644 index 4c2b7d9e..00000000 --- a/modules/user/chn/plasma/wallpaper/pixiv-117612023.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:76b4dbf30fa91a029f507c76cbc088b97e022d5e0d801bb5cef12ea5e6fd4233 -size 10869637 diff --git a/modules/user/chn/plasma/wallpaper/pixiv-84287955.png b/modules/user/chn/plasma/wallpaper/pixiv-84287955.png deleted file mode 100644 index 1d05d39d..00000000 --- a/modules/user/chn/plasma/wallpaper/pixiv-84287955.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96f8a2325b99943c8d124e99f1bde2b75bbeb8066aeeb76c4ee69570495d66c6 -size 2336596 diff --git a/modules/user/chn/plasma/wallpaper/pixiv-96734339-x2.png b/modules/user/chn/plasma/wallpaper/pixiv-96734339-x2.png deleted file mode 100644 index e3a2a69f..00000000 --- a/modules/user/chn/plasma/wallpaper/pixiv-96734339-x2.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:57f87ec744fe000caf8dfe878127c95bb7c36ed2679220f1e86e11448e6201e6 -size 21774036 diff --git a/modules/user/chn/plasma/wallpaper/pixiv-96734339.png b/modules/user/chn/plasma/wallpaper/pixiv-96734339.png deleted file mode 100644 index ba2de88c..00000000 --- a/modules/user/chn/plasma/wallpaper/pixiv-96734339.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:90ffa82f00d4e5e9e08744d3d45e14553cdb352dcb46ca7b85f3bbdd421402d5 -size 5070621 diff --git a/modules/user/chn/plasma/wallpaper/twitter-1476842308473868289-x4.png b/modules/user/chn/plasma/wallpaper/twitter-1476842308473868289-x4.png deleted file mode 100644 index f446c872..00000000 --- a/modules/user/chn/plasma/wallpaper/twitter-1476842308473868289-x4.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6260ac1fe2dc502ab6f37c74f34770d4d3aaef92d172ece1059c729c3604a1cf -size 2768487 diff --git a/todo.md b/todo.md new file mode 100644 index 00000000..300cdbc4 --- /dev/null +++ b/todo.md @@ -0,0 +1,4 @@ +* 读 pnpm2nix,重写用到它的包。 +* 使用 wrap 好的 intel 编译器。 +* 更新到 24.05 +