From bce5674b841766562bc10bce4c0f3e46197bcf71 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 5 Aug 2025 18:50:36 +0200 Subject: [PATCH] Add vscode, add settings for it managed by stow --- README.org | 2 ++ hm-modules/default.nix | 1 + hm-modules/development/default.nix | 7 +++++++ hm-modules/development/vscode/default.nix | 16 ++++++++++++++++ hm-modules/development/vscode/settings.json | 19 +++++++++++++++++++ .../dotfiles/.config/Code/User/settings.json | 19 +++++++++++++++++++ machines/fujin/main/home.nix | 2 ++ 7 files changed, 66 insertions(+) create mode 100644 hm-modules/development/default.nix create mode 100644 hm-modules/development/vscode/default.nix create mode 100644 hm-modules/development/vscode/settings.json create mode 100644 machines/fujin/main/dotfiles/.config/Code/User/settings.json diff --git a/README.org b/README.org index fb55b60..6b7f894 100644 --- a/README.org +++ b/README.org @@ -484,6 +484,8 @@ nix run github:nix-community/nixos-anywhere -- \ - [ ] Develop an automated installation script to handle the post-install process, such as fetching the AGE key and updating sops, based on [[https://unmovedcentre.com/posts/remote-install-nixos-config/#update-sops-file][this guide]]. - [X] Document remote build setup process and add automation for SSH key exchange between machines. There is now rebuild.sh script that can be used for easy remote build +- [ ] Add prometheus for services on Proxmox +- [ ] Add matrix service in Proxmox * Inspiration The configuration and structure of this setup were inspired by the following repository: diff --git a/hm-modules/default.nix b/hm-modules/default.nix index b236448..f9e6bfc 100644 --- a/hm-modules/default.nix +++ b/hm-modules/default.nix @@ -8,5 +8,6 @@ ./random ./browser ./terminal + ./development ]; } diff --git a/hm-modules/development/default.nix b/hm-modules/development/default.nix new file mode 100644 index 0000000..045cf71 --- /dev/null +++ b/hm-modules/development/default.nix @@ -0,0 +1,7 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ./vscode + ]; +} diff --git a/hm-modules/development/vscode/default.nix b/hm-modules/development/vscode/default.nix new file mode 100644 index 0000000..92d9cce --- /dev/null +++ b/hm-modules/development/vscode/default.nix @@ -0,0 +1,16 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.dov.development.vscode; +in { + + options.dov.development.vscode.enable = mkEnableOption "vscode config"; + + config = mkIf cfg.enable { + home.packages = with pkgs; [ + vscode.fhs + ]; + }; +} diff --git a/hm-modules/development/vscode/settings.json b/hm-modules/development/vscode/settings.json new file mode 100644 index 0000000..313f0e7 --- /dev/null +++ b/hm-modules/development/vscode/settings.json @@ -0,0 +1,19 @@ +{ + "chat.editor.fontFamily": "DejaVu Sans Mono", + "chat.editor.fontSize": 16.0, + "debug.console.fontFamily": "DejaVu Sans Mono", + "debug.console.fontSize": 16.0, + "editor.fontFamily": "DejaVu Sans Mono", + "editor.fontSize": 16.0, + "editor.inlayHints.fontFamily": "DejaVu Sans Mono", + "editor.inlineSuggest.fontFamily": "DejaVu Sans Mono", + "editor.minimap.sectionHeaderFontSize": 10.285714285714286, + "markdown.preview.fontFamily": "DejaVu Sans", + "markdown.preview.fontSize": 16.0, + "scm.inputFontFamily": "DejaVu Sans Mono", + "scm.inputFontSize": 14.857142857142858, + "screencastMode.fontSize": 64.0, + "terminal.integrated.fontSize": 16.0, + "workbench.colorTheme": "Stylix", + "redhat.telemetry.enabled": true +} diff --git a/machines/fujin/main/dotfiles/.config/Code/User/settings.json b/machines/fujin/main/dotfiles/.config/Code/User/settings.json new file mode 100644 index 0000000..313f0e7 --- /dev/null +++ b/machines/fujin/main/dotfiles/.config/Code/User/settings.json @@ -0,0 +1,19 @@ +{ + "chat.editor.fontFamily": "DejaVu Sans Mono", + "chat.editor.fontSize": 16.0, + "debug.console.fontFamily": "DejaVu Sans Mono", + "debug.console.fontSize": 16.0, + "editor.fontFamily": "DejaVu Sans Mono", + "editor.fontSize": 16.0, + "editor.inlayHints.fontFamily": "DejaVu Sans Mono", + "editor.inlineSuggest.fontFamily": "DejaVu Sans Mono", + "editor.minimap.sectionHeaderFontSize": 10.285714285714286, + "markdown.preview.fontFamily": "DejaVu Sans", + "markdown.preview.fontSize": 16.0, + "scm.inputFontFamily": "DejaVu Sans Mono", + "scm.inputFontSize": 14.857142857142858, + "screencastMode.fontSize": 64.0, + "terminal.integrated.fontSize": 16.0, + "workbench.colorTheme": "Stylix", + "redhat.telemetry.enabled": true +} diff --git a/machines/fujin/main/home.nix b/machines/fujin/main/home.nix index 39605b6..f5a5531 100644 --- a/machines/fujin/main/home.nix +++ b/machines/fujin/main/home.nix @@ -56,6 +56,8 @@ shell = "${pkgs.nushell}/bin/nu"; }; }; + + development.vscode.enable = true; }; programs = {