mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:19:22 +08:00
user.chn.plasma.wallpaper: move to another repo
This commit is contained in:
@@ -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:
|
||||
|
||||
28
modules/user/chn/plasma/wallpaper.nix
Normal file
28
modules/user/chn/plasma/wallpaper.nix
Normal file
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user