2022-04-10 11:54:58 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit
|
|
|
|
(lib)
|
2022-01-11 16:08:21 +01:00
|
|
|
mkEnableOption
|
|
|
|
mkIf
|
2022-04-10 11:54:58 +02:00
|
|
|
;
|
2022-01-11 16:08:21 +01:00
|
|
|
|
2021-04-22 14:22:55 +02:00
|
|
|
cfg = config.my.displayManager.sddm;
|
2022-04-10 11:54:58 +02:00
|
|
|
in {
|
2022-01-11 16:08:21 +01:00
|
|
|
options.my.displayManager.sddm.enable = mkEnableOption "SDDM setup";
|
2021-04-22 14:22:55 +02:00
|
|
|
|
2022-01-11 16:08:21 +01:00
|
|
|
config = mkIf cfg.enable {
|
2024-05-30 01:45:26 +02:00
|
|
|
services.displayManager.sddm = {
|
2021-04-22 14:22:55 +02:00
|
|
|
enable = true;
|
|
|
|
theme = "sugar-candy";
|
|
|
|
};
|
|
|
|
|
2022-01-11 16:08:21 +01:00
|
|
|
environment.systemPackages = builtins.attrValues {
|
2022-04-10 11:54:58 +02:00
|
|
|
inherit
|
|
|
|
(pkgs.packages)
|
2022-01-11 16:08:21 +01:00
|
|
|
sddm-sugar-candy
|
2022-04-10 11:54:58 +02:00
|
|
|
;
|
2021-04-22 14:22:55 +02:00
|
|
|
|
2022-04-10 11:54:58 +02:00
|
|
|
inherit
|
|
|
|
(pkgs.libsForQt5.qt5)
|
2022-01-11 16:08:21 +01:00
|
|
|
qtgraphicaleffects
|
|
|
|
qtquickcontrols2
|
|
|
|
qtsvg
|
2022-04-10 11:54:58 +02:00
|
|
|
;
|
2022-01-11 16:08:21 +01:00
|
|
|
};
|
2021-04-22 14:22:55 +02:00
|
|
|
};
|
|
|
|
}
|