summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2023-03-01 19:03:40 +0100
committerQuentin Aristote <quentin@aristote.fr>2023-03-01 19:03:40 +0100
commit8ba72877cd391b1cc0f122eddc8230a66a5a78ef (patch)
tree26ad25dcb1600d53e4e50d56c9fd1408cd43335f
parente4c386869436e6720b7e5b40f87e29b07ffd467d (diff)
home: wallpaper: default to stylix wallpaper if it exists
-rw-r--r--modules/home-manager/wallpaper.nix4
1 files changed, 2 insertions, 2 deletions
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.
'';