finally caved and removed my redundant color scheme definition in the flake.nix file to use stylix's built-in color scheme definition

This commit is contained in:
pagedmov
2024-11-03 15:55:36 -05:00
parent 62bbbfa71d
commit e4369939f4
11 changed files with 65 additions and 79 deletions

View File

@@ -1,19 +1,27 @@
{
pkgs,
scheme ? {},
wallpaper,
self,
lib,
config,
...
}: {
}:
let
scheme = "black-metal-venom";
in
{
options = {
stylixConfig.enable = lib.mkEnableOption "enables custom stylix options";
};
config = lib.mkIf config.stylixConfig.enable {
stylix = {
enable = true;
base16Scheme = scheme;
image = wallpaper;
base16Scheme = "${pkgs.base16-schemes}/share/themes/${scheme}.yaml";
image = "${self}/assets/wallpapers/sleeping-blackmetal.png";
homeManagerIntegration = {
autoImport = true;
followSystem = true;
};
polarity = "dark";
autoEnable = true;
opacity.terminal = 0.5;