diff --git a/nix/configuration.nix b/nix/configuration.nix index 054b2d0..94dd0d5 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -11,6 +11,8 @@ pkgs.htop ]; + environment.pathsToLink = [ "/share/zsh" ]; + # Necessary for using flakes on this system. nix.settings.experimental-features = "nix-command flakes"; diff --git a/nix/home.nix b/nix/home.nix index e127d5e..fccc482 100644 --- a/nix/home.nix +++ b/nix/home.nix @@ -1,18 +1,8 @@ { config, pkgs, ... }: { + home.stateVersion = "25.05"; - # This value determines the Home Manager release that your configuration is - # compatible with. This helps avoid breakage when a new Home Manager release - # introduces backwards incompatible changes. - # - # You should not change this value, even if you update Home Manager. If you do - # want to update the value, then make sure to first check the Home Manager - # release notes. - home.stateVersion = "25.05"; # Please read the comment before changing. - - # The home.packages option allows you to install Nix packages into your - # environment. home.packages = [ pkgs.graphviz pkgs.jq @@ -33,7 +23,15 @@ # echo "Hello, ${config.home.username}!" # '') ]; - programs.zsh.enable = true; + programs.zsh = { + enable = true; + enableCompletion = true; + autosuggestion.enable = true; + syntaxHighlighting.enable = true; + + sessionVariables = {CLICOLOR = 1;}; + shellAliases = {pyact = "source .venv/bin/activate";}; + }; # Home Manager is pretty good at managing dotfiles. The primary way to manage # plain files is through 'home.file'.