feat: declarative wallpapers anyone ??

This commit is contained in:
nydragon 2025-03-01 13:27:20 +01:00
parent 7d0482226c
commit 9b850a4997
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE
8 changed files with 13 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 774 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 308 KiB

8
flake.lock generated
View file

@ -449,11 +449,11 @@
},
"wallpapers": {
"locked": {
"lastModified": 1740422160,
"narHash": "sha256-nHQOBJU/ZXnhHeOIv1InIjCKeFjnHZshGj/BcCdRjnQ=",
"lastModified": 1740607812,
"narHash": "sha256-QtyujHP3K0bUhW8Yj232/Cpioz86G+gR/zB4ruLSmW0=",
"ref": "refs/heads/main",
"rev": "f7857fa316d70847b02dc266099ce2b4eb10f5ea",
"revCount": 3,
"rev": "ec895329334e800a4d015321ece15aafa021a9ff",
"revCount": 5,
"type": "git",
"url": "https://git.ccnlc.eu/nydragon/wallpapers.git"
},

View file

@ -1,11 +1,12 @@
{
lib,
pkgs,
config,
inputs,
...
}:
let
inherit (lib.my) getExe';
inherit (lib.my) getExe getExe';
wp = inputs.wallpapers.wallpapers.pastel.nix-flake.path;
in
{
systemd.user.services.swww = {
@ -14,9 +15,10 @@ in
Service = {
Type = "simple";
ExecStart = getExe' pkgs.swww "swww-daemon";
ExecStart = "${getExe' pkgs.swww "swww-daemon"} --no-cache";
ExecStartPost = "${getExe pkgs.swww} img ${wp} -t none";
Restart = "on-failure";
BindPaths = "/run/user /home/${config.home.username}/.cache/swww";
BindPaths = "/run/user ${wp}";
TemporaryFileSystem = "/home /run/user /root";
ProtectProc = "noaccess";
RestrictNamespaces = true;

View file

@ -34,7 +34,6 @@ mkIf osConfig.programs.hyprland.enable {
exec-once = [
"${config.services.kdeconnect.package}/bin/kdeconnect-indicator"
"${pkgs.keepassxc}/bin/keepassxc"
(lib.mkIf config.services.hypridle.enable "${pkgs.hypridle}/bin/hypridle")
];
general = {

View file

@ -4,7 +4,7 @@
enable = false;
settings =
let
wp = inputs.wallpapers.wallpapers.pastel.nix-flake-pastel.path;
wp = inputs.wallpapers.wallpapers.pastel.nix-flake.path;
in
{
ipc = "on";

View file

@ -18,7 +18,7 @@ lib.mkIf config.services.displayManager.sddm.enable {
flavor = "mocha";
font = "Noto Sans";
fontSize = "9";
background = inputs.wallpapers.wallpapers.pastel.nix-flake-pastel.path;
background = inputs.wallpapers.wallpapers.pastel.nix-flake.path;
loginBackground = true;
})
];

View file

@ -11,6 +11,7 @@
Enabled = true;
};
GUI = {
ApplicationTheme = "auto";
ColorPasswords = true;
MinimizeOnClose = true;
MinimizeOnStartup = true;