This commit is contained in:
Sakooooo 2023-07-08 22:27:08 +03:00
parent 7c484da6dd
commit 4698a6318d
Signed by: sako
GPG key ID: 3FD715D87D7725E0
4 changed files with 38 additions and 12 deletions

View file

@ -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 = {

View file

@ -20,5 +20,12 @@ in
}; };
}; };
}; };
# also just in case
fonts.fonts = with pkgs;[
jetbrains-mono
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
];
}; };
} }

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./nix ./nix
./zsh
]; ];
} }

View 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" ]; })
];
};
}