From 5a5b544caa6e5f16d064a3c22e16a7895554739f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Fri, 7 Mar 2025 19:57:53 -0300 Subject: [PATCH] swaylock: fix cache miss --- user/sway/swaylock.nix | 2 +- user/variables.nix | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/user/sway/swaylock.nix b/user/sway/swaylock.nix index 8d0a195..ceb2e6b 100644 --- a/user/sway/swaylock.nix +++ b/user/sway/swaylock.nix @@ -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; diff --git a/user/variables.nix b/user/variables.nix index cb35123..84823d3 100644 --- a/user/variables.nix +++ b/user/variables.nix @@ -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 = {