users.chn.wallpaper: use blurred-wallpaper package

This commit is contained in:
2024-02-11 16:45:51 +08:00
parent fc6cbc6230
commit 6080de15ca
8 changed files with 47 additions and 3 deletions

17
flake.lock generated
View File

@@ -21,6 +21,22 @@
"type": "github"
}
},
"blurred-wallpaper": {
"flake": false,
"locked": {
"lastModified": 1700747921,
"narHash": "sha256-mCqf03cXlTl4vuJIzVEiYhHQsAPG3i6yHQ3Xdt06HfA=",
"owner": "bouteillerAlan",
"repo": "blurredwallpaper",
"rev": "aecc88d43e458a0962a0091dcdb7baac34e263be",
"type": "github"
},
"original": {
"owner": "bouteillerAlan",
"repo": "blurredwallpaper",
"type": "github"
}
},
"citation-style-language": {
"flake": false,
"locked": {
@@ -1793,6 +1809,7 @@
"root": {
"inputs": {
"aagl": "aagl",
"blurred-wallpaper": "blurred-wallpaper",
"citation-style-language": "citation-style-language",
"concurrencpp": "concurrencpp",
"cppcoro": "cppcoro",

View File

@@ -59,6 +59,7 @@
v-sim = { url = "gitlab:l_sim/v_sim"; flake = false; };
win11os-kde = { url = "github:yeyushengfan258/Win11OS-kde"; flake = false; };
fluent-kde = { url = "github:vinceliuice/Fluent-kde"; flake = false; };
blurred-wallpaper = { url = "github:bouteillerAlan/blurredwallpaper"; flake = false; };
};
outputs = inputs:

View File

@@ -0,0 +1,11 @@
{ stdenv, src }: stdenv.mkDerivation
{
name = "blurred-wallpaper ";
inherit src;
phases = [ "installPhase" ];
installPhase =
''
mkdir -p $out/share/plasma/wallpapers/a2n.blur
cp -r * $out/share/plasma/wallpapers/a2n.blur
'';
}

View File

@@ -47,4 +47,5 @@
torchtext = python3Packages.callPackage ./torchtext { inherit torchdata; };
win11os-kde = callPackage ./win11os-kde { src = topInputs.win11os-kde; };
fluent-kde = callPackage ./fluent-kde { src = topInputs.fluent-kde; };
blurred-wallpaper = callPackage ./blurred-wallpaper { src = topInputs.blurred-wallpaper; };
}

View File

@@ -30,7 +30,7 @@ inputs:
# media
mpv nomacs
# themes
tela-circle-icon-theme localPackages.win11os-kde localPackages.fluent-kde
tela-circle-icon-theme localPackages.win11os-kde localPackages.fluent-kde localPackages.blurred-wallpaper
];
users.sharedModules =
[(homeInputs: {

View File

@@ -1,6 +1,6 @@
inputs:
{
imports = inputs.localLib.mkModules [ ./plasma.nix ];
imports = inputs.localLib.mkModules [ ./plasma.nix ./wallpaper ];
config =
let
inherit (inputs.lib) mkIf;

View File

@@ -8,7 +8,7 @@ inputs:
enable = inputs.config.nixos.system.gui.enable;
configFile.plasma-localerc = { Formats.LANG = "en_US.UTF-8"; Translations.LANGUAGE = "zh_CN"; };
}
# theme, wallpaper, etc.
# theme
{
workspace =
{

View File

@@ -0,0 +1,14 @@
inputs:
{
config.home-manager.users.chn.config.programs.plasma.configFile =
let wallpaper = ./pixiv-96734339-x2.png; in
{
"plasma-org.kde.plasma.desktop-appletsrc" =
{
"Containments.1".wallpaperplugin = "a2n.blur";
"Containments.1.Wallpaper.a2n.blur.General".Image = "file://${wallpaper}";
};
kscreenlockerrc."Greeter.Wallpaper.org.kde.image.General" = rec
{ Image = builtins.toString wallpaper; PreviewImage = Image; };
};
}