From ed9d67de60347e75c005a3e7f530cc7e4f46a463 Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Thu, 9 May 2024 14:21:07 +0200
Subject: [PATCH] Enable `zoxide` in a generic config file

---
 lib/users/common.nix | 12 ++++++++++++
 lib/users/manuel.nix | 17 ++++++++++++-----
 2 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/lib/users/common.nix b/lib/users/common.nix
index 4b2c5c4..0ad6523 100644
--- a/lib/users/common.nix
+++ b/lib/users/common.nix
@@ -1,2 +1,14 @@
 { ... }: {
+  config = {
+    programs = {
+      bash.enable = true;
+      fish.enable = true;
+      zsh.enable = true;
+
+      zoxide = {
+        enable = true;
+        enableFishIntegration = true;
+      };
+    };
+  };
 }
diff --git a/lib/users/manuel.nix b/lib/users/manuel.nix
index 2aae47b..fd2a1fb 100644
--- a/lib/users/manuel.nix
+++ b/lib/users/manuel.nix
@@ -1,12 +1,19 @@
 { user, ... }: {
+  imports = [
+    ./common.nix
+  ];
+
   config = {
     home.stateVersion = "23.11";
-    programs.home-manager.enable = true;
 
-    programs.git = {
-      enable = true;
-      userName = user.fullName;
-      userEmail = user.mail;
+    programs = {
+      home-manager.enable = true;
+
+      git = {
+        enable = true;
+        userName = user.fullName;
+        userEmail = user.mail;
+      };
     };
   };
 }
\ No newline at end of file