From 180a87464cc5cf87ae6a49318e9158dc05cd4800 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Wed, 25 Jan 2023 22:17:47 -0800 Subject: [PATCH] Get wallpaper path in theme --- hosts/desktop.nix | 2 +- hosts/home.nix | 2 +- modules/theme/default.nix | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hosts/desktop.nix b/hosts/desktop.nix index 581bedc..4a6926d 100644 --- a/hosts/desktop.nix +++ b/hosts/desktop.nix @@ -15,7 +15,7 @@ in enable = true; theme = theme.gtkTheme pkgs; }; - background = ../modules/wallpapers/${theme.wallpaper}; + background = theme.wallpaper; }; defaultSession = "none+i3"; }; diff --git a/hosts/home.nix b/hosts/home.nix index 02eb28f..a01ac8d 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -19,7 +19,7 @@ in ../modules/terminal ]; - home.file."./.background-image".source = ../modules/wallpapers/${theme.wallpaper}; + home.file."./.background-image".source = theme.wallpaper; programs.home-manager.enable = true; diff --git a/modules/theme/default.nix b/modules/theme/default.nix index c79489e..dbb821f 100644 --- a/modules/theme/default.nix +++ b/modules/theme/default.nix @@ -9,3 +9,4 @@ in css = lib: lib.strings.concatStringsSep "\n" (lib.attrValues (lib.mapAttrs (k: v: " --${k}: ${v};") theme.colors)); } // theme // { colors = theme.colors // colors; } +// { wallpaper = ../wallpapers/${theme.wallpaper}; }