sddm: add Wayland to the wrapper if enabled
This commit is contained in:
parent
7b74d9a4ac
commit
2614e40893
2 changed files with 8 additions and 2 deletions
|
@ -7,7 +7,10 @@ let
|
|||
cfg = dmcfg.sddm;
|
||||
xEnv = config.systemd.services.display-manager.environment;
|
||||
|
||||
sddm = cfg.package.override(old: { extraPackages = old.extraPackages or [] ++ cfg.extraPackages; });
|
||||
sddm = cfg.package.override(old: {
|
||||
withWayland = cfg.wayland.enable;
|
||||
extraPackages = old.extraPackages or [] ++ cfg.extraPackages;
|
||||
});
|
||||
|
||||
iniFmt = pkgs.formats.ini { };
|
||||
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
{
|
||||
lib,
|
||||
callPackage,
|
||||
runCommand,
|
||||
qtwayland,
|
||||
wrapQtAppsHook,
|
||||
unwrapped ? callPackage ./unwrapped.nix {},
|
||||
withWayland ? false,
|
||||
extraPackages ? [],
|
||||
}:
|
||||
runCommand "sddm-wrapped" {
|
||||
inherit (unwrapped) version;
|
||||
|
||||
buildInputs = unwrapped.buildInputs ++ extraPackages;
|
||||
buildInputs = unwrapped.buildInputs ++ extraPackages ++ lib.optional withWayland qtwayland;
|
||||
nativeBuildInputs = [ wrapQtAppsHook ];
|
||||
|
||||
passthru = {
|
||||
|
|
Loading…
Reference in a new issue