summaryrefslogtreecommitdiff
path: root/modules/home-manager/wallpaper.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2023-02-22 22:39:56 +0100
committerQuentin Aristote <quentin@aristote.fr>2023-02-28 17:47:49 +0100
commit70d60e5ee6d1092f765807b8483c9c16d2afa678 (patch)
treeedeb7a91de348d6fc5dd0e43b9ca7bef794b322c /modules/home-manager/wallpaper.nix
parentbbb2f5e7cefb970b3e4994ee51bb2c3a18a073c2 (diff)
add home-manager modules
Diffstat (limited to 'modules/home-manager/wallpaper.nix')
-rw-r--r--modules/home-manager/wallpaper.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/home-manager/wallpaper.nix b/modules/home-manager/wallpaper.nix
new file mode 100644
index 0000000..cd71aab
--- /dev/null
+++ b/modules/home-manager/wallpaper.nix
@@ -0,0 +1,14 @@
+{ config, lib, ... }:
+
+let wallpaper = config.personal.home.wallpaper;
+in {
+ options.personal.home.wallpaper = lib.mkOption {
+ type = with lib.types; nullOr path;
+ default = null;
+ description = ''
+ Path to the desktop wallpaper.
+ '';
+ example =
+ lib.literalExample "${config.home.homeDirectory}/images/wallpaper.jpg";
+ };
+}