diff options
| author | kdam0 <me@kumardamani.net> | 2023-03-14 00:39:25 +0000 |
|---|---|---|
| committer | kdam0 <me@kumardamani.net> | 2023-03-14 00:39:25 +0000 |
| commit | ffb6bab31f75abe6bfe4f8a89fdba332f242e388 (patch) | |
| tree | 4bda1e243c3cf234e273f78e482010758fde5301 | |
| parent | 4b271b058f858e6dadc8dfe9bdf4cc7fd52de55e (diff) | |
zsh stuff
| -rw-r--r-- | nixpkgs/.config/nixpkgs/configuration.nix | 1 | ||||
| -rw-r--r-- | nixpkgs/.config/nixpkgs/flake.nix | 1 | ||||
| -rw-r--r-- | nixpkgs/.config/nixpkgs/home.nix | 24 |
3 files changed, 24 insertions, 2 deletions
diff --git a/nixpkgs/.config/nixpkgs/configuration.nix b/nixpkgs/.config/nixpkgs/configuration.nix index 213d986..154104b 100644 --- a/nixpkgs/.config/nixpkgs/configuration.nix +++ b/nixpkgs/.config/nixpkgs/configuration.nix @@ -51,6 +51,7 @@ "video" "audio" ]; + shell = pkgs.zsh; }; # List packages installed in system profile. To search, run: diff --git a/nixpkgs/.config/nixpkgs/flake.nix b/nixpkgs/.config/nixpkgs/flake.nix index a3e4588..8be77de 100644 --- a/nixpkgs/.config/nixpkgs/flake.nix +++ b/nixpkgs/.config/nixpkgs/flake.nix @@ -20,7 +20,6 @@ home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.users.kdam0 = import ./home.nix; - #home-manager.users.kdam0 = import /home/kdam0/.config/nixpkgs/home.nix; # Optionally, use home-manager.extraSpecialArgs to pass # arguments to home.nix diff --git a/nixpkgs/.config/nixpkgs/home.nix b/nixpkgs/.config/nixpkgs/home.nix index 52ffdac..b216ec1 100644 --- a/nixpkgs/.config/nixpkgs/home.nix +++ b/nixpkgs/.config/nixpkgs/home.nix @@ -4,7 +4,29 @@ home.homeDirectory = "/home/kdam0"; programs.home-manager.enable = true; - programs.zsh.enable = true; + programs.zsh = { + enable = true; + defaultKeymap = "viins"; + initExtra = '' + source ~/.p10k.zsh + ''; + shellAliases = { + ll = "ls -al"; + ".." = "cd .."; + up = "sudo nixos-rebuild switch"; + cdwl = "nvim ~/.config/nixpkgs/dwl/config.h"; + chm = "nvim ~/.config/nixpkgs/home.nix"; + cnix = "nvim ~/.config/nixpkgs/configuration.nix"; + gst = "git status"; + }; + zplug = { + enable = true; + plugins = [ + { name = "zsh-users/zsh-autosuggestions"; } + { name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; } + ]; + }; + }; home.stateVersion = "22.11"; home.packages = [ |
