32 lines
710 B
Nix
32 lines
710 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
inputs,
|
|
...
|
|
}:
|
|
let
|
|
schemesFile = import ./schemes.nix {
|
|
inherit pkgs inputs;
|
|
};
|
|
scheme = schemesFile.schemes.paul;
|
|
cfg = config.my.stylix;
|
|
in
|
|
{
|
|
options.my.stylix = {
|
|
enable = lib.mkEnableOption "system-wide theming with Stylix";
|
|
users = lib.mkOption {
|
|
type = inputs.self.lib.usersOptionType lib;
|
|
default = config.my.toggleUsers.stylix;
|
|
description = "Users to apply Stylix theming for";
|
|
};
|
|
};
|
|
config.stylix = {
|
|
inherit (scheme) image polarity;
|
|
enable = true;
|
|
autoEnable = cfg.enable;
|
|
targets.qt.platform = lib.mkForce "qtct";
|
|
}
|
|
// lib.optionalAttrs (scheme ? base16Scheme) { inherit (scheme) base16Scheme; };
|
|
}
|