add default options

This commit is contained in:
Kopatz
2024-05-18 13:30:51 +02:00
parent 4d23806037
commit 2e7f38d919

View File

@@ -4,6 +4,29 @@ let cfg = config.custom.graphical.stylix;
in {
options.custom.graphical.stylix = {
enable = mkEnableOption "Enables stylix";
image = mkOption {
type = types.path;
default = ./yuyukowallpaper1809.png;
description = ''
The wallpaper to use.
'';
};
override = mkOption {
type = types.attrs;
default = {
base08 = "ed8796"; # red
base09 = "f5a97f"; # peach
base0A = "eed49f"; # yellow
base0B = "a6da95"; # green
base0C = "8bd5ca"; # teal
base0D = "8aadf4"; # blue
base0E = "c6a0f6"; # mauve
base0F = "f0c6c6"; # flamingo
};
description = ''
Override the generated colors.
'';
};
};
# https://danth.github.io/stylix/options/nixos.html
@@ -12,10 +35,11 @@ in {
in mkIf cfg.enable {
stylix = {
polarity = "dark";
#image = ./yuyukowallpaper1809.png;
image = cfg.image;
override = cfg.override;
#base16Scheme = ../../home-manager/themes/yorha/scheme.yml;
base16Scheme =
"${pkgs.base16-schemes}/share/themes/catppuccin-macchiato.yaml";
#base16Scheme =
# "${pkgs.base16-schemes}/share/themes/catppuccin-macchiato.yaml";
cursor = {
size = 24;
name = "breeze_cursors";