summaryrefslogtreecommitdiff
path: root/home/modules/wallpaper.nix
blob: 844f0ba68d7f8a86dd16722569b8e8decc866ab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, lib, ... }:

with lib;
let wallpaper = config.home.wallpaper;
in {
  options.home.wallpaper = mkOption {
    type = types.nullOr types.path;
    default = null;
    description = ''
      Path to the desktop wallpaper.
    '';
    example =
      literalExample "${config.home.homeDirectory}/images/wallpaper.jpg";
  };

  # config.home.file.".background-image".source = mkIf (wallpaper != null) wallpaper;
}