about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <patryk@niedzwiedzinski.cyou>2024-09-15 21:44:24 +0200
committerPatryk Niedźwiedziński <patryk@niedzwiedzinski.cyou>2024-09-15 21:44:24 +0200
commit69519e09c0a3ed1784c09f96c027893590291182 (patch)
treed31b4a0287938a064dad19b15d4c0a6a748a0c49
parent9a73211b804ca5825e1b9d2f8bf722c919a5eb90 (diff)
downloaddots-69519e09c0a3ed1784c09f96c027893590291182.tar.gz
dots-69519e09c0a3ed1784c09f96c027893590291182.zip
35 current 2024-09-15 21:44:18 24.05.20240914.8f7492c 6.6.51 *
-rw-r--r--machines/x220-gnome/gnome.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/machines/x220-gnome/gnome.nix b/machines/x220-gnome/gnome.nix
index ac23774..f10e18e 100644
--- a/machines/x220-gnome/gnome.nix
+++ b/machines/x220-gnome/gnome.nix
@@ -67,6 +67,34 @@
 		spotify
 	];
 
+# Wallpaper
+
+	nixpkgs.overlays = [
+      (self: super: {
+        gnome = super.gnome.overrideScope' (selfg: superg: {
+          gnome-shell = superg.gnome-shell.overrideAttrs (old: {
+            patches = (old.patches or []) ++ [
+              (let
+                bg = pkgs.fetchurl {
+		  url = "https://unsplash.com/photos/fzYFRJREmnQ/download?ixid=M3wxMjA3fDB8MXxzZWFyY2h8MTV8fHBvbGlzaCUyMG1vdW50YWluc3xlbnwwfHx8fDE3MjY0MjkwOTd8MA&force=true&h=1080";
+		  sha256 = "sha256-4vK8x7bSm2DogBqb494MondL1q0Q549zc0EgNc33XmQ=";
+                };
+              in pkgs.writeText "bg.patch" ''
+                --- a/data/theme/gnome-shell-sass/widgets/_login-lock.scss
+                +++ b/data/theme/gnome-shell-sass/widgets/_login-lock.scss
+                @@ -15,4 +15,5 @@ $_gdm_dialog_width: 23em;
+                 /* Login Dialog */
+                 .login-dialog {
+                   background-color: $_gdm_bg;
+                +  background-image: url('file://${bg}');
+                 }
+              '')
+            ];
+          });
+        });
+      })
+    ];
+
 	nixpkgs.config.allowUnfree = true;
 
 	documentation.nixos.enable = false;