Skip to content

Commit

Permalink
VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
shajra committed Dec 22, 2023
1 parent 46426c1 commit bc8439b
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
result*
.vscode/
7 changes: 4 additions & 3 deletions build/nixpkgs/overlays.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ let
# all-cabal-hashes = sources.all-cabal-hashes;
#};

external.emacs = inputs.emacs-overlay.overlays.default;

external.nur = inputs.nur.overlay;
external.emacs = inputs.emacs-overlay.overlays.default;
external.nur = inputs.nur.overlay;
external.vscode = inputs.vscode-overlay.overlays.default;

external.sources = self: super: {
sources = super.sources or {} // {
Expand Down Expand Up @@ -68,6 +68,7 @@ let
in [
external.emacs
external.nur
external.vscode
external.sources
external.packages
] ++ internal.overlays ++ [
Expand Down
86 changes: 86 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
description = "Sukant Hajra's personal machine configuration";

inputs = {
bluos-nix.url = github:shajra/bluos-nix;
emacs-overlay.url = github:nix-community/emacs-overlay;
flake-parts.url = github:hercules-ci/flake-parts;
haskell-nix.url = github:input-output-hk/haskell.nix;
home-manager.url = github:shajra/home-manager/feature/lieer-address-override;
nix-darwin.url = github:LnL7/nix-darwin;
nix-project.url = github:shajra/nix-project;
nur.url = github:nix-community/NUR;
bluos-nix.url = github:shajra/bluos-nix;
emacs-overlay.url = github:nix-community/emacs-overlay;
vscode-overlay.url = github:nix-community/nix-vscode-extensions;
flake-parts.url = github:hercules-ci/flake-parts;
haskell-nix.url = github:input-output-hk/haskell.nix;
home-manager.url = github:shajra/home-manager/feature/lieer-address-override;
nix-darwin.url = github:LnL7/nix-darwin;
nix-project.url = github:shajra/nix-project;
nur.url = github:nix-community/NUR;
colored_man_pages-fish = { url = github:PatrickF1/colored_man_pages.fish; flake = false; };
delta = { url = github:dandavison/delta; flake = false; };
dircolors-solarized = { url = github:seebi/dircolors-solarized; flake = false; };
Expand Down
1 change: 1 addition & 0 deletions home/modules/base/gui/all/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
programs.kitty = import programs/kitty config pkgs;
programs.noti.enable = true;
programs.urxvt = import programs/urxvt config pkgs;
programs.vscode = import programs/vscode config pkgs;

xdg.configFile = import xdg/configFile config pkgs;
}
35 changes: 35 additions & 0 deletions home/modules/base/gui/all/programs/vscode/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
config: pkgs:

let fonts = config.theme.fonts;
in {
enable = true;
enableExtensionUpdateCheck = false;
enableUpdateCheck = false;
extensions = [
pkgs.vscode-marketplace.tamasfe.even-better-toml
pkgs.vscode-marketplace.znck.grammarly
pkgs.vscode-marketplace.kahole.magit
pkgs.vscode-marketplace.bbenoist.nix
pkgs.vscode-marketplace.vscode-org-mode.org-mode
pkgs.vscode-marketplace.ms-vscode.remote-explorer
pkgs.vscode-marketplace-release.ms-vscode-remote.remote-ssh
pkgs.vscode-marketplace-release.rust-lang.rust-analyzer
pkgs.vscode-marketplace.timonwong.shellcheck
pkgs.vscode-marketplace.trond-snekvik.simple-rst
pkgs.vscode-marketplace.gruntfuggly.todo-tree
pkgs.vscode-marketplace.vscodevim.vim
];
userSettings = {
"editor.fontFamily" = fonts.monospaced.code.name;
"editor.fontLigatures" = true;
"editor.fontSize" = 12;
"files.trimTrailingWhitespace" = true;
"remote.SSH.useLocalServer" = false;
"remote.SSH.remotePlatform".cake = "linux";
"remote.SSH.remotePlatform".shajra = "linux";
"terminal.integrated.fontFamily" = fonts.monospaced.code.name;
"terminal.integrated.fontSize" = 12;
"workbench.colorTheme" = "Solarized Light";
"vim.enableNeovim" = true;
};
}
1 change: 1 addition & 0 deletions machines/bagel/darwin-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ in {
'';

system.checks.verifyNixPath = false;
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false;
system.stateVersion = 4;

}

0 comments on commit bc8439b

Please sign in to comment.