53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ ... }:
|
|
|
|
{
|
|
flake.nixosModules.stylix = { inputs, config, lib, pkgs, ... }:
|
|
let
|
|
cfg = config.mySystem.desktop.stylix;
|
|
in {
|
|
options.mySystem.desktop.stylix.enable = lib.mkEnableOption "Stylix System Theming";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
stylix = {
|
|
enable = true;
|
|
|
|
image = inputs.self + "/wallpapers/wallpaper1.jpg";
|
|
polarity = "dark";
|
|
|
|
cursor = {
|
|
package = pkgs.phinger-cursors;
|
|
name = "phinger-cursors-light";
|
|
size = 24;
|
|
};
|
|
|
|
fonts = {
|
|
monospace = {
|
|
package = pkgs.nerd-fonts.fira-code;
|
|
name = "Fira Code Nerd Font";
|
|
};
|
|
|
|
sansSerif = {
|
|
package = pkgs.lato;
|
|
name = "Lato";
|
|
};
|
|
};
|
|
|
|
icons = {
|
|
enable = true;
|
|
package = pkgs.papirus-icon-theme;
|
|
|
|
dark = "Papirus-Dark";
|
|
light = "Papirus-Light";
|
|
};
|
|
};
|
|
|
|
home-manager.users.shonh.home.sessionVariables = {
|
|
XCURSOR_THEME = config.stylix.cursor.name;
|
|
XCURSOR_SIZE = toString config.stylix.cursor.size;
|
|
HYPRCURSOR_THEME = config.stylix.cursor.name;
|
|
HYPRCURSOR_SIZE = toString config.stylix.cursor.size;
|
|
};
|
|
};
|
|
};
|
|
}
|