punkfairie
558c12035e
Some checks failed
Release / Publish to Flake registries (push) Has been cancelled
CI / Format Nix files (push) Has been cancelled
CI / Test Modules (push) Has been cancelled
CI / Validate sources (push) Has been cancelled
Release / Make release (push) Has been cancelled
Build & deploy website / Build site (push) Has been cancelled
Build & deploy website / Deploy website (push) Has been cancelled
Nix was complaining that it wasn't a valid package so moved to it's own file and called with callPackage()
20 lines
500 B
Nix
20 lines
500 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;})
|
|
];
|
|
};
|
|
}
|