Hi
Want to share my method to change the login screen of gnome version 50 on nixos26.05
You need to have copied your background to /etc/nixos/assets/
Add this line add the end of the configuration file
nixpkgs.overlays = [
(final: prev: {
gnome-shell = prev.gnome-shell.overrideAttrs (old: {
patches = (old.patches or []) ++ [
(final.writeText "gdm-bg.patch" ''
--- a/data/theme/gnome-shell-sass/widgets/_login-lock.scss
+++ b/data/theme/gnome-shell-sass/widgets/_login-lock.scss
@@ -15,6 +15,9 @@
/* Login Dialog */
.login-dialog {
background-color: $_gdm_bg;
+ background-image: url('file:///etc/nixos/assets/login.png');
+ background-size: cover;
+ background-position: center;
}
'')
];
});
})
];
sudo nixos-rebuild switch