SDDM Themes: Difference between revisions
Appearance
Redlonghead (talk | contribs) m fixed package name to be correct |
mNo edit summary |
||
| Line 32: | Line 32: | ||
services.displayManager.sddm = { | services.displayManager.sddm = { | ||
theme = "Elegant"; | theme = "Elegant"; | ||
extraPackages = [ custom-elegant-sddm ]; | extraPackages = [ pkgs.custom-elegant-sddm ]; | ||
}; | }; | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
Revision as of 06:39, 20 December 2025
Install
To use SDDM themes you need them in both `services.displayManager.sddm.extraPackages` and in the `environment.systemPackages` and set the `theme` option to the themes name.
{
environment.systemPackages = with pkgs; [
sddm-astronaut
];
services.displayManager.sddm = {
theme = "sddm-astronaut-theme";
extraPackages = [ sddm-astronaut ];
};
}
Custom Overridden Theme
When trying to use a SDDM theme and override the background you will need to add the overridden theme package in both `services.displayManager.sddm.extraPackages` and in the `environment.systemPackages` like before. The theme name would be the same as the normal package.
let
custom-elegant-sddm = pkgs.elegant-sddm.override {
themeConfig.General.background = "${pkgs.nixos-artwork.wallpapers.simple-dark-gray-bottom.gnomeFilePath}";
};
in
{
environment.systemPackages = with pkgs; [
custom-elegant-sddm
];
services.displayManager.sddm = {
theme = "Elegant";
extraPackages = [ pkgs.custom-elegant-sddm ];
};
}