nixos-configs/nixos/stylix.nix

44 lines
955 B
Nix
Raw Normal View History

2024-10-26 18:33:47 +00:00
{
pkgs,
inputs,
2024-10-27 11:23:20 +00:00
config,
lib,
2024-10-26 18:33:47 +00:00
...
2024-10-27 11:23:20 +00:00
}: let
cfg = config.pim.stylix;
in {
2024-10-26 18:33:47 +00:00
imports = [inputs.stylix.nixosModules.stylix];
2024-10-27 11:23:20 +00:00
options.pim.stylix.enable = lib.mkEnableOption "stylix";
2024-10-26 18:24:13 +00:00
2024-10-27 11:23:20 +00:00
config = lib.mkIf cfg.enable {
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-medium.yaml";
image = "${inputs.nixos-artwork}/wallpapers/nix-wallpaper-binary-blue.png";
2024-10-26 18:24:13 +00:00
2024-10-27 11:23:20 +00:00
cursor = {
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 28;
2024-10-26 18:24:13 +00:00
};
2024-10-27 11:23:20 +00:00
fonts = {
monospace = {
package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];};
name = "JetBrainsMono Nerd Font Mono";
};
sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans";
};
2024-10-26 18:24:13 +00:00
2024-10-27 11:23:20 +00:00
serif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};
2024-10-26 18:24:13 +00:00
};
};
};
}