Changed stylix

This commit is contained in:
2025-01-09 17:14:10 +01:00
parent ac8f095cce
commit fa8a1f2eec
3 changed files with 46 additions and 38 deletions

View File

@@ -12,6 +12,20 @@ in {
Enable stylix configuration
'';
};
settings.theming.stylix.wallpaper = lib.mkOption {
type = lib.types.enum ["wallpaper-2" "kiiwy"];
description = ''
Choose wallpaper
'';
};
settings.theming.stylix.theme = lib.mkOption {
type = lib.types.string;
description = ''
Choose theme name. Use "theme" to use them based on wallpaper generation
'';
};
};
imports = [
@@ -21,9 +35,14 @@ in {
config = mkIf cfg.enable {
stylix.enable = true;
stylix.image = ../../../assets/wallpaper-2.png;
stylix.image = ../../../assets/${cfg.wallpaper};
stylix.polarity = "dark";
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/da-one-ocean.yaml";
stylix.base16Scheme = if (cfg.wallpaper == "theme") then
theme
else
"${pkgs.base16-schemes}/share/themes/da-one-ocean.yaml";
stylix.autoEnable = true;