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
|
|
@ -1,7 +1,8 @@
|
||||||
{config, pkgs, lib, ...}:
|
{config, pkgs, lib, ...}:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.aviallon.desktop;
|
cfg = config.aviallon.desktop;
|
||||||
|
optimizeCfg = config.aviallon.optimizations;
|
||||||
in {
|
in {
|
||||||
config = mkIf (cfg.enable && (cfg.environment == "plasma")) {
|
config = mkIf (cfg.enable && (cfg.environment == "plasma")) {
|
||||||
# Enable the Plasma 5 Desktop Environment.
|
# 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; [
|
environment.systemPackages = with pkgs; with libsForQt5; [
|
||||||
skanpage
|
skanpage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue