From 7eb8da31e0f218f64ac5f46c886df5eab5347e68 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 30 Jun 2023 21:20:46 +0200 Subject: [PATCH] all style stuff in one file --- flake.nix | 18 ------------------ nixos/components/gui/style.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/flake.nix b/flake.nix index ae1ada3..f875e7c 100644 --- a/flake.nix +++ b/flake.nix @@ -231,24 +231,6 @@ home-manager-utils.hmModule stylix.homeManagerModules.stylix ]; - stylix.image = ./nixos/assets/wallpaper.png; - stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-light-medium.yaml"; - programs.i3status-rust.bars.my = { - icons = "awesome5"; - theme = "gruvbox-light"; - }; - stylix.fonts = { - serif = config.home-manager.users.mainUser.stylix.fonts.monospace; - sansSerif = config.home-manager.users.mainUser.stylix.fonts.monospace; - monospace = { - package = pkgs.jetbrains-mono; - name = "JetBrains Mono"; - }; - emoji = { - package = pkgs.noto-fonts-emoji; - name = "Noto Color Emoji"; - }; - }; }; }; diff --git a/nixos/components/gui/style.nix b/nixos/components/gui/style.nix index c9a30e9..9b1c31c 100644 --- a/nixos/components/gui/style.nix +++ b/nixos/components/gui/style.nix @@ -8,6 +8,33 @@ with lib; config = mkIf (config.components.gui.style.enable) { + home-manager.users.mainUser = { + + stylix.image = ../../assets/wallpaper.png; + + stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-light-medium.yaml"; + + programs.i3status-rust.bars.my = { + icons = "awesome5"; + theme = "gruvbox-light"; + }; + + stylix.fonts = { + serif = config.home-manager.users.mainUser.stylix.fonts.monospace; + sansSerif = config.home-manager.users.mainUser.stylix.fonts.monospace; + monospace = { + package = pkgs.jetbrains-mono; + name = "JetBrains Mono"; + }; + emoji = { + package = pkgs.noto-fonts-emoji; + name = "Noto Color Emoji"; + }; + }; + + }; + + fonts.fonts = with pkgs; [ corefonts