adds aliases and functions

nixos
Moritz Böhme 2021-11-29 11:54:09 +01:00
parent 9dde3e8806
commit 7498454bbd
2 changed files with 9 additions and 2 deletions

View File

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

View File

@ -5,7 +5,6 @@
# USERS # USERS
users.users.moritz = { users.users.moritz = {
shell = pkgs.zsh;
isNormalUser = true; isNormalUser = true;
home = "/home/moritz"; home = "/home/moritz";
extraGroups = extraGroups =