home: fix missing fonts, refactor into module

This commit is contained in:
Trolli Schmittlauch 2024-03-26 10:34:35 +01:00
parent 7956d7ff0f
commit 2e3694a6fb
3 changed files with 30 additions and 22 deletions

View file

@ -9,6 +9,7 @@
imports = [
./modules/packages.nix
./modules/vscodium.nix
./modules/fonts.nix
];
home.homeDirectory =
if pkgs.stdenv.isDarwin then "/Users/${config.home.username}" else "/home/${config.home.username}";
@ -38,7 +39,6 @@
terminal = "screen-256color";
};
fonts.fontconfig.enable = true;
programs.git = {
enable = true;

29
home/modules/fonts.nix Normal file
View file

@ -0,0 +1,29 @@
{
pkgs,
inputs,
config,
system,
...
}:
{
home.packages = with pkgs; [
comic-neue
source-sans-pro
source-code-pro
source-serif-pro
ubuntu_font_family
twemoji-color-font
open-sans
(iosevka-bin.override { variant = "curly-slab"; })
config.nur.repos.schmittlauch.vollkorn
# TODO: humor-sans
# fcio corporate design, TODO module
fira-code
fira-mono
# TODO fira-sans + condensed
# TODO museo 500
];
fonts.fontconfig.enable = true;
}

View file

@ -133,25 +133,6 @@ let
mypy
];
fonts = [
comic-neue
source-sans-pro
source-code-pro
source-serif-pro
ubuntu_font_family
twemoji-color-font
open-sans
(iosevka-bin.override { variant = "curly-slab"; })
config.nur.repos.schmittlauch.vollkorn
# TODO: humor-sans
# fcio corporate design, TODO module
fira-code
fira-mono
# TODO fira-sans + condensed
# TODO museo 500
];
games = [
superTuxKart
#hedgewars
@ -256,8 +237,6 @@ in
desktop = lib.mkEnableOption "Enable a common set of desktop applications";
kde = lib.mkEnableOption "Enable a common set of KDE applications";
};
# TODO fonts in separate module
# TODO latex in separate module
config = {
home.packages = lib.flatten (
(lib.optional cfg.graphics graphicsApps)