updating home manager config for rust development and vs-code support

This commit is contained in:
specCon18 2023-03-27 20:01:22 -04:00
parent 107c968ba1
commit e81c3aa499
3 changed files with 43 additions and 18 deletions

View file

@ -25,18 +25,20 @@
}; };
# base packages # base packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
htop cargo
rustc
helix
bat bat
exa exa
helix uutils-coreutils
htop
zsh zsh
tailscale tailscale
dig dig #dns lookup
rage rage #file encryption
age-plugin-yubikey age-plugin-yubikey #plugin for rage to manage yubi-2fa
sops sops #file based secrets operations
direnv direnv #used for development environments
htop
]; ];
networking = { networking = {

View file

@ -1,7 +1,7 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
users.users.speccon18 = { users.users.speccon18 = {
shell = pkgs.nushell; shell = pkgs.zsh;
isNormalUser = true; isNormalUser = true;
initialHashedPassword = "$y$j9T$RdLBHOvUpb17egl0d16LT/$3Y2RD/tT1IZ0nkfAR13pp3IzBjvKLRgGpDPLobUeO23"; initialHashedPassword = "$y$j9T$RdLBHOvUpb17egl0d16LT/$3Y2RD/tT1IZ0nkfAR13pp3IzBjvKLRgGpDPLobUeO23";
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [

View file

@ -5,8 +5,6 @@
stateVersion = "22.11"; stateVersion = "22.11";
packages = with pkgs; [ packages = with pkgs; [
nushell nushell
cargo
rustc
bitwarden bitwarden
firefox firefox
discord discord
@ -18,25 +16,23 @@
asciinema asciinema
postman postman
gimp gimp
rustup
neofetch neofetch
vlc vlc
remmina remmina
signal-desktop signal-desktop
starship starship
alacritty alacritty
uutils-coreutils
]; ];
}; };
programs = { programs = {
nushell = { nushell = {
enable = true; enable = false;
}; };
starship = { starship = {
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
enableNushellIntegration = true; enableNushellIntegration = false;
}; };
zsh = { zsh = {
enable = lib.mkDefault true; enable = lib.mkDefault true;
@ -79,7 +75,30 @@
svelte.svelte-vscode svelte.svelte-vscode
bradlc.vscode-tailwindcss bradlc.vscode-tailwindcss
thenuprojectcontributors.vscode-nushell-lang thenuprojectcontributors.vscode-nushell-lang
matklad.rust-analyzer
]; ];
userSettings = {
"workbench.colorTheme" = "Monokai Pro (Filter Octagon)";
"workbench.startupEditor" = "none";
"workbench.iconTheme" = "vscode-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;
@ -93,9 +112,13 @@
}; };
}; };
dconf.settings = { dconf = {
"org/gnome/mutter" = { enable = true;
experimental-features = [ "x11-randr-fractional-scaling" "scale-monitor-framebuffer" ]; settings = {
"org/gnome/mutter" = {
experimental-features = [ "x11-randr-fractional-scaling" "scale-monitor-framebuffer" ];
}; };
}; };
};
} }