2024-08-26 05:46:45 +00:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
cfg = config.custom.stylix;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [ inputs.stylix.nixosModules.stylix ];
|
|
|
|
|
|
|
|
options = {
|
|
|
|
custom.stylix = {
|
|
|
|
enable = mkEnableOption "style management with stylix";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
stylix.enable = true;
|
|
|
|
stylix.image = pkgs.fetchurl {
|
|
|
|
url = "https://github.com/NixOS/nixos-artwork/blob/master/wallpapers/nixos-wallpaper-catppuccin-mocha.png?raw=true";
|
|
|
|
hash = "sha256-fmKFYw2gYAYFjOv4lr8IkXPtZfE1+88yKQ4vjEcax1s=";
|
|
|
|
};
|
|
|
|
|
|
|
|
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
|
|
|
stylix.polarity = "dark";
|
|
|
|
stylix.autoEnable = false;
|
|
|
|
stylix.homeManagerIntegration.autoImport = true;
|
|
|
|
stylix.homeManagerIntegration.followSystem = true;
|
|
|
|
|
|
|
|
stylix.targets = {
|
|
|
|
console.enable = true;
|
2024-09-14 08:41:22 +00:00
|
|
|
# gnome.enable = if config.services.xserver.desktopManager.gnome.enable then true else false;
|
|
|
|
gnome.enable = false;
|
2024-08-26 05:46:45 +00:00
|
|
|
gtk.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|