Jump to content

SDDM Themes: Difference between revisions

From Official NixOS Wiki
m fixed package name to be correct
Phobos (talk | contribs)
m Changed the wrong block of code, fixed
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
   services.displayManager.sddm = {
   services.displayManager.sddm = {
     theme = "sddm-astronaut-theme";
     theme = "sddm-astronaut-theme";
     extraPackages = [ sddm-astronaut ];
     extraPackages = [ pkgs.sddm-astronaut ];
   };
   };
}
}

Latest revision as of 06:50, 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 = [ pkgs.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 ];
  };
}