structure and add like MatthiasBenaets

This commit is contained in:
2022-09-17 16:50:50 +02:00
parent 4065bc1e26
commit e454d95a99
30 changed files with 1791 additions and 229 deletions

16
modules/shell/default.nix Normal file
View File

@@ -0,0 +1,16 @@
#
# Shell
#
# flake.nix
# ├─ ./hosts
# │ └─ home.nix
# └─ ./modules
# └─ ./shell
# └─ default.nix *
# └─ ...
#
[
./git.nix
./zsh.nix
]

13
modules/shell/git.nix Normal file
View File

@@ -0,0 +1,13 @@
#
# Git
#
{
programs = {
git = {
enable = true;
userName = "Kabbone";
userEmail = "tobias@opel-online.de";
};
};
}

View File

@@ -0,0 +1,48 @@
#
# System themes
#
{
scheme = {
doom = {
scheme = "Doom One Dark";
black = "000000";
red = "ff6c6b";
orange = "da8548";
yellow = "ecbe7b";
green = "95be65";
teal = "4db5bd";
blue = "6eaafb";
dark-blue = "2257a0";
magenta = "c678dd";
violet = "a9a1e1";
cyan = "6cdcf7";
dark-cyan = "5699af";
emphasis = "50536b";
text = "dfdfdf";
text-alt = "b2b2b2";
fg = "abb2bf";
bg = "282c34";
};
dracula = {
scheme = "Dracula";
base00 = "282936"; #background
base01 = "3a3c4e";
base02 = "4d4f68";
base03 = "626483";
base04 = "62d6e8";
base05 = "e9e9f4"; #foreground
base06 = "f1f2f8";
base07 = "f7f7fb";
base08 = "ea51b2";
base09 = "b45bcf";
base0A = "00f769";
base0B = "ebff87";
base0C = "a1efe4";
base0D = "62d6e8";
base0E = "b45bcf";
base0F = "00f769";
};
};
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

34
modules/shell/zsh.nix Normal file
View File

@@ -0,0 +1,34 @@
#
# Shell
#
{ pkgs, ... }:
{
programs = {
zsh = {
enable = true;
dotDir = ".config/zsh_nix";
enableAutosuggestions = true; # Auto suggest options and highlights syntact, searches in history for options
enableSyntaxHighlighting = true;
history.size = 10000;
oh-my-zsh = { # Extra plugins for zsh
enable = true;
plugins = [ "git" ];
custom = "$HOME/.config/zsh_nix/custom";
};
initExtra = '' # Zsh theme
# Spaceship
source ${pkgs.spaceship-prompt}/share/zsh/site-functions/prompt_spaceship_setup
autoload -U promptinit; promptinit
# source $HOME/.config/shell/shell_init
# Hook direnv
# emulate zsh -c "$(direnv hook zsh)"
# Swag
pfetch # Show fetch logo on terminal start
'';
};
};
}