Move fonts config into home-manager

This commit is contained in:
Jimbo 2024-10-12 17:35:29 -04:00
parent 300c954fd7
commit c380052b0c
9 changed files with 23 additions and 18 deletions

View file

@ -47,7 +47,7 @@
packages = forAllSystems (system: import ./extras/pkgs nixpkgs.legacyPackages.${system}); packages = forAllSystems (system: import ./extras/pkgs nixpkgs.legacyPackages.${system});
# Your custom packages and modifications, exported as overlays # Your custom packages and modifications, exported as overlays
overlays = import ./extras/overlays.nix {inherit inputs;}; overlays = import ./extras/overlays.nix { inherit inputs; };
# Variables defined so they can be accessed globally # Variables defined so they can be accessed globally
secrets = import ./extras/secrets.nix; secrets = import ./extras/secrets.nix;

View file

@ -7,6 +7,7 @@
# GUI Apps # GUI Apps
./../../misc/guifiles.nix ./../../misc/guifiles.nix
./../../misc/fonts.nix
./../../sway/sway.nix ./../../sway/sway.nix
./../../sway/swaylock.nix ./../../sway/swaylock.nix
./../../programs/gtk.nix ./../../programs/gtk.nix

View file

@ -7,6 +7,7 @@
# GUI Apps # GUI Apps
./../../misc/guifiles.nix ./../../misc/guifiles.nix
./../../misc/fonts.nix
./../../sway/sway.nix ./../../sway/sway.nix
./../../sway/swaylock.nix ./../../sway/swaylock.nix
./../../programs/gtk.nix ./../../programs/gtk.nix

View file

@ -7,6 +7,7 @@
# GUI Apps # GUI Apps
./../../misc/guifiles.nix ./../../misc/guifiles.nix
./../../misc/fonts.nix
./../../sway/sway.nix ./../../sway/sway.nix
./../../sway/swaylock.nix ./../../sway/swaylock.nix
./../../programs/gtk.nix ./../../programs/gtk.nix

19
home/misc/fonts.nix Normal file
View file

@ -0,0 +1,19 @@
{ pkgs, ... }: {
home.packages = with pkgs; [
liberation_ttf
twitter-color-emoji
noto-fonts
sarasa-gothic
ubuntu_font_family
(nerdfonts.override { fonts = [ "UbuntuMono" ]; })
];
fonts.fontconfig = {
enable = true;
defaultFonts = {
sansSerif = [ "Ubuntu" ];
monospace = [ "UbuntuMono Nerd Font Mono" ];
emoji = [ "Twitter Color Emoji" ];
};
};
}

View file

@ -1,14 +0,0 @@
{pkgs, ...}: {
# Fonts
fonts = {
packages = with pkgs; [
liberation_ttf
twitter-color-emoji
noto-fonts
sarasa-gothic
ubuntu_font_family
(nerdfonts.override {fonts = ["UbuntuMono"];})
];
fontconfig.defaultFonts.emoji = ["Twitter Color Emoji"];
};
}

View file

@ -16,7 +16,6 @@
./../../desktop/pipewire.nix ./../../desktop/pipewire.nix
./../../desktop/bluetooth.nix ./../../desktop/bluetooth.nix
./../../desktop/firewall.nix ./../../desktop/firewall.nix
./../../desktop/fonts.nix
./../../desktop/qt.nix ./../../desktop/qt.nix
# Modules # Modules

View file

@ -16,7 +16,6 @@
./../../desktop/pipewire.nix ./../../desktop/pipewire.nix
./../../desktop/bluetooth.nix ./../../desktop/bluetooth.nix
./../../desktop/firewall.nix ./../../desktop/firewall.nix
./../../desktop/fonts.nix
./../../desktop/qt.nix ./../../desktop/qt.nix
# Laptop/Portable only # Laptop/Portable only

View file

@ -15,7 +15,6 @@
./../../desktop/pipewire.nix ./../../desktop/pipewire.nix
./../../desktop/bluetooth.nix ./../../desktop/bluetooth.nix
./../../desktop/firewall.nix ./../../desktop/firewall.nix
./../../desktop/fonts.nix
./../../desktop/qt.nix ./../../desktop/qt.nix
./../../desktop/wireguard.nix ./../../desktop/wireguard.nix