moved zsh,vscode,and alacritty hm config to new module

This commit is contained in:
specCon18 2023-04-18 02:09:20 -04:00
parent 37784af8b0
commit b40c908ffe
5 changed files with 148 additions and 144 deletions

View file

@ -88,13 +88,11 @@
] #extra modules to load ] #extra modules to load
[ [
./modules/home-manager/helix.nix ./modules/home-manager/helix.nix
./modules/home-manager/alacritty.nix
./modules/home-manager/vscode.nix
./modules/home-manager/zsh.nix
]; #extra modules to be loaded by home-manager ]; #extra modules to be loaded by home-manager
}; };
packages.${system} = {
dconfnixdump = pkgs.writeScriptBin "deconfnixdump"''
dconf dump / | dconf2nix > dconf.nix
'';
};
}; };
} }

View file

@ -0,0 +1,60 @@
{ pkgs, config, lib, ...}:
{
programs.alacritty = {
enable = true;
settings = {
window = {
dimensions = {
columns = 120;
lines = 25;
};
decorations = "none";
opacity = 0.8;
title = "Alacritty";
};
font = {
normal = {
family = "SauceCodePro Nerd Font";
};
bold = {
family = "SauceCodePro Nerd Font";
style = "bold";
};
size = 12;
};
colors = {
primary = {
background = "#1d1f21";
foreground = "#c5c8c6";
};
cursor = {
text = "CellBackground";
cursor = "CellForeground";
};
# Normal colors
normal = {
black = "#363537";
red = "#FC618D";
green = "#7BD88F";
yellow = "#FCE566";
blue = "#FD9353";
magenta = "#948AE3";
cyan = "#5AD4E6";
white = "#F7F1FF";
};
# Bright colors
bright = {
black = "#69676C";
red = "#FC618D";
green = "#7BD88F";
yellow = "#FCE566";
blue = "#FD9353";
magenta = "#948AE3";
cyan = "#5AD4E6";
white = "#F7F1FF";
};
};
};
};
}

View file

@ -0,0 +1,54 @@
{ pkgs, config, lib, ...}:
{
programs.vscode = {
enable = true;
package = pkgs.vscode.fhs;
enableExtensionUpdateCheck = true;
enableUpdateCheck = false;
extensions = with pkgs.vscode-extensions; [
bbenoist.nix
redhat.vscode-yaml
bungcip.better-toml
firefox-devtools.vscode-firefox-debug
ms-vscode-remote.remote-ssh
ms-azuretools.vscode-docker
editorconfig.editorconfig
dbaeumer.vscode-eslint
donjayamanne.githistory
github.copilot
eamodio.gitlens
graphql.vscode-graphql
oderwat.indent-rainbow
skellock.just
jnoortheen.nix-ide
christian-kohler.path-intellisense
esbenp.prettier-vscode
svelte.svelte-vscode
bradlc.vscode-tailwindcss
thenuprojectcontributors.vscode-nushell-lang
matklad.rust-analyzer
];
userSettings = {
"workbench.colorTheme" = "Monokai Pro (Filter Octagon)";
"workbench.startupEditor" = "none";
"workbench.iconTheme" = "Monokai Pro Icons";
"git.autofetch" = true;
"redhat.telemetry.enabled" = false;
"svelte.enable-ts-plugin" = true;
"window.menuBarVisibility" = "compact";
"prettier.singleQuote" = true;
"prettier.useTabs" = true;
"prettier.bracketSpacing" = false;
"prettier.htmlWhitespaceSensitivity" = "strict";
"typescript.updateImportsOnFileMove.enabled" = "always";
"editor.fontFamily" = "OpenDyslexic, OpenDyslexic Mono NF";
"rust-analyzer.inlayHints.chainingHints.enable" = false;
"rust-analyzer.inlayHints.closingBraceHints.enable" = false;
"rust-analyzer.inlayHints.renderColons" = false;
"rust-analyzer.inlayHints.parameterHints.enable" = false;
"editor.minimap.enabled" = false;
"editor.inlineSuggest.enabled" = true;
"window.zoomLevel" = 1;
};
};
}

View file

@ -0,0 +1,29 @@
{ pkgs, config, lib, ...}:
{
programs.zsh = {
enable = lib.mkDefault true;
dotDir = ".config/zsh";
history = {
path = "$ZDOTDIR/.zsh_history";
save = 10000000;
};
enableAutosuggestions = lib.mkDefault true;
enableCompletion = lib.mkDefault true;
enableSyntaxHighlighting = lib.mkDefault true;
shellAliases = {
ls = "exa -l";
lsa = "exa -al";
cd = "z";
osrb = "sudo nixos-rebuild $1 --flake ~/code/nix/nixos-config/#creatorforge-framework";
zel = "zellij -s";
ns = "nix-shell";
top = "btm";
hx = "hx";
cat = "bat";
extract = "~/.config/zsh/extract.sh";
};
localVariables = {
EDITOR="hx";
};
};
}

View file

@ -10,12 +10,10 @@
prismlauncher prismlauncher
calibre calibre
w3m w3m
nushell
bitwarden bitwarden
firefox firefox
discord discord
nodejs-18_x nodejs-18_x
spotify
nerdfonts nerdfonts
fira-code fira-code
libreoffice libreoffice
@ -25,13 +23,9 @@
obsidian obsidian
neofetch neofetch
vlc vlc
zellij
zoxide
remmina remmina
signal-desktop signal-desktop
starship
just just
alacritty
bacon bacon
bottom bottom
xplr xplr
@ -49,63 +43,7 @@
enable = true; enable = true;
package = pkgs.ncspot; package = pkgs.ncspot;
}; };
alacritty = {
enable = true;
settings = {
window = {
dimensions = {
columns = 120;
lines = 25;
};
decorations = "none";
opacity = 0.8;
title = "Alacritty";
};
font = {
normal = {
family = "SauceCodePro Nerd Font";
};
bold = {
family = "SauceCodePro Nerd Font";
style = "bold";
};
size = 12;
};
colors = {
primary = {
background = "#1d1f21";
foreground = "#c5c8c6";
};
cursor = {
text = "CellBackground";
cursor = "CellForeground";
};
# Normal colors
normal = {
black = "#363537";
red = "#FC618D";
green = "#7BD88F";
yellow = "#FCE566";
blue = "#FD9353";
magenta = "#948AE3";
cyan = "#5AD4E6";
white = "#F7F1FF";
};
# Bright colors
bright = {
black = "#69676C";
red = "#FC618D";
green = "#7BD88F";
yellow = "#FCE566";
blue = "#FD9353";
magenta = "#948AE3";
cyan = "#5AD4E6";
white = "#F7F1FF";
};
};
};
};
zellij = { zellij = {
enable = true; enable = true;
package = pkgs.zellij; package = pkgs.zellij;
@ -118,32 +56,7 @@
enableZshIntegration = true; enableZshIntegration = true;
enableNushellIntegration = false; enableNushellIntegration = false;
}; };
zsh = {
enable = lib.mkDefault true;
dotDir = ".config/zsh";
history = {
path = "$ZDOTDIR/.zsh_history";
save = 10000000;
};
enableAutosuggestions = lib.mkDefault true;
enableCompletion = lib.mkDefault true;
enableSyntaxHighlighting = lib.mkDefault true;
shellAliases = {
ls = "exa -l";
lsa = "exa -al";
cd = "z";
osrb = "sudo nixos-rebuild $1 --flake ~/code/nix/nixos-config/#creatorforge-framework";
zel = "zellij -s";
ns = "nix-shell";
top = "btm";
hx = "hx";
cat = "bat";
extract = "~/.config/zsh/extract.sh";
};
localVariables = {
EDITOR="hx";
};
};
direnv = { direnv = {
enable = true; enable = true;
enableZshIntegration = lib.mkDefault true; enableZshIntegration = lib.mkDefault true;
@ -151,57 +64,7 @@
home-manager = { home-manager = {
enable = true; enable = true;
}; };
vscode = {
enable = true;
package = pkgs.vscode.fhs;
enableExtensionUpdateCheck = true;
enableUpdateCheck = false;
extensions = with pkgs.vscode-extensions; [
bbenoist.nix
redhat.vscode-yaml
bungcip.better-toml
firefox-devtools.vscode-firefox-debug
ms-vscode-remote.remote-ssh
ms-azuretools.vscode-docker
editorconfig.editorconfig
dbaeumer.vscode-eslint
donjayamanne.githistory
github.copilot
eamodio.gitlens
graphql.vscode-graphql
oderwat.indent-rainbow
skellock.just
jnoortheen.nix-ide
christian-kohler.path-intellisense
esbenp.prettier-vscode
svelte.svelte-vscode
bradlc.vscode-tailwindcss
thenuprojectcontributors.vscode-nushell-lang
matklad.rust-analyzer
];
userSettings = {
"workbench.colorTheme" = "Monokai Pro (Filter Octagon)";
"workbench.startupEditor" = "none";
"workbench.iconTheme" = "Monokai Pro Icons";
"git.autofetch" = true;
"redhat.telemetry.enabled" = false;
"svelte.enable-ts-plugin" = true;
"window.menuBarVisibility" = "compact";
"prettier.singleQuote" = true;
"prettier.useTabs" = true;
"prettier.bracketSpacing" = false;
"prettier.htmlWhitespaceSensitivity" = "strict";
"typescript.updateImportsOnFileMove.enabled" = "always";
"editor.fontFamily" = "OpenDyslexic, OpenDyslexic Mono NF";
"rust-analyzer.inlayHints.chainingHints.enable" = false;
"rust-analyzer.inlayHints.closingBraceHints.enable" = false;
"rust-analyzer.inlayHints.renderColons" = false;
"rust-analyzer.inlayHints.parameterHints.enable" = false;
"editor.minimap.enabled" = false;
"editor.inlineSuggest.enabled" = true;
"window.zoomLevel" = 1;
};
};
git = { git = {
enable = true; enable = true;
userName = "specCon18"; userName = "specCon18";