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;
|
2024-11-08 17:23:32 +01:00
|
|
|
theme = "catppuccin-latte";
|
2024-11-08 17:23:02 +01:00
|
|
|
wayland.enable = true;
|
2021-04-22 14:22:55 +02:00
|
|
|
};
|
|
|
|
|
2024-11-08 17:23:32 +01:00
|
|
|
environment.systemPackages = [
|
|
|
|
(pkgs.catppuccin-sddm.override
|
|
|
|
{
|
|
|
|
flavor = "latte";
|
|
|
|
})
|
|
|
|
];
|
2021-04-22 14:22:55 +02:00
|
|
|
};
|
|
|
|
}
|