From 70d60e5ee6d1092f765807b8483c9c16d2afa678 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Wed, 22 Feb 2023 22:39:56 +0100 Subject: add home-manager modules --- modules/home-manager/wallpaper.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/home-manager/wallpaper.nix (limited to 'modules/home-manager/wallpaper.nix') 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"; + }; +} -- cgit v1.2.3