zsh with starship

This commit is contained in:
root 2024-02-26 15:22:46 +01:00
parent 3035a76f43
commit cf21a0a319
4 changed files with 32 additions and 4 deletions

View file

@ -3,7 +3,7 @@ opacity=0.8
dynamic_padding=true
[font]
#normal={family="Source Code Pro"}
normal= { family="FiraCode Nerd Font Mono" }
size=10
[colors]

View file

@ -81,7 +81,9 @@
# services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
programs.zsh.enable = true;
users.users.catvayor = {
shell = pkgs.zsh;
isNormalUser = true;
extraGroups = [ "wheel" "usb" "networkmanager" "video" "audio" ];
packages = with pkgs; [
@ -89,6 +91,7 @@
tree
];
};
users.users.root.shell = pkgs.zsh;
environment.systemPackages = with pkgs; [
wget
@ -98,6 +101,10 @@
btop
ranger
];
fonts.packages = with pkgs; [
fira-code-nerdfont
font-awesome
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
@ -118,7 +125,7 @@
# };
home-manager.users.root = {
home.stateVersion = "23.11";
imports = [ ./neovim ];
imports = [ ./neovim ./zsh.nix ];
};
services.syncthing = {

View file

@ -6,7 +6,7 @@
home-manager.users.catvayor = {
home.stateVersion = "23.11";
imports = [ ./neovim ];
imports = [ ./neovim ./zsh.nix ];
xdg.configFile."sway/config".onChange = lib.mkForce "";
@ -25,7 +25,6 @@
wl-clipboard
firefox
pavucontrol
font-awesome
libnotify
discord

22
zsh.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, pkgs, lib, ... }:
{
programs.zsh = {
enable = true;
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
};
zplug = {
enable = true;
plugins = [
{ name = "zsh-users/zsh-autosuggestions"; }
{ name = "zsh-users/zsh-syntax-highlighting"; }
];
};
};
programs.starship = {
enable = true;
enableZshIntegration = true;
};
}