mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:39:23 +08:00
lib.buildNixpkgsConfig: wrap startplasma-wayland
This commit is contained in:
@@ -128,6 +128,13 @@ in platformConfig //
|
||||
}
|
||||
))];
|
||||
inherit (final.pkgs-2411) intelPackages_2023;
|
||||
kdePackages = prev.kdePackages.overrideScope (final: prev:
|
||||
{
|
||||
plasma-workspace = prev.plasma-workspace.overrideAttrs (prev: { postFixup = prev.postFixup or "" +
|
||||
''
|
||||
wrapProgram $out/bin/startplasma-wayland --set NIXOS_OZONE_WL 1
|
||||
''; });
|
||||
});
|
||||
})
|
||||
)];
|
||||
}
|
||||
|
||||
@@ -57,11 +57,10 @@ inputs:
|
||||
})];
|
||||
})
|
||||
# prefer gui or not
|
||||
(inputs.localLib.mkConditional (builtins.elem inputs.config.nixos.model.type [ "desktop" ])
|
||||
{ environment.sessionVariables.NIXOS_OZONE_WL = "1"; }
|
||||
{
|
||||
environment.plasma6.excludePackages = inputs.lib.mkIf (gui.implementation == "kde")
|
||||
[ inputs.pkgs.kdePackages.plasma-nm ];
|
||||
})
|
||||
(inputs.lib.mkIf (inputs.config.nixos.model.type == "server")
|
||||
{
|
||||
environment.plasma6.excludePackages = inputs.lib.mkIf (gui.implementation == "kde")
|
||||
[ inputs.pkgs.kdePackages.plasma-nm ];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user