about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-12-29 19:28:22 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-12-29 19:28:22 +0100
commit18c8381aee9718313760bafccd0a14207a31a400 (patch)
treeb956df5cb4c85a3a6fd6f866b2430c269a2e9403 /modules
parentFont: Add new font (diff)
downloadnixos-config-18c8381aee9718313760bafccd0a14207a31a400.tar.gz
nixos-config-18c8381aee9718313760bafccd0a14207a31a400.tar.bz2
nixos-config-18c8381aee9718313760bafccd0a14207a31a400.zip
Font: New font
Diffstat (limited to 'modules')
-rw-r--r--modules/fonts/berkeley-mono.nix (renamed from modules/fonts/berkeley-mono/default.nix)3
-rw-r--r--modules/fonts/default.nix6
-rw-r--r--modules/fonts/monolisa.nix35
-rw-r--r--modules/fonts/tx-02.nix35
4 files changed, 75 insertions, 4 deletions
diff --git a/modules/fonts/berkeley-mono/default.nix b/modules/fonts/berkeley-mono.nix
index 3375217..8625abd 100644
--- a/modules/fonts/berkeley-mono/default.nix
+++ b/modules/fonts/berkeley-mono.nix
@@ -8,7 +8,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
   pname = "berkeley-mono";
   version = "1";
 
-  src = ../../../secrets/berkeley-mono.zip;
+  src = ../../secrets/berkeley-mono.zip;
 
   outputs = [
     "out"
@@ -35,7 +35,6 @@ stdenvNoCC.mkDerivation (finalAttrs: {
 
   meta = {
     description = "Berkeley Mono Typeface";
-    longDescription = "…";
     homepage = "https://berkeleygraphics.com/typefaces/berkeley-mono";
     license = lib.licenses.unfree;
     platforms = lib.platforms.all;
diff --git a/modules/fonts/default.nix b/modules/fonts/default.nix
index 9c4cf45..e3a7086 100644
--- a/modules/fonts/default.nix
+++ b/modules/fonts/default.nix
@@ -6,11 +6,13 @@
       noto-fonts-emoji
       nerd-fonts.inconsolata-lgc
       nerd-fonts.noto
-      (pkgs.callPackage ./berkeley-mono {})
+      (pkgs.callPackage ./berkeley-mono.nix {})
+      (pkgs.callPackage ./tx-02.nix {})
+      (pkgs.callPackage ./monolisa.nix {})
     ];
     fontconfig = {
       defaultFonts = {
-        monospace = [ "Berkeley Mono" "Inconsolata LGC" ];
+        monospace = [ "TX-02" "Inconsolata LGC" ];
       };
     #   localConf = ''
     #   <?xml version="1.0"?>
diff --git a/modules/fonts/monolisa.nix b/modules/fonts/monolisa.nix
new file mode 100644
index 0000000..9ba1917
--- /dev/null
+++ b/modules/fonts/monolisa.nix
@@ -0,0 +1,35 @@
+{
+  lib,
+  requireFile,
+  unzip,
+  stdenvNoCC,
+}:
+stdenvNoCC.mkDerivation (finalAttrs: {
+  pname = "monolisa";
+  version = "1";
+
+  src = ../../secrets/monolisa.zip;
+
+  outputs = [
+    "out"
+  ];
+
+  nativeBuildInputs = [
+    unzip
+  ];
+
+  unpackPhase = ''
+    unzip $src
+  '';
+
+  installPhase = ''
+    install -m444 -Dt $out/share/fonts/opentype/monolisa monolisa/*.ttf
+  '';
+
+  meta = {
+    description = "Monolisa Typeface";
+    homepage = "https://monolisa.dev";
+    license = lib.licenses.unfree;
+    platforms = lib.platforms.all;
+  };
+})
diff --git a/modules/fonts/tx-02.nix b/modules/fonts/tx-02.nix
new file mode 100644
index 0000000..53bceb6
--- /dev/null
+++ b/modules/fonts/tx-02.nix
@@ -0,0 +1,35 @@
+{
+  lib,
+  requireFile,
+  unzip,
+  stdenvNoCC,
+}:
+stdenvNoCC.mkDerivation (finalAttrs: {
+  pname = "tx-02";
+  version = "1";
+
+  src = ../../secrets/tx-02.zip;
+
+  outputs = [
+    "out"
+  ];
+
+  nativeBuildInputs = [
+    unzip
+  ];
+
+  unpackPhase = ''
+    unzip $src
+  '';
+
+  installPhase = ''
+    install -m444 -Dt $out/share/fonts/opentype/tx-02 TX-02/*.otf
+  '';
+
+  meta = {
+    description = "Berkeley Mono TX-02 Typeface";
+    homepage = "https://berkeleygraphics.com/typefaces/berkeley-mono";
+    license = lib.licenses.unfree;
+    platforms = lib.platforms.all;
+  };
+})