From c3142b076187f9770c5ffc068e981638326fbf96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Fri, 31 May 2024 14:52:02 +0200 Subject: [PATCH] Work on install zsh --- NixOS/flake.nix | 1 - NixOS/home.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/NixOS/flake.nix b/NixOS/flake.nix index 34faea0..588008d 100644 --- a/NixOS/flake.nix +++ b/NixOS/flake.nix @@ -22,7 +22,6 @@ home-manager.extraSpecialArgs = { inherit inputs; }; # allows access to flake inputs in hm modules home-manager.users.user = { imports = [ ./home.nix ]; - home.stateVersion = "24.11"; }; } ]; diff --git a/NixOS/home.nix b/NixOS/home.nix index 151950c..48993d6 100644 --- a/NixOS/home.nix +++ b/NixOS/home.nix @@ -1,4 +1,33 @@ +{ config, pkgs, ... }: + { + home.stateVersion = "24.11"; + targets.genericLinux.enable = true; + nixpkgs.config.allowUnfree = true; + programs.bash.enable = true; programs.neovim.enable = true; + programs.home-manager.enable = true; + + programs.git = { + enable = true; + userName = "Thomas Avé"; + userEmail = "email@thomasave.be"; + }; + + home.packages = with pkgs; [ + htop + ]; + + programs.zsh = { + enable = true; + enableCompletion = true; + syntaxHighlighting.enable = true; + + shellAliases = { + ll = "ls -lhat"; + }; + histSize = 10000; + histFile = "${config.xdg.dataHome}/zsh/history"; + }; }