Jump to content

SDDM Themes: Difference between revisions

From Official NixOS Wiki
Created documentation on how to theme SDDM with qt6 changing it slightly now.
 
m fixed package name to be correct
 
Line 20: Line 20:


<syntaxhighlight lang="nixos">let
<syntaxhighlight lang="nixos">let
   custom-elegant-sddm = pkgs.elegant-sddm-qt6.override {
   custom-elegant-sddm = pkgs.elegant-sddm.override {
     themeConfig.General.background = "${pkgs.nixos-artwork.wallpapers.simple-dark-gray-bottom.gnomeFilePath}";
     themeConfig.General.background = "${pkgs.nixos-artwork.wallpapers.simple-dark-gray-bottom.gnomeFilePath}";
   };
   };

Latest revision as of 02:18, 13 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 = [ custom-elegant-sddm ];
  };
}