2024-05-21 14:53:46 -07:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
2024-10-20 18:37:56 -07:00
|
|
|
pkgs,
|
2024-05-21 14:53:46 -07:00
|
|
|
...
|
2024-10-20 17:26:38 -07:00
|
|
|
}: let
|
|
|
|
inherit (config.rose-pine) sources;
|
|
|
|
cfg = config.services.displayManager.sddm.rose-pine;
|
2024-06-04 04:29:28 -07:00
|
|
|
enable = cfg.enable && config.services.displayManager.sddm.enable;
|
2024-10-20 17:26:38 -07:00
|
|
|
in {
|
|
|
|
options.services.displayManager.sddm.rose-pine = lib.rp.mkRosePineOpt {name = "sddm";};
|
2024-05-27 23:49:04 -07:00
|
|
|
|
2024-10-20 17:26:38 -07:00
|
|
|
config = lib.mkIf enable {
|
|
|
|
services.displayManager.sddm.theme = "rose-pine";
|
2024-06-22 05:31:23 -07:00
|
|
|
|
2024-05-27 23:49:04 -07:00
|
|
|
environment.systemPackages = [
|
2024-10-20 18:37:56 -07:00
|
|
|
(pkgs.callPackage ./sddm-rose-pine-pkg.nix {inherit sources;})
|
2024-05-27 23:49:04 -07:00
|
|
|
];
|
|
|
|
};
|
2024-05-13 18:56:27 -07:00
|
|
|
}
|