summary refs log tree commit diff
path: root/pkgs/data/themes
diff options
context:
space:
mode:
authorSeong Yong-ju <sei40kr@gmail.com>2022-01-21 01:53:04 +0900
committerSeong Yong-ju <sei40kr@gmail.com>2022-01-24 20:55:01 +0900
commitb3e385753b0ff04c1190961aff540f7f1e694d2d (patch)
treecd141a3bfc10dc5670901750fb7f8941193e671d /pkgs/data/themes
parenta6785fe0574f3a52c1b33adc1bb43b9356e84ce7 (diff)
downloadnixpkgs-b3e385753b0ff04c1190961aff540f7f1e694d2d.tar
nixpkgs-b3e385753b0ff04c1190961aff540f7f1e694d2d.tar.gz
nixpkgs-b3e385753b0ff04c1190961aff540f7f1e694d2d.tar.bz2
nixpkgs-b3e385753b0ff04c1190961aff540f7f1e694d2d.tar.lz
nixpkgs-b3e385753b0ff04c1190961aff540f7f1e694d2d.tar.xz
nixpkgs-b3e385753b0ff04c1190961aff540f7f1e694d2d.tar.zst
nixpkgs-b3e385753b0ff04c1190961aff540f7f1e694d2d.zip
orchis-theme: add withWallpapers option
Diffstat (limited to 'pkgs/data/themes')
-rw-r--r--pkgs/data/themes/orchis-theme/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/data/themes/orchis-theme/default.nix b/pkgs/data/themes/orchis-theme/default.nix
index ef7f88e3e95..666166e0a9d 100644
--- a/pkgs/data/themes/orchis-theme/default.nix
+++ b/pkgs/data/themes/orchis-theme/default.nix
@@ -6,6 +6,7 @@
 , gtk-engine-murrine
 , sassc
 , tweaks ? [ ] # can be "solid" "compact" "black" "primary"
+, withWallpapers ? false
 }:
 
 let
@@ -42,6 +43,10 @@ rec {
   installPhase = ''
     runHook preInstall
     bash install.sh -d $out/share/themes -t all ${lib.optionalString (tweaks != []) "--tweaks " + builtins.toString tweaks}
+    ${lib.optionalString withWallpapers ''
+      mkdir -p $out/share/backgrounds
+      cp src/wallpaper/{1080p,2k,4k}.jpg $out/share/backgrounds
+    ''}
     runHook postInstall
   '';