services.xserver.displayManager.lightdm = {
enable = true; # Enable the LightDM display manager
# Set the background directly (this is a structured option)
background = "/path/to/file";
# Use extraConfig to append custom raw configuration options to the LightDM config
extraConfig = ''
# LightDM Greeter Settings (non-structured options)
theme-name = "whatever" #Theme for the greeter
user-background = false
position = "87%,center"
hide-user-image = true
icon-theme-name = "whatever"
indicators = "~session;~host;~clock"
# default-user-image = "" # Uncomment to set a default user image
'';
# Structured greeter settings
greeter = {
# You can configure greeter-related settings here if available
# Example: greeter.language = "en_US";
# greeter.layout = "us";
};
# Optional autoLogin setting
# Uncomment and configure the following line to enable auto-login for a user:
# autoLogin = {
# enable = true;
# user = "your-username";
# };
# Optional: if you have multiple greeters, you can define them here
# greeters = ["lightdm-webkit2-greeter"];
};
In summary of the situation to date, above is the most recent configuration that also caused the session to drop into the login screen, with the notable difference that my desired background was displayed, but the theme designated was not applied to the logon box, nor was the logon box position in the designated location. Also notable, a red colored spot appeared in the terminal when rebuilding and before dropping the session down to the login screen.
In view that the default symlinked configuration utilizes the following parameters:
[greeter]
theme-name = Adwaita
icon-theme-name = Adwaita
cursor-theme-name = Adwaita
cursor-theme-size = 16
background = /nix/store/42c21vvm60lb6ppd9hly3c928y9s3x6i-simple-dark-gray-2018-08-28/share/backgrounds/nixos/nix-wallpaper-simple-dark-gray_bottom.png
and when the same lightdm /nix/store end-of-symlink .conf file is manually modified:
[greeter]
background = /path/to/file
theme-name = whatever
icon-theme-name = whatever
indicators = ~session;~host;~clock
position = 87%,center user-background = false hide-user-image = true #default-user-image = /path/to/file
All of the relevant parameters are displayed in the logon screen.
The extraConfig section within configuration.nix does not implement these designated modification to the logon screen, but directly modification to the /nix/store does.
This indicates to me that something is broken or omitted in the lightdm configuration when âbackgroundâ is a parameter recognized with configuration.nix, but other configuration parameters are not recognized in configuration.nix, but are recognized in the /nix/store .conf file.
Certainly if changes to the default configuration of NixOS are to be make within configuration.nix, the method of doing so should be much more straightforward than that encountered in this example.
Does this situation need to be reported as a bug?