flake/modules/nixos/theme/default.nix
2024-06-03 15:40:21 +00:00

22 lines
573 B
Nix

{ pkgs, lib, config, ... }:
let
cfg = config.mods.theme;
in {
options.mods.theme = {
enable = lib.mkEnableOption "enables stylix system theme";
scheme = lib.mkOption {
default = "gruvbox-dark-medium";
description = "system color scheme";
apply = value: "${pkgs.base16-schemes}/share/themes/${value}.yaml";
};
wallpaper = lib.mkOption {
default = ./wallpaper.png;
description = "desktop wallpaper";
};
};
config = lib.mkIf cfg.enable {
stylix.base16Scheme = cfg.scheme;
stylix.image = cfg.wallpaper;
};
}