Skip to content

Commit

Permalink
Cleanup fonts on NixOS
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Dec 6, 2024
1 parent ad45369 commit 1aa8d3f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 32 deletions.
9 changes: 2 additions & 7 deletions modules/home-manager/pc/desktop/sway/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ in
config = rec {
modifier = "Mod4";
terminal = "wezterm";
fonts = {
names = [ "FiraCode Nerd Font Mono" ];
style = "Regular";
size = 10.0;
};
window = {
border = 2;
titlebar = false;
Expand Down Expand Up @@ -85,9 +80,9 @@ in
workspaceNumbers = false;
trayOutput = "primary";
fonts = {
names = [ "FiraCode Nerd Font Mono" ];
names = [ config.stylix.fonts.sansSerif.name ];
style = "Regular";
size = 11.0;
size = config.stylix.fonts.sizes.desktop + 0.0;
};
}
];
Expand Down
2 changes: 0 additions & 2 deletions modules/home-manager/pc/desktop/sway/services.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
config = lib.mkIf config.sway.services.enable {
programs.rofi = {
enable = true;
# font = "FiraCode Nerd Font Mono 14";
# theme = "${catppuccin-rofi}/basic/.local/share/rofi/themes/catppuccin-${flavor}.rasi";
};

# services.mako = {
Expand Down
5 changes: 0 additions & 5 deletions modules/home-manager/pc/desktop/sway/theme.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ in
# workspaceButtons = true;
# workspaceNumbers = false;
# trayOutput = "primary";
# fonts = {
# names = [ "FiraCode Nerd Font Mono" ];
# style = "Regular";
# size = 11.0;
# };
# colors = {
# background = "$base";
# statusline = "$text";
Expand Down
8 changes: 0 additions & 8 deletions modules/home-manager/pc/terminal/alacritty.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@
# y = 0;
# x = 0;
# };
# bold = {
# style = "Bold";
# family = "FiraCode Nerd Font";
# };
# normal = {
# style = "Regular";
# family = "FiraCode Nerd Font";
# };
# };
};
};
Expand Down
7 changes: 4 additions & 3 deletions modules/home-manager/theming/fonts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ in
serif = cantarell;
sansSerif = cantarell;
monospace = {
name = "FiraCode Nerd Font";
package = pkgs.fira-code;
# package = pkgs.fira-code-nerdfont;
name = "FiraCode Nerd Font Mono";
# package = pkgs.unstable.nerd-fonts.fira-code;
# package = pkgs.fira-code;
package = pkgs.fira-code-nerdfont;
};
};
};
Expand Down
23 changes: 16 additions & 7 deletions modules/nixos/environment/fonts.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
{
config,
pkgs,
...
}:
{
fonts.packages = with pkgs; [
aileron # helvetica
jetbrains-mono
liberation_ttf # Times New Roman, Arial, and Courier New
(nerdfonts.override { fonts = [ "FiraCode" ]; })
noto-fonts-color-emoji
];
fonts.packages =
(with pkgs; [
aileron # helvetica
jetbrains-mono
liberation_ttf # Times New Roman, Arial, and Courier New
# (nerdfonts.override { fonts = [ "FiraCode" ]; })
# unstable.nerd-fonts.fira-code
noto-fonts-color-emoji
])
++ [
config.stylix.fonts.monospace.package
config.stylix.fonts.serif.package
config.stylix.fonts.sansSerif.package
config.stylix.fonts.emoji.package
];

}

0 comments on commit 1aa8d3f

Please sign in to comment.