mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Desktop/Plasma] optimize SDDM if optimizations are enabled
Should probably be refactored to use optimizations/services.nix
This commit is contained in:
parent
5899638691
commit
931d90131c
1 changed files with 9 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.aviallon.desktop;
|
||||
optimizeCfg = config.aviallon.optimizations;
|
||||
in {
|
||||
config = mkIf (cfg.enable && (cfg.environment == "plasma")) {
|
||||
# Enable the Plasma 5 Desktop Environment.
|
||||
|
|
@ -42,6 +43,13 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
services.xserver.displayManager.job = let
|
||||
sddmOptimized = optimizeCfg.optimizePkg { recursive = 0; } pkgs.sddm;
|
||||
sddmPackage = if optimizeCfg.enable then sddmOptimized else pkgs.sddm;
|
||||
in {
|
||||
execCmd = mkForce "exec ${sddmPackage}/bin/sddm";
|
||||
};
|
||||
|
||||
|
||||
environment.systemPackages = with pkgs; with libsForQt5; [
|
||||
skanpage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue