aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-07 19:51:25 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-07 19:51:25 -0800
commit6d17beda374d10de407cbca94d99809f5f811820 (patch)
tree9bea82b41fe708c34c0dde77e30fb0edfb800d30
parentflake: pull home-manager and unstable (diff)
downloadinfra-6d17beda374d10de407cbca94d99809f5f811820.tar.gz
modules: start desktop configuration
We will create a module for desktop (which will also be used by the laptop). Start by configuring the fonts.
-rw-r--r--modules/desktop/default.nix6
-rw-r--r--modules/desktop/fonts.nix18
2 files changed, 24 insertions, 0 deletions
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" ];
+ };
+ };
+}