diff --git a/home/ronja.nix b/home/ronja/default.nix similarity index 93% rename from home/ronja.nix rename to home/ronja/default.nix index c0e0f05..35fa2d9 100644 --- a/home/ronja.nix +++ b/home/ronja/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +inputs@{ config, pkgs, ... }: { home.packages = with pkgs; [ ## Apps @@ -8,6 +8,7 @@ programs = { home-manager.enable = true; + vscode = import ./vscode.nix inputs; zsh = { history = { diff --git a/home/ronja/vscode.nix b/home/ronja/vscode.nix new file mode 100644 index 0000000..29f5046 --- /dev/null +++ b/home/ronja/vscode.nix @@ -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; + }; + }; +} diff --git a/hosts/ona-book/default.nix b/hosts/ona-book/default.nix index bdc8952..36a2a5c 100644 --- a/hosts/ona-book/default.nix +++ b/hosts/ona-book/default.nix @@ -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 = [ ]; diff --git a/hosts/vinzenz-pc2/default.nix b/hosts/vinzenz-pc2/default.nix index 3fdcb70..c90e3ec 100644 --- a/hosts/vinzenz-pc2/default.nix +++ b/hosts/vinzenz-pc2/default.nix @@ -38,7 +38,7 @@ nixpkgs.lib.nixosSystem { { home-manager.users = { vinzenz = import ../../home/vinzenz; - ronja = import ../../home/ronja.nix; + ronja = import ../../home/ronja; }; users.users.vinzenz.openssh.authorizedKeys.keys = [ diff --git a/users/ronja.nix b/users/ronja.nix index 547f31b..3ed2b8a 100644 --- a/users/ronja.nix +++ b/users/ronja.nix @@ -15,5 +15,9 @@ ]; shell = pkgs.zsh; }; + + allowedUnfreePackages = [ + "vscode-extension-ms-vscode-remote-remote-ssh" + ]; }; }