about summary refs log tree commit diff
path: root/modules/common
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-05-04 16:11:40 +0300
committerAzat Bahawi <azat@bahawi.net>2024-05-04 16:11:40 +0300
commit3cd3233f7eaf2a8a715d587820d6d4577a24d958 (patch)
treef87bd583c383b8ac3496229ab6f1d3a00a2253a0 /modules/common
parent2024-05-02 (diff)
2024-05-04
Diffstat (limited to 'modules/common')
-rw-r--r--modules/common/nix.nix5
-rw-r--r--modules/common/shell/default.nix4
-rw-r--r--modules/common/stylix.nix51
3 files changed, 32 insertions, 28 deletions
diff --git a/modules/common/nix.nix b/modules/common/nix.nix
index d6e8edb..c03c1b1 100644
--- a/modules/common/nix.nix
+++ b/modules/common/nix.nix
@@ -3,6 +3,7 @@
   inputs,
   lib,
   pkgs,
+  pkgsPr,
   this,
   ...
 }:
@@ -125,7 +126,9 @@ in
 
       overlays = with inputs; [
         self.overlays.default
-        (_: _super: { })
+        (_: _super: {
+          inherit (pkgsPr 309018 "sha256-x3ATxjrTVdaX5eo9P6pz+8/W6D2TNYzvjZpOBa3ZRI8=") endlessh-go;
+        })
       ];
     };
 
diff --git a/modules/common/shell/default.nix b/modules/common/shell/default.nix
index 9ef1c22..4ae41d8 100644
--- a/modules/common/shell/default.nix
+++ b/modules/common/shell/default.nix
@@ -1,6 +1,5 @@
 {
   config,
-  inputs,
   lib,
   pkgs,
   this,
@@ -19,8 +18,6 @@ in
 
   config = {
     hm = {
-      imports = [ inputs.nix-index-database.hmModules.nix-index ];
-
       programs = {
         bash = {
           enable = true;
@@ -185,7 +182,6 @@ in
         dircolors.enable = true;
 
         command-not-found.enable = false;
-        nix-index-database.comma.enable = true;
       };
 
       home.packages = with pkgs; [ grc ];
diff --git a/modules/common/stylix.nix b/modules/common/stylix.nix
index 953685e..9a360ad 100644
--- a/modules/common/stylix.nix
+++ b/modules/common/stylix.nix
@@ -3,6 +3,7 @@
   inputs,
   lib,
   pkgs,
+  this,
   ...
 }:
 with lib;
@@ -76,29 +77,33 @@ with lib;
     fonts = {
       packages = mkAfter config.nixfiles.modules.common.stylix.fonts.extraPackages;
 
-      fontconfig.defaultFonts = with config.stylix.fonts; {
-        serif = mkForce [
-          serif.name
-          "Sarasa Gothic"
-          "Source Han Serif"
-          "Noto Serif"
-        ];
-        sansSerif = mkForce [
-          sansSerif.name
-          "Sarasa Gothic"
-          "Source Han Sans"
-          "Noto Sans"
-        ];
-        monospace = mkForce [
-          monospace.name
-          "Sarasa Mono"
-          "Source Han Mono"
-          "Noto Sans Mono"
-        ];
-        emoji = mkForce [
-          "Twitter Color Emoji"
-          "Noto Color Emoji"
-        ];
+      fontconfig = {
+        enable = this.isHeadful;
+
+        defaultFonts = with config.stylix.fonts; {
+          serif = mkForce [
+            serif.name
+            "Sarasa Gothic"
+            "Source Han Serif"
+            "Noto Serif"
+          ];
+          sansSerif = mkForce [
+            sansSerif.name
+            "Sarasa Gothic"
+            "Source Han Sans"
+            "Noto Sans"
+          ];
+          monospace = mkForce [
+            monospace.name
+            "Sarasa Mono"
+            "Source Han Mono"
+            "Noto Sans Mono"
+          ];
+          emoji = mkForce [
+            "Twitter Color Emoji"
+            "Noto Color Emoji"
+          ];
+        };
       };
     };
   };

Consider giving Nix/NixOS a try! <3