Add zsh config

This commit is contained in:
Marko Korhonen 2024-09-16 21:57:08 +03:00
parent 7bbb0f74de
commit 122bbc2236
4 changed files with 35 additions and 10 deletions

View file

@ -59,10 +59,13 @@
security.rtkit.enable = true; security.rtkit.enable = true;
programs.firefox = { programs = {
firefox = {
enable = true; enable = true;
nativeMessagingHosts.packages = [ pkgs.browserpass ]; nativeMessagingHosts.packages = [ pkgs.browserpass ];
}; };
zsh = { enable = true; };
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git

View file

@ -12,7 +12,6 @@
outputs = { nixpkgs, home-manager, ... }: outputs = { nixpkgs, home-manager, ... }:
let let
lib = nixpkgs.lib;
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
in in

View file

@ -1,9 +1,10 @@
{ config, pkgs, ... }: { pkgs, ... }:
{ {
users.users.functionalhacker = { users.users.functionalhacker = {
description = "Marko"; description = "Marko";
isNormalUser = true; isNormalUser = true;
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.zsh;
}; };
} }

View file

@ -1,11 +1,33 @@
{ config, lib, pkgs, ... }: { config, pkgs, ... }:
{ {
programs.neovim = { programs = {
neovim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
}; };
zsh = {
enable = true;
zplug = {
enable = true;
plugins = [
{ name = "mafredri/zsh-async"; }
{
name = "sindresorhus/pure";
tags = [ "use:pure.zsh" "as:theme" ];
}
{ name = "Aloxaf/fzf-tab"; }
{ name = "zsh-users/zsh-history-substring-search"; }
{ name = "wfxr/forgit"; }
{ name = "zsh-users/zsh-completions"; }
{ name = "zdharma-continuum/fast-syntax-highlighting"; }
{ name = "RobSis/zsh-completion-generator"; }
];
};
};
};
home = { home = {
username = "functionalhacker"; username = "functionalhacker";
homeDirectory = "/home/functionalhacker"; homeDirectory = "/home/functionalhacker";
@ -23,9 +45,9 @@
nerdfonts nerdfonts
nodejs nodejs
pass pass
ripgrep
tree-sitter tree-sitter
yarn yarn
zsh
]; ];
}; };
} }