mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
22 lines
573 B
Nix
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;
|
|
};
|
|
}
|