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 dynamic_padding=true
[font] [font]
#normal={family="Source Code Pro"} normal= { family="FiraCode Nerd Font Mono" }
size=10 size=10
[colors] [colors]

View file

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

View file

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