swaylock: fix cache miss

This commit is contained in:
Leonardo Eugênio 2025-03-07 19:57:53 -03:00
parent 1a4fd19596
commit 5a5b544caa
2 changed files with 3 additions and 1 deletions

View file

@ -9,7 +9,7 @@ in
options.my.swaylock.enable = lib.mkEnableOption { };
config.programs.swaylock.settings = lib.mkIf cfg.enable {
image = toString theme.background;
image = theme.backgroundPath;
font = font.interface;
font-size = font.size.medium;
indicator-thickness = 20;

View file

@ -28,6 +28,7 @@ let
cursor_theme = "Bibata-Modern-Classic";
background = ./backgrounds/nixos-dark-pattern.png;
backgroundPath = "~/.local/share/backgrounds/nixos-dark-pattern.png";
opacity = 95;
opacityHex = "ee";
color = {
@ -59,6 +60,7 @@ let
cursor_theme = "Bibata-Modern-Classic";
background = ./backgrounds/nixos-light-pattern.png;
backgroundPath = "~/.local/share/backgrounds/nixos-light-pattern.png";
opacity = 95;
opacityHex = "ee";
color = {