From 11c2ca480b2ff8f32dea97adc4df24d2d064153e Mon Sep 17 00:00:00 2001 From: Veneficium <85629831+veneficium42@users.noreply.github.com> Date: Wed, 25 Sep 2024 23:01:03 +0200 Subject: [PATCH] stylix: fix config + set fonts, cursor and color scheme --- hosts/main-laptop/configuration.nix | 25 +++++++++++++++++++++++++ hosts/main-laptop/home.nix | 17 ++++------------- 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/hosts/main-laptop/configuration.nix b/hosts/main-laptop/configuration.nix index 7889909..421beeb 100644 --- a/hosts/main-laptop/configuration.nix +++ b/hosts/main-laptop/configuration.nix @@ -15,6 +15,31 @@ virtualisation.virtualbox.host.enable = true; users.extraGroups.vboxusers.members = [ "fedfer" ]; + stylix.enable = true; + stylix = { + polarity = "dark"; + image = ../../res/wallpaper.png; + cursor = { + package = pkgs.catppuccin-cursors.macchiatoMauve; + name = "catppuccin-macchiato-mauve-cursors"; + }; + base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-macchiato.yaml"; + fonts = { + monospace = { + name = "FiraCode Nerd Font Mono"; + package = pkgs.nerdfonts; + }; + sansSerif = { + name = "Cantarell"; + package = pkgs.cantarell-fonts; + }; + serif = { + name = "Cantarell"; + package = pkgs.cantarell-fonts; + }; + }; + }; + settings = { users.fedfer.enable = lib.mkForce true; diff --git a/hosts/main-laptop/home.nix b/hosts/main-laptop/home.nix index e29e818..6f6f4f7 100644 --- a/hosts/main-laptop/home.nix +++ b/hosts/main-laptop/home.nix @@ -33,26 +33,17 @@ stylix.enable = true; stylix = { + polarity = "dark"; image = ../../res/wallpaper.png; cursor = { - package = pkgs.catppuccin-cursors; - name = "macchiatoMauve"; - }; - fonts = { - packages = with pkgs; [ - nerdfonts - cantarell-fonts - ]; - monospace.name = "FiraCode Nerd Font Mono"; - sansSerif.name = "Cantarell"; - serif.name = "Cantarell"; + package = pkgs.catppuccin-cursors.macchiatoMauve; + name = "catppuccin-macchiato-mauve-cursors"; }; + base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-macchiato.yaml"; targets = { - console.enable = true; gnome.enable = true; gtk.enable = true; - nixos-icons.enable = true; firefox.enable = true; vesktop.enable = true; wezterm.enable = true;