generalize fonts

This commit is contained in:
Daylin Morgan 2024-01-23 16:29:47 -06:00
parent fa36228045
commit f9e32c5198
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
5 changed files with 8 additions and 10 deletions

6
modules/fonts.nix Normal file
View file

@ -0,0 +1,6 @@
{pkgs,...}:{
fonts.fontconfig.enable = true;
fonts.packages = with pkgs; [
(nerdfonts.override {fonts = ["FiraCode"];})
];
}

View file

@ -12,11 +12,6 @@ in
{ {
config = mkIf cfg.enable { config = mkIf cfg.enable {
fonts.fontconfig.enable = true;
fonts.packages = with pkgs; [
(nerdfonts.override {fonts = ["FiraCode"];})
];
security.pam.services.swaylock = {}; security.pam.services.swaylock = {};
programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.default; programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.default;
# Optional, hint electron apps to use wayland: # Optional, hint electron apps to use wayland:

View file

@ -7,10 +7,6 @@
./lock ./lock
]; ];
fonts.fontconfig.enable = true;
fonts.packages = with pkgs; [
(nerdfonts.override {fonts = ["FiraCode"];})
];
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver = { services.xserver = {

View file

@ -4,6 +4,7 @@
cli cli
dev dev
nvim nvim
vpn
# langs # langs
python python

View file

@ -5,9 +5,9 @@
... ...
}: { }: {
imports = with inputs.self.nixosModules; [ imports = with inputs.self.nixosModules; [
fonts
gui gui
vscode vscode
vpn
hyprland hyprland
]; ];
} }