mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 15:10:11 -05:00
31 lines
777 B
Nix
31 lines
777 B
Nix
|
|
{ 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
|
||
|
|
];
|
||
|
|
userSettings = {
|
||
|
|
"workbench.colorTheme" = "Catppuccin Mocha";
|
||
|
|
"editor.tabSize" = 2;
|
||
|
|
"editor.insertSpaces" = true;
|
||
|
|
"git.autofetch" = true;
|
||
|
|
# "git.enableSmartCommit" = true;
|
||
|
|
"git.confirmSync" = false;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|