punkfairie
f89d1c0f41
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 / Deploy website (push) Blocked by required conditions
Build & deploy website / Build site (push) Waiting to run
40 lines
942 B
Nix
40 lines
942 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: 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 = [
|
|
(
|
|
{
|
|
stdenvNoCC,
|
|
libsForQt5,
|
|
}:
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "sddm-rose-pine-theme";
|
|
version = "1.2";
|
|
dontBuild = true;
|
|
|
|
propagatedUserEnvPkgs = [
|
|
libsForQt5.qt5.qtgraphicaleffects
|
|
];
|
|
|
|
src = sources.sddm;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/sddm/themes
|
|
cp -aR $src $out/share/sddm/themes/rose-pine
|
|
'';
|
|
}
|
|
)
|
|
];
|
|
};
|
|
}
|