nixos-config/modules/sddm.nix

32 lines
504 B
Nix
Raw Normal View History

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