dotfiles/modules/programs/code.nix

35 lines
643 B
Nix
Raw Normal View History

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
{
options.my.programs.code = {
enable = mkOption {
2022-03-30 10:55:57 +02:00
default = false;
type = types.bool;
example = true;
};
};
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
};
};
};
}