From 8ba72877cd391b1cc0f122eddc8230a66a5a78ef Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Wed, 1 Mar 2023 19:03:40 +0100 Subject: home: wallpaper: default to stylix wallpaper if it exists --- modules/home-manager/wallpaper.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/home-manager/wallpaper.nix b/modules/home-manager/wallpaper.nix index cd71aab..2a8bdae 100644 --- a/modules/home-manager/wallpaper.nix +++ b/modules/home-manager/wallpaper.nix @@ -1,10 +1,10 @@ -{ config, lib, ... }: +{ config, lib, ... }@extraArgs: let wallpaper = config.personal.home.wallpaper; in { options.personal.home.wallpaper = lib.mkOption { type = with lib.types; nullOr path; - default = null; + default = extraArgs.osConfig.stylix.image or null; description = '' Path to the desktop wallpaper. ''; -- cgit v1.2.3