copy vscode config to other user

This commit is contained in:
Vinzenz Schroeter 2025-01-02 02:05:36 +01:00
parent 29ea7db3aa
commit 72c6b8bd34
5 changed files with 64 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: inputs@{ config, pkgs, ... }:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
## Apps ## Apps
@ -8,6 +8,7 @@
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;
vscode = import ./vscode.nix inputs;
zsh = { zsh = {
history = { history = {

56
home/ronja/vscode.nix Normal file
View file

@ -0,0 +1,56 @@
{ pkgs, ... }:
{
enable = true;
package = pkgs.vscodium;
enableUpdateCheck = false;
extensions = with pkgs.vscode-extensions; [
bbenoist.nix
ms-python.python
kamadorueda.alejandra
editorconfig.editorconfig
yzhang.markdown-all-in-one
redhat.vscode-yaml
pkief.material-icon-theme
rust-lang.rust-analyzer
tamasfe.even-better-toml
llvm-vs-code-extensions.vscode-clangd
mkhl.direnv
vadimcn.vscode-lldb
ms-dotnettools.csharp
ms-vscode-remote.remote-ssh
];
userSettings = {
"files.autoSave" = "afterDelay";
"files.autoSaveWhenNoErrors" = true;
"files.autoSaveWorkspaceFilesOnly" = true;
"editor.fontFamily" = "'Fira Code', 'Droid Sans Mono', 'monospace', monospace";
"editor.fontLigatures" = true;
"editor.formatOnSave" = true;
"editor.formatOnSaveMode" = "modificationsIfAvailable";
"editor.minimap.autohide" = true;
"workbench.startupEditor" = "readme";
"workbench.enableExperiments" = false;
"workbench.iconTheme" = "material-icon-theme";
"update.mode" = "none";
"extensions.autoUpdate" = false;
"extensions.autoCheckUpdates" = false;
"telemetry.telemetryLevel" = "off";
"redhat.telemetry.enabled" = false;
"git.autofetch" = true;
"diffEditor.diffAlgorithm" = "advanced";
"explorer.excludeGitIgnore" = true;
"markdown.extension.tableFormatter.normalizeIndentation" = true;
"markdown.extension.toc.orderedList" = false;
"rust-analyzer.checkOnSave.command" = "clippy";
"\[makefile\]" = {
"editor.insertSpaces" = false;
"editor.detectIndentation" = false;
};
};
}

View file

@ -24,7 +24,7 @@ nixpkgs.lib.nixosSystem {
} }
{ {
home-manager.users.ronja = import ../../home/ronja.nix; home-manager.users.ronja = import ../../home/ronja;
users.users.ronja.openssh.authorizedKeys.keys = [ users.users.ronja.openssh.authorizedKeys.keys = [
]; ];

View file

@ -38,7 +38,7 @@ nixpkgs.lib.nixosSystem {
{ {
home-manager.users = { home-manager.users = {
vinzenz = import ../../home/vinzenz; vinzenz = import ../../home/vinzenz;
ronja = import ../../home/ronja.nix; ronja = import ../../home/ronja;
}; };
users.users.vinzenz.openssh.authorizedKeys.keys = [ users.users.vinzenz.openssh.authorizedKeys.keys = [

View file

@ -15,5 +15,9 @@
]; ];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };
allowedUnfreePackages = [
"vscode-extension-ms-vscode-remote-remote-ssh"
];
}; };
} }