Jump to content

SDDM Themes

From Official NixOS Wiki
Revision as of 05:08, 11 December 2025 by Redlonghead (talk | contribs) (Created documentation on how to theme SDDM with qt6 changing it slightly now.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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-qt6.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 = [ custom-elegant-sddm ];
  };
}