Changed stylix
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user