mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 05:03:23 -05:00
Switched To A New/Modified Structure
Based heavily on https://github.com/nmasur/dotfiles
This commit is contained in:
parent
634a129840
commit
99a16590b3
25 changed files with 495 additions and 703 deletions
31
modules/common/programming/vscode.nix
Normal file
31
modules/common/programming/vscode.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
options = {
|
||||
vscode = {
|
||||
enable = lib.mkEnableOption {
|
||||
description = "Enable Visual Studio Code";
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf (config.gui.enable && config.vscode.enable) {
|
||||
home-manager.users.${config.user} = {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
bbenoist.nix
|
||||
catppuccin.catppuccin-vsc
|
||||
];
|
||||
userSettings = {
|
||||
"workbench.colorTheme" = "Catppuccin Mocha";
|
||||
"editor.tabSize" = 2;
|
||||
"editor.insertSpaces" = true;
|
||||
"git.autofetch" = true;
|
||||
# "git.enableSmartCommit" = true;
|
||||
"git.confirmSync" = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue