mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
system/fonts: init from legacy
This commit is contained in:
parent
a3e7d59f58
commit
eafb6ddbb7
5 changed files with 46 additions and 32 deletions
|
@ -1,9 +1,5 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./fonts.nix
|
||||
];
|
||||
|
||||
programs.gnome-disks.enable = true;
|
||||
services.udisks2.enable = true;
|
||||
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
fonts = {
|
||||
fontconfig.defaultFonts = {
|
||||
sansSerif = [ "Ubuntu" ];
|
||||
monospace = [ "Ubuntu Mono" ];
|
||||
};
|
||||
|
||||
fonts = with pkgs; [
|
||||
cantarell-fonts # gnome default
|
||||
fira
|
||||
fira-code # coding
|
||||
fira-code-symbols # ligatures
|
||||
fira-mono
|
||||
font-awesome # icons
|
||||
joypixels # emojis
|
||||
liberation_ttf # main microsoft fonts
|
||||
# mplus-outline-fonts.githubRelease # microsoft fonts
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-emoji
|
||||
noto-fonts-extra
|
||||
ubuntu_font_family
|
||||
unifont # unicode fallback
|
||||
];
|
||||
};
|
||||
nixpkgs.config.joypixels.acceptLicense = true;
|
||||
}
|
|
@ -6,6 +6,7 @@ in
|
|||
{
|
||||
my.system = {
|
||||
avahi.enable = true;
|
||||
fonts.enable = true;
|
||||
kvm = {
|
||||
enable = true;
|
||||
cpuFlavor = "intel";
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
imports = [
|
||||
./avahi
|
||||
./docker
|
||||
./fonts
|
||||
./kvm
|
||||
./podman
|
||||
];
|
||||
|
|
44
modules/system/fonts/default.nix
Normal file
44
modules/system/fonts/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.system.fonts;
|
||||
in
|
||||
{
|
||||
options.my.system.fonts = with lib; {
|
||||
enable = mkEnableOption "fonts configuration";
|
||||
|
||||
additionalFonts = mkOption {
|
||||
type = types.listOf types.package;
|
||||
default = [ ];
|
||||
example = "fira";
|
||||
description = "Which additional fonts should be added as well";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
fonts = {
|
||||
fontconfig.defaultFonts = {
|
||||
sansSerif = [ "Ubuntu" ];
|
||||
monospace = [ "Ubuntu Mono" ];
|
||||
};
|
||||
|
||||
fonts = with pkgs; [
|
||||
cantarell-fonts # gnome default
|
||||
fira
|
||||
fira-code # coding
|
||||
fira-code-symbols # ligatures
|
||||
fira-mono
|
||||
font-awesome # icons
|
||||
joypixels # emojis
|
||||
liberation_ttf # main microsoft fonts
|
||||
# mplus-outline-fonts.githubRelease # microsoft fonts
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-emoji
|
||||
noto-fonts-extra
|
||||
ubuntu_font_family
|
||||
unifont # unicode fallback
|
||||
] ++ cfg.additionalFonts;
|
||||
};
|
||||
nixpkgs.config.joypixels.acceptLicense = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue