vscode update

This commit is contained in:
able 2023-06-13 04:19:23 -05:00
parent cf4e62f998
commit a5b0e5c6bf

View file

@ -1,7 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }: { { config, pkgs, ... }: {
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
@ -12,20 +8,6 @@
boot = { boot = {
# Bootloader. # Bootloader.
loader = { loader = {
#systemd-boot = {
# enable = true;
# set this to false, as it allows gaining root access by passing init=/bin/sh as a kernel parameter.
# However, it is enabled by default for backwards compatibility.
# editor = false;
# Prevent boot partition from running out of space
# configurationLimit = 12;
#};
#efi={
# canTouchEfiVariables = true;
# efiSysMountPoint = "/boot/efi";
#};
grub = { grub = {
enable = true; enable = true;
device = "/dev/sda"; device = "/dev/sda";
@ -120,7 +102,6 @@
sound.enable = true; sound.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.able = { users.users.able = {
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE8hxhhfB2zomqQLw/o3MaFxHIhE9cfmuW55npfwVtOJ able@nixos" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE8hxhhfB2zomqQLw/o3MaFxHIhE9cfmuW55npfwVtOJ able@nixos"
@ -138,60 +119,44 @@
home.stateVersion = "22.11"; home.stateVersion = "22.11";
home.packages = with pkgs; [ home.packages = with pkgs; [
# armcord # Smaller discord client
btop
cinnamon.nemo cinnamon.nemo
dconf2nix
discord
flameshot flameshot
firefox
gimp gimp
grapejuice
gzdoom gzdoom
enyo-launcher enyo-launcher
obs-studio
discord
dconf2nix
# hexdino
# okteta
soundux
firefox
steam
grapejuice
# adoptopenjdk-hotspot-bin-8
# adoptopenjdk-hotspot-bin-16
spotify
nixfmt nixfmt
openrgb
prismlauncher prismlauncher
rustup
qemu_full
llvmPackages_16.clangUseLLVM llvmPackages_16.clangUseLLVM
obs-studio
openrgb
OVMFFull OVMFFull
qemu_full
rustup
steam
soundux
spotify
]; ];
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# environment.usr."share/ovmf/x64/OVMF_CODE.fd" = "${pkgs.OVMF}/ovmf/x64/OVMF_CODE.fd";
# programs.steam = {
# enable = true;
# remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
# dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
# };
programs.bash = { programs.bash = {
enable = true; enable = true;
shellAliases = { shellAliases = {
cinnaback = "dconf dump / | dconf2nix > dconf.nix"; cinnaback = "dconf dump / | dconf2nix > dconf.nix";
rebuild = "sudo nixos-rebuild switch";
# Git commands # Git commands
gcl = "git clone"; gcl = "git clone";
@ -261,53 +226,69 @@
mhutchie.git-graph mhutchie.git-graph
]; ];
userSettings = { userSettings = {
"rust-analyzer.check.command" = "clippy"; rust-analyzer.check.command = "clippy";
"files.autoSave" = "off"; files = {
"[nix]"."editor.tabSize" = 2; autoSave = "off";
"editor.formatOnSave" = true; associations = {
"window.zoomLevel" = 2; "*.hbasm" = "asm-intel-x86-generic";
"workbench.colorTheme" = "One Dark"; };
"editor.multiCursorModifier" = "ctrlCmd";
"editor.formatOnPaste" = true;
"git.autofetch" = true;
"editor.tokenColorCustomizations" = {
"textMateRules" = [
{
"name" = "One Dark italic";
"scope" = [
"comment"
"entity.other.attribute-name"
"keyword"
"markup.underline.link"
"storage.modifier"
"storage.type"
"string.url"
"variable.language.super"
"variable.language.this"
];
"settings" = {
"fontStyle" = "italic";
};
}
{
"name" = "One Dark italic reset";
"scope" = [
"keyword.operator"
"keyword.other.type"
"storage.modifier.import"
"storage.modifier.package"
"storage.type.built-in"
"storage.type.function.arrow"
"storage.type.generic"
"storage.type.java"
"storage.type.primitive"
];
"settings" = {
"fontStyle" = "";
};
}
];
}; };
"[nix]".editor.tabSize = 2;
git.autofetch = true;
gitlens.showWelcomeOnInstall = false;
explorer.confirmDelete = false;
editor = {
multiCursorModifier = "ctrlCmd";
formatOnSave = true;
formatOnPaste = true;
find.addExtraSpaceOnTop = false;
tokenColorCustomizations = {
textMateRules = [
{
name = "One Dark italic";
scope = [
"comment"
"entity.other.attribute-name"
"keyword"
"markup.underline.link"
"storage.modifier"
"storage.type"
"string.url"
"variable.language.super"
"variable.language.this"
];
settings = {
fontStyle = "italic";
};
}
{
name = "One Dark italic reset";
scope = [
"keyword.operator"
"keyword.other.type"
"storage.modifier.import"
"storage.modifier.package"
"storage.type.built-in"
"storage.type.function.arrow"
"storage.type.generic"
"storage.type.java"
"storage.type.primitive"
];
settings = {
fontStyle = "";
};
}
];
};
};
window.zoomLevel = 2;
workbench.colorTheme = "One Dark";
}; };
}; };
@ -316,10 +297,10 @@
enable = true; enable = true;
userName = "able"; userName = "able";
userEmail = "abl3theabove@gmail.com"; userEmail = "abl3theabove@gmail.com";
# signing = { signing = {
# key = ""; key = "";
# signByDefault = false; signByDefault = false;
# }; };
}; };
}; };