zsh
This commit is contained in:
parent
7c484da6dd
commit
4698a6318d
4 changed files with 38 additions and 12 deletions
|
@ -30,6 +30,7 @@
|
||||||
# ALOT faster
|
# ALOT faster
|
||||||
search.enable = true;
|
search.enable = true;
|
||||||
};
|
};
|
||||||
|
zsh.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -42,7 +43,6 @@
|
||||||
# TODO(sako):: put this in different files
|
# TODO(sako):: put this in different files
|
||||||
# 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’.
|
||||||
users.users.sako= {
|
users.users.sako= {
|
||||||
shell = pkgs.zsh;
|
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
@ -129,17 +129,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
# TODO(sako):: make my own zsh config
|
|
||||||
promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
|
||||||
};
|
|
||||||
|
|
||||||
fonts.fonts = with pkgs;[
|
|
||||||
jetbrains-mono
|
|
||||||
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
|
||||||
];
|
|
||||||
|
|
||||||
# git crediental manager is in gitFull package
|
# git crediental manager is in gitFull package
|
||||||
# config options happen to be here too
|
# config options happen to be here too
|
||||||
#programs.git = {
|
#programs.git = {
|
||||||
|
|
|
@ -20,5 +20,12 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# also just in case
|
||||||
|
fonts.fonts = with pkgs;[
|
||||||
|
jetbrains-mono
|
||||||
|
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
||||||
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./nix
|
./nix
|
||||||
|
./zsh
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
29
modules/shell/zsh/default.nix
Normal file
29
modules/shell/zsh/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{ inputs, options, config, lib, pkgs, ...}:
|
||||||
|
# this makes
|
||||||
|
# nix search nixpkgs <package>
|
||||||
|
# ALOT faster
|
||||||
|
with lib;
|
||||||
|
let cfg = config.modules.shell.zsh;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.shell.zsh = {
|
||||||
|
enable = mkEnableOption false;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
users.users.sako.shell = pkgs.zsh;
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||||
|
};
|
||||||
|
|
||||||
|
# for theme
|
||||||
|
fonts.fonts = with pkgs;[
|
||||||
|
jetbrains-mono
|
||||||
|
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue