home: fix missing fonts, refactor into module
This commit is contained in:
parent
7956d7ff0f
commit
2e3694a6fb
|
@ -9,6 +9,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./modules/packages.nix
|
./modules/packages.nix
|
||||||
./modules/vscodium.nix
|
./modules/vscodium.nix
|
||||||
|
./modules/fonts.nix
|
||||||
];
|
];
|
||||||
home.homeDirectory =
|
home.homeDirectory =
|
||||||
if pkgs.stdenv.isDarwin then "/Users/${config.home.username}" else "/home/${config.home.username}";
|
if pkgs.stdenv.isDarwin then "/Users/${config.home.username}" else "/home/${config.home.username}";
|
||||||
|
@ -38,7 +39,6 @@
|
||||||
terminal = "screen-256color";
|
terminal = "screen-256color";
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
29
home/modules/fonts.nix
Normal file
29
home/modules/fonts.nix
Normal 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;
|
||||||
|
}
|
|
@ -133,25 +133,6 @@ let
|
||||||
mypy
|
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 = [
|
games = [
|
||||||
superTuxKart
|
superTuxKart
|
||||||
#hedgewars
|
#hedgewars
|
||||||
|
@ -256,8 +237,6 @@ in
|
||||||
desktop = lib.mkEnableOption "Enable a common set of desktop applications";
|
desktop = lib.mkEnableOption "Enable a common set of desktop applications";
|
||||||
kde = lib.mkEnableOption "Enable a common set of KDE applications";
|
kde = lib.mkEnableOption "Enable a common set of KDE applications";
|
||||||
};
|
};
|
||||||
# TODO fonts in separate module
|
|
||||||
# TODO latex in separate module
|
|
||||||
config = {
|
config = {
|
||||||
home.packages = lib.flatten (
|
home.packages = lib.flatten (
|
||||||
(lib.optional cfg.graphics graphicsApps)
|
(lib.optional cfg.graphics graphicsApps)
|
||||||
|
|
Loading…
Reference in a new issue