Skip to content

Commit

Permalink
nixos/sddm: replace themes option with package option
Browse files Browse the repository at this point in the history
  • Loading branch information
ttuegel committed Mar 22, 2017
1 parent 203c492 commit a96e047
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 2 additions & 0 deletions nixos/modules/rename.nix
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,7 @@ with lib;
"See the 16.09 release notes for more information.")
(mkRemovedOptionModule [ "services" "phpfpm" "phpIni" ] "")
(mkRemovedOptionModule [ "services" "dovecot2" "package" ] "")
(mkRemovedOptionModule [ "services" "xserver" "displayManager" "sddm" "themes" ]
"Set the option `services.xserver.displayManager.sddm.package' instead.")
];
}
5 changes: 1 addition & 4 deletions nixos/modules/services/x11/desktop-managers/plasma5.nix
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,7 @@ in

services.xserver.displayManager.sddm = {
theme = "breeze";
themes = [
plasma5.plasma-workspace
pkgs.breeze-icons
];
package = pkgs.sddmPlasma5;
};

security.pam.services.kde = { allowNullPassword = true; };
Expand Down
11 changes: 6 additions & 5 deletions nixos/modules/services/x11/display-managers/sddm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let
cfg = dmcfg.sddm;
xEnv = config.systemd.services."display-manager".environment;

sddm = pkgs.sddm.override { inherit (cfg) themes; };
sddm = cfg.package;

xserverWrapper = pkgs.writeScript "xserver-wrapper" ''
#!/bin/sh
Expand Down Expand Up @@ -105,11 +105,12 @@ in
'';
};

themes = mkOption {
type = types.listOf types.package;
default = [];
package = mkOption {
type = types.package;
default = pkgs.sddm;
description = ''
Extra packages providing themes.
The SDDM package to install.
The default package can be overridden to provide extra themes.
'';
};

Expand Down

0 comments on commit a96e047

Please sign in to comment.