summaryrefslogtreecommitdiff
path: root/home/modules
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-08-06 18:51:59 +0200
committerQuentin Aristote <quentin@aristote.fr>2021-08-06 18:51:59 +0200
commita1f7f43c95c049628e826856ec589b339cd4f5db (patch)
treea0f5bb10fc36f02ad6dbaebf1232ca2548f9ccfa /home/modules
initial commit
Diffstat (limited to 'home/modules')
-rw-r--r--home/modules/default.nix5
-rw-r--r--home/modules/wallpaper.nix17
2 files changed, 22 insertions, 0 deletions
diff --git a/home/modules/default.nix b/home/modules/default.nix
new file mode 100644
index 0000000..820cd87
--- /dev/null
+++ b/home/modules/default.nix
@@ -0,0 +1,5 @@
+{ ... }:
+
+{
+ imports = [ ./wallpaper.nix ];
+}
diff --git a/home/modules/wallpaper.nix b/home/modules/wallpaper.nix
new file mode 100644
index 0000000..844f0ba
--- /dev/null
+++ b/home/modules/wallpaper.nix
@@ -0,0 +1,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;
+}