mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 08:36:11 +01:00
partial modularization
This commit is contained in:
4
home-manager/features/cli/bash.nix
Normal file
4
home-manager/features/cli/bash.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
programs.bash = {
|
||||||
|
enable = true;
|
||||||
|
shellAliases = myAliases;
|
||||||
|
};
|
||||||
8
home-manager/features/cli/default.nix
Normal file
8
home-manager/features/cli/default.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
imports = [
|
||||||
|
./bash.nix
|
||||||
|
./git.nix
|
||||||
|
./zsh.nix
|
||||||
|
];
|
||||||
|
# home.packages = with pkgs; [];
|
||||||
|
}
|
||||||
26
home-manager/features/cli/git.nix
Normal file
26
home-manager/features/cli/git.nix
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "Michał Czyż";
|
||||||
|
userEmail = "mike@c2yz.com";
|
||||||
|
signing = {
|
||||||
|
key = "78D4829A477DAB25";
|
||||||
|
signByDefault = true;
|
||||||
|
};
|
||||||
|
extraConfig = {
|
||||||
|
push = {
|
||||||
|
default = "simple";
|
||||||
|
};
|
||||||
|
rerere = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
column = {
|
||||||
|
ui = "auto";
|
||||||
|
};
|
||||||
|
branch = {
|
||||||
|
sort = "-committerdate";
|
||||||
|
};
|
||||||
|
init = {
|
||||||
|
defaultBranch = "main";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
35
home-manager/features/cli/zsh.nix
Normal file
35
home-manager/features/cli/zsh.nix
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
|
||||||
|
history.size = 10000000;
|
||||||
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
||||||
|
|
||||||
|
shellAliases = myAliases;
|
||||||
|
|
||||||
|
initExtra = ''
|
||||||
|
[[ ! -f ${./p10k.zsh} ]] || source ${./p10k.zsh}
|
||||||
|
eval "$(zoxide init zsh)"
|
||||||
|
'';
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "powerlevel10k";
|
||||||
|
src = pkgs.zsh-powerlevel10k;
|
||||||
|
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
zplug = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
{ name = "zsh-users/zsh-autosuggestions"; }
|
||||||
|
# { name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [ "git" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
9
home-manager/features/kitty.nix
Normal file
9
home-manager/features/kitty.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
font = {
|
||||||
|
name = "FiraCode Nerd Font";
|
||||||
|
size = 12;
|
||||||
|
};
|
||||||
|
|
||||||
|
theme = "Gruvbox Dark";
|
||||||
|
};
|
||||||
10
home-manager/features/neovim.nix
Normal file
10
home-manager/features/neovim.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
programs.neovim = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.unstable.neovim-unwrapped;
|
||||||
|
|
||||||
|
viAlias = true;
|
||||||
|
vimAlias = true;
|
||||||
|
vimdiffAlias = true;
|
||||||
|
|
||||||
|
defaultEditor = true;
|
||||||
|
};
|
||||||
@@ -57,6 +57,9 @@ in {
|
|||||||
|
|
||||||
# You can also split up your configuration and import pieces of it here:
|
# You can also split up your configuration and import pieces of it here:
|
||||||
# ./nvim.nix
|
# ./nvim.nix
|
||||||
|
./features/cli
|
||||||
|
./features/kitty.nix
|
||||||
|
./features/neovim.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
@@ -140,6 +143,7 @@ in {
|
|||||||
unzip
|
unzip
|
||||||
gnome.gnome-keyring
|
gnome.gnome-keyring
|
||||||
gnome.adwaita-icon-theme
|
gnome.adwaita-icon-theme
|
||||||
|
R
|
||||||
|
|
||||||
# > media <
|
# > media <
|
||||||
spotify
|
spotify
|
||||||
@@ -152,7 +156,7 @@ in {
|
|||||||
discord
|
discord
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
libreoffice-fresh
|
libreoffice-fresh
|
||||||
# vscodium
|
vscodium
|
||||||
vscode
|
vscode
|
||||||
neovide
|
neovide
|
||||||
lunarvim
|
lunarvim
|
||||||
@@ -182,97 +186,6 @@ in {
|
|||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.kitty = {
|
|
||||||
enable = true;
|
|
||||||
font = {
|
|
||||||
name = "FiraCode Nerd Font";
|
|
||||||
size = 12;
|
|
||||||
};
|
|
||||||
|
|
||||||
theme = "Gruvbox Dark";
|
|
||||||
#Also available: Catppuccin-Frappe Catppuccin-Latte Catppuccin-Macchiato Catppuccin-Mocha
|
|
||||||
# See all available kitty themes at: https://github.com/kovidgoyal/kitty-themes/blob/46d9dfe230f315a6a0c62f4687f6b3da20fd05e4/themes.json
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.neovim = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.unstable.neovim-unwrapped;
|
|
||||||
|
|
||||||
viAlias = true;
|
|
||||||
vimAlias = true;
|
|
||||||
vimdiffAlias = true;
|
|
||||||
|
|
||||||
defaultEditor = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.bash = {
|
|
||||||
enable = true;
|
|
||||||
shellAliases = myAliases;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
|
|
||||||
history.size = 10000000;
|
|
||||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
|
||||||
|
|
||||||
shellAliases = myAliases;
|
|
||||||
|
|
||||||
initExtra = ''
|
|
||||||
[[ ! -f ${./p10k.zsh} ]] || source ${./p10k.zsh}
|
|
||||||
eval "$(zoxide init zsh)"
|
|
||||||
'';
|
|
||||||
plugins = [
|
|
||||||
{
|
|
||||||
name = "powerlevel10k";
|
|
||||||
src = pkgs.zsh-powerlevel10k;
|
|
||||||
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
zplug = {
|
|
||||||
enable = true;
|
|
||||||
plugins = [
|
|
||||||
{ name = "zsh-users/zsh-autosuggestions"; }
|
|
||||||
# { name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
oh-my-zsh = {
|
|
||||||
enable = true;
|
|
||||||
plugins = [ "git" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
userName = "Michał Czyż";
|
|
||||||
userEmail = "mike@c2yz.com";
|
|
||||||
signing = {
|
|
||||||
key = "78D4829A477DAB25";
|
|
||||||
signByDefault = true;
|
|
||||||
};
|
|
||||||
extraConfig = {
|
|
||||||
push = {
|
|
||||||
default = "simple";
|
|
||||||
};
|
|
||||||
rerere = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
column = {
|
|
||||||
ui = "auto";
|
|
||||||
};
|
|
||||||
branch = {
|
|
||||||
sort = "-committerdate";
|
|
||||||
};
|
|
||||||
init = {
|
|
||||||
defaultBranch = "main";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user