diff --git a/modules/cli/zsh.nix b/modules/cli/zsh.nix index 3e92e40..fbe7405 100644 --- a/modules/cli/zsh.nix +++ b/modules/cli/zsh.nix @@ -3,6 +3,7 @@ { environment.pathsToLink = [ "/share/zsh" ]; home-manager.users.moritz = { + shell = pkgs.zsh; home.packages = with pkgs; [ du-dust ]; programs = { zsh = { @@ -14,11 +15,18 @@ ls = "exa -lh"; cat = "bat"; feh = "feh --auto-zoom --scale-down"; + + us = "systemctl --user"; + rs = "sudo systemctl"; }; enableSyntaxHighlighting = true; enableAutosuggestions = true; enableCompletion = true; - # initExtra = ''export DIRENV_LOG_FORMAT=""''; + initExtra = '' + function nix-which() { + readlink -f $(which $1) + } + ''; plugins = [{ name = "forgit"; src = inputs.forgit-git; diff --git a/modules/default.nix b/modules/default.nix index d39733d..8e19688 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -5,7 +5,6 @@ # USERS users.users.moritz = { - shell = pkgs.zsh; isNormalUser = true; home = "/home/moritz"; extraGroups =