mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:19:22 +08:00
users.chn.wallpaper: use blurred-wallpaper package
This commit is contained in:
17
flake.lock
generated
17
flake.lock
generated
@@ -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",
|
||||
|
||||
@@ -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:
|
||||
|
||||
11
local/pkgs/blurred-wallpaper/default.nix
Normal file
11
local/pkgs/blurred-wallpaper/default.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
@@ -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; };
|
||||
}
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
inputs:
|
||||
{
|
||||
imports = inputs.localLib.mkModules [ ./plasma.nix ];
|
||||
imports = inputs.localLib.mkModules [ ./plasma.nix ./wallpaper ];
|
||||
config =
|
||||
let
|
||||
inherit (inputs.lib) mkIf;
|
||||
|
||||
@@ -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 =
|
||||
{
|
||||
|
||||
14
modules/users/chn/wallpaper/default.nix
Normal file
14
modules/users/chn/wallpaper/default.nix
Normal 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; };
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user