From bb7ed6ff059337f41648d0285a1bfd10ecd92dca Mon Sep 17 00:00:00 2001 From: Alexandre1a Date: Thu, 1 Jan 2026 20:06:20 +0100 Subject: [PATCH] Started working on the ZSH config --- hosts/common/home.nix | 5 +--- hosts/nixos/configuration.nix | 1 + modules/home-manager/shell.nix | 48 ++++++++++++++++++++++++++++++++++ modules/home-manager/zed.nix | 13 ++++++--- 4 files changed, 59 insertions(+), 8 deletions(-) create mode 100644 modules/home-manager/shell.nix diff --git a/hosts/common/home.nix b/hosts/common/home.nix index 05dc9b2..3f1f0ae 100644 --- a/hosts/common/home.nix +++ b/hosts/common/home.nix @@ -6,6 +6,7 @@ inputs.spicetify-nix.homeManagerModules.spicetify ../../modules/home-manager/spicetify.nix ../../modules/home-manager/zed.nix + ../../modules/home-manager/shell.nix ]; @@ -20,10 +21,6 @@ }; }; }; - # Zed config - zed-ai = { - enable = true; - }; }; diff --git a/hosts/nixos/configuration.nix b/hosts/nixos/configuration.nix index 3b8277f..5d9326e 100644 --- a/hosts/nixos/configuration.nix +++ b/hosts/nixos/configuration.nix @@ -56,6 +56,7 @@ users.users.alex = { isNormalUser = true; description = "Alexandre Delcamp--Enache"; + shell = pkgs.zsh; extraGroups = [ "networkmanager" "wheel" ]; packages = with pkgs; [ ]; diff --git a/modules/home-manager/shell.nix b/modules/home-manager/shell.nix new file mode 100644 index 0000000..1f712d2 --- /dev/null +++ b/modules/home-manager/shell.nix @@ -0,0 +1,48 @@ +{ pkgs, ... }: + +{ + programs.zsh = { + enable = true; + package = pkgs.zsh; + enableCompletions = true; + autocd = true; + loginExtra = "echo Hello World!"; + + autosuggestion = { + enable = true; + strategy = "match_prev_cmd"; + }; + + dirHashes = { + code = "$\{config.home.homeDirectory}/Developer"; + }; + + history = { + append = true; + extended = true; + ignoreSpace = false; + save = 100000; + size = 100000; + saveNoDups = true; + share = true; + }; + + oh-my-zsh = { + enable = true; + package = pkgs.oh-my-zsh; + plugins = [ + "git" + "react-native" + "golang" + "docker" + #"brew" + "eza" + "fzf" + "gh" + "kitty" + "zsh-autosuggestions" + "zsh-syntax-highlighting" + ]; + }; + }; +} \ No newline at end of file diff --git a/modules/home-manager/zed.nix b/modules/home-manager/zed.nix index 72df88b..624c79d 100644 --- a/modules/home-manager/zed.nix +++ b/modules/home-manager/zed.nix @@ -26,13 +26,18 @@ extraPackages = [ pkgs.nixd ]; userSettings = { - theme = "Dracula"; + theme = { + mode = "system"; + "dark" = "Rosé Pine Moon"; + light = "Rosé Pine Dawn"; + }; + hour_format = "hour24"; language_models = { ollama = { - api_url = http://localhost:11434"; - auto_discover = true; + api_url = "http://localhost:11434"; + }; }; }; }; -} +} \ No newline at end of file