rose-pine-nix/modules/nixos/sddm.nix

24 lines
505 B
Nix
Raw Normal View History

2024-05-21 14:53:46 -07:00
{
lib,
config,
pkgs,
2024-05-21 14:53:46 -07:00
...
}:
let
2024-10-20 17:26:38 -07:00
inherit (config.rose-pine) sources;
2024-10-20 17:26:38 -07:00
cfg = config.services.displayManager.sddm.rose-pine;
enable = cfg.enable && config.services.displayManager.sddm.enable;
in
{
options.services.displayManager.sddm.rose-pine = lib.rp.mkRosePineOpt { name = "sddm"; };
2024-10-20 17:26:38 -07:00
config = lib.mkIf enable {
services.displayManager.sddm.theme = "rose-pine";
environment.systemPackages = [
(pkgs.callPackage ./sddm-rose-pine-pkg.nix { inherit sources; })
];
};
}