2022-07-15 13:11:54 +02:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, pkgs
|
|
|
|
, ...
|
|
|
|
}:
|
2022-03-23 12:41:04 +01:00
|
|
|
|
2022-03-30 10:55:57 +02:00
|
|
|
with lib;
|
2022-07-15 13:11:54 +02:00
|
|
|
let
|
|
|
|
cfg = config.my.programs.code;
|
|
|
|
in
|
|
|
|
{
|
2022-10-15 20:00:09 +02:00
|
|
|
options.my.programs.code.enable = mkEnableOption "code";
|
|
|
|
|
2022-07-15 13:11:54 +02:00
|
|
|
config = mkIf cfg.enable {
|
2022-03-23 12:41:04 +01:00
|
|
|
home-manager.users.moritz = {
|
|
|
|
programs.vscode = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.vscode-fhsWithPackages (ps: with ps; [ git ]);
|
2022-03-30 10:55:57 +02:00
|
|
|
extensions = with pkgs.vscode-extensions; [
|
|
|
|
bbenoist.nix
|
|
|
|
dracula-theme.theme-dracula
|
|
|
|
esbenp.prettier-vscode
|
|
|
|
pkief.material-icon-theme
|
|
|
|
vscodevim.vim
|
|
|
|
];
|
2022-03-23 12:41:04 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|