summaryrefslogtreecommitdiff
path: root/os/core/fonts.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-12-24 16:21:00 +0100
committeradikro <adikro@disroot.org>2025-12-24 16:21:00 +0100
commit6aaa5993e4c1cfb205ed555d958702f9bba1770d (patch)
tree3af8cf20967cf10542edd2e51232b1da70002fde /os/core/fonts.nix
parent2ceabfd1d1dc03ca895e960048b73a82e29e45e8 (diff)
a bunch of changes, renames sys to os and refactored some of the logic
Diffstat (limited to 'os/core/fonts.nix')
-rw-r--r--os/core/fonts.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/os/core/fonts.nix b/os/core/fonts.nix
new file mode 100644
index 0000000..1173439
--- /dev/null
+++ b/os/core/fonts.nix
@@ -0,0 +1,22 @@
+{ config, lib, pkgs, ... }:
+let
+ cfg = config.sys.core.fonts;
+in
+{
+ options.sys.core.fonts.enable = lib.mkEnableOption "system-wide font and console configuration";
+
+ config = lib.mkIf cfg.enable {
+ console = {
+ keyMap = "pl";
+ earlySetup = true;
+ font = "ter-v32n";
+ packages = with pkgs; [ terminus_font ];
+ };
+
+ fonts.packages = with pkgs; [
+ nerd-fonts.jetbrains-mono
+ nerd-fonts.fira-mono
+ nerd-fonts.fira-code
+ ];
+ };
+}