rose-pine-nix/modules/nixos/sddm.nix
punkfairie f26b1be83f
Some checks are pending
CI / Format Nix files (push) Waiting to run
CI / Test Modules (push) Waiting to run
CI / Validate sources (push) Waiting to run
Release / Make release (push) Waiting to run
Release / Publish to Flake registries (push) Blocked by required conditions
Build & deploy website / Build site (push) Waiting to run
Build & deploy website / Deploy website (push) Blocked by required conditions
refactor(nixos): Use new helpers; formatting
2024-11-04 20:57:54 -08:00

23 lines
505 B
Nix

{
lib,
config,
pkgs,
...
}:
let
inherit (config.rose-pine) sources;
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"; };
config = lib.mkIf enable {
services.displayManager.sddm.theme = "rose-pine";
environment.systemPackages = [
(pkgs.callPackage ./sddm-rose-pine-pkg.nix { inherit sources; })
];
};
}