From 6d17beda374d10de407cbca94d99809f5f811820 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 7 Feb 2022 19:51:25 -0800 Subject: modules: start desktop configuration We will create a module for desktop (which will also be used by the laptop). Start by configuring the fonts. --- modules/desktop/default.nix | 6 ++++++ modules/desktop/fonts.nix | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 modules/desktop/default.nix create mode 100644 modules/desktop/fonts.nix (limited to 'modules') diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix new file mode 100644 index 0000000..be7eaaf --- /dev/null +++ b/modules/desktop/default.nix @@ -0,0 +1,6 @@ +{lib, config, pkgs, ...}: +{ + imports = [ + ./fonts.nix + ]; +} diff --git a/modules/desktop/fonts.nix b/modules/desktop/fonts.nix new file mode 100644 index 0000000..a840582 --- /dev/null +++ b/modules/desktop/fonts.nix @@ -0,0 +1,18 @@ +{ pkgs, config, lib, ... }: + +{ + fonts = { + fontconfig.enable = true; + fonts = with pkgs; [ + noto-fonts-emoji + dejavu_fonts + source-code-pro + source-sans-pro + source-serif-pro + ]; + + fontconfig.defaultFonts = { + monospace = [ "Source Code Pro" ]; + }; + }; +} -- cgit 1.4.1