From 74a6b82d37415b1a8bd6fe607e3fa83ed82f7916 Mon Sep 17 00:00:00 2001 From: xinyangli Date: Tue, 11 Jun 2024 18:05:25 +0800 Subject: [PATCH] home-manager: vscode refactor --- home/xin/calcite.nix | 17 +++++++++++++++-- home/xin/common/default.nix | 4 ++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/home/xin/calcite.nix b/home/xin/calcite.nix index eecb258..9ba1359 100644 --- a/home/xin/calcite.nix +++ b/home/xin/calcite.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, ... }@inputs: { imports = [ ./common @@ -17,6 +17,7 @@ primary = true; address = "lixinyang411@gmail.com"; flavor = "gmail.com"; + realName = "Xinyang Li"; }; accounts.email.accounts.whu = { @@ -32,13 +33,25 @@ remmina ]; + # Theme + catppuccin = { + enable = true; + flavor = "mocha"; + }; + xdg.enable = true; + + i18n.inputMethod = { + enabled = "fcitx5"; + fcitx5.addons = with pkgs; [ fcitx5-rime ]; + }; + custom-hm = { alacritty = { enable = true; }; direnv = { enable = true; }; fish = { enable = true; }; git = { enable = true; signing.enable = true; }; neovim = { enable = true; }; - vscode = { enable = true; }; + vscode = { enable = true; languages = { cxx = true; python = true; scala = true; latex = true; }; }; zellij = { enable = true; }; }; } diff --git a/home/xin/common/default.nix b/home/xin/common/default.nix index 0e0677c..d4bc579 100644 --- a/home/xin/common/default.nix +++ b/home/xin/common/default.nix @@ -19,4 +19,8 @@ inetutils ]; + nix.extraOptions = '' + extra-substituters = https://nix-community.cachix.org + extra-trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= + ''; }